36
edits
No edit summary |
No edit summary |
||
Line 386: | Line 386: | ||
var locationMap = document.createElement('link'); | var locationMap = document.createElement('link'); | ||
locationMap.rel = 'import'; | locationMap.rel = 'import'; | ||
locationMap.href = 'https://gist.githubusercontent.com/ecollett1/6acc6d3d51f82f9b142e7f5274ae8592/raw/ | locationMap.href = 'https://gist.githubusercontent.com/ecollett1/6acc6d3d51f82f9b142e7f5274ae8592/raw/1d9fb58961ea1ccecb19f077ae3961a7c5680775/location-map.html'; | ||
var s = document.getElementsByTagName('script')[0]; | var s = document.getElementsByTagName('script')[0]; | ||
s.parentNode.insertBefore(locationMap, s); | s.parentNode.insertBefore(locationMap, s); | ||
document.querySelector('#mw-content-text p').innerHTML = "<div style='width: 1000px | document.querySelector('#mw-content-text p').innerHTML = "<div style='width: 1000px;'><location-map></location-map></div>"; | ||
} | } | ||
})(); | })(); |
edits