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 285: Line 294:
//features.selectAll("path").data(geodata.features).enter().append("path").attr("d",path).on("mouseover",showTooltip).on("mousemove",moveTooltip).on("mouseout",hideTooltip).on("click",clicked);
//features.selectAll("path").data(geodata.features).enter().append("path").attr("d",path).on("mouseover",showTooltip).on("mousemove",moveTooltip).on("mouseout",hideTooltip).on("click",clicked);
//w.choro.choropleth();
//w.choro.choropleth();
if (mp.childNodes.length > 1) {
/*if (mp.childNodes.length > 1) {
mp.removeChild(mp.childNodes[0]);
}*/
if (mp.childNodes.length !== 0) {
mp.removeChild(mp.childNodes[0]);
mp.removeChild(mp.childNodes[0]);
}
}

Revision as of 17:16, 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.