Widget:Test1: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<noinclude><div class="no-img">This widget displays the navigation map on country and administrative division landing pages in the place-names section of IRHB. It takes no parameters.</div></noinclude><includeonly><div id="navMapNav"></div><script> | <noinclude><div class="no-img">This widget displays the navigation map on country and administrative division landing pages in the place-names section of IRHB. It takes no parameters.</div></noinclude><includeonly><div id="navMapNav"></div><script> | ||
//Utility | |||
//Test --> Template:Test --> Widget:Test1 | |||
//TRY THIS FIRST: https://bl.ocks.org/mbostock/1014829 | |||
//RequestIdleCallback: | |||
//https://developers.google.com/web/updates/2015/08/using-requestidlecallback?hl=en | |||
//https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback | |||
//Utility | //Utility | ||
( function() { | ( function() { | ||
Line 261: | Line 270: | ||
svg.attr("height", Math.round(targetWidth / aspect)); | svg.attr("height", Math.round(targetWidth / aspect)); | ||
} | } | ||
} | }; | ||
Line 284: | Line 293: | ||
} | } | ||
mp.firstChild.style.display = "block"; | mp.firstChild.style.display = "block"; | ||
tooltipOffset = {x: 5, y: -25}; | |||
m.makeResponsive(div, svg); | |||
} else { | } else { | ||
return console.log(error); | return console.log(error); | ||
} | } | ||
}); | }); | ||
}; | |||
Revision as of 16:38, 22 May 2019
This widget displays the navigation map on country and administrative division landing pages in the place-names section of IRHB. It takes no parameters.