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 308: Line 299:
function mapClick(event) {
function mapClick(event) {
console.log("event.target is: " + event.target);
location.href = encodeURIComponent(event.target.className + " place-names");
console.log("event.currentTarget is: " + event.currentTarget);
//location.href = encodeURIComponent(d.properties.name) + " place-names";
}
}



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