|
|
Line 1: |
Line 1: |
|
| |
|
| /* Any JavaScript here will be loaded for all users on every page load. */ | | /* Any JavaScript here will be loaded for all users on every page load. */ |
|
| |
| /* "Old" Guided Research map */
| |
| (function() {
| |
| if (document.querySelector('h1#firstHeading').innerHTML === "Guided Research for Online Records") {
| |
|
| |
| var polyfill = document.createElement('script');
| |
| polyfill.type = 'text/javascript';
| |
| polyfill.async = true;
| |
| polyfill.src = 'https://edge.fscdn.org/assets/components/mapFiles/webcomponentsjs/webcomponents-lite-60405515c49744988a6a24e03dedf15a.js';
| |
| var s = document.getElementsByTagName('script')[0];
| |
| s.parentNode.insertBefore(polyfill, s);
| |
|
| |
| var locationMap = document.createElement('link');
| |
| locationMap.rel = 'import';
| |
| /* CHANGE NEEDED: update URL below every time the location-map.html is changed */
| |
| locationMap.href = 'https://gist.githubusercontent.com/ahancey/a86414a07c7c1466cc36ffb790a0817d/raw/748a662f88adf92729d925ebf5fb1ce26ec0bb38/location-map.html';
| |
| var s = document.getElementsByTagName('script')[0];
| |
| s.parentNode.insertBefore(locationMap, s);
| |
|
| |
| document.querySelector('#mw-content-text p').innerHTML = "<div style='width: 1000px;'><location-map></location-map></div>";
| |
| }
| |
| })();
| |
|
| |
|
| // Initialize Tooltips from Bootstrap | | // Initialize Tooltips from Bootstrap |