Odstranit assets/js/svg-fix.js
This commit is contained in:
parent
b162fb7fb6
commit
a7b5b9f371
1 changed files with 0 additions and 19 deletions
|
@ -1,19 +0,0 @@
|
|||
// SVG map fix
|
||||
(function() {
|
||||
var allItems = document.querySelectorAll('use');
|
||||
|
||||
for (var i = 0; i < allItems.length; i++) {
|
||||
var item = allItems[i];
|
||||
var anchor = '#' + item.getAttribute('xlink:href').split('#')[1];
|
||||
var itemData = window.publiiSvgFix[anchor];
|
||||
|
||||
if(!itemData) {
|
||||
console.log('ANCHOR', anchor, i);
|
||||
continue;
|
||||
}
|
||||
|
||||
var svgItem = item.parentNode;
|
||||
svgItem.innerHTML = itemData.content;
|
||||
svgItem.setAttribute('viewBox', itemData.viewbox);
|
||||
}
|
||||
})();
|
Loading…
Reference in a new issue