Widget:Test1: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
mNo edit summary |
||
Line 283: | Line 283: | ||
mp.appendChild(xml.documentElement); | mp.appendChild(xml.documentElement); | ||
mp.firstChild.style.display = "block"; | mp.firstChild.style.display = "block"; | ||
mp.firstChild.onclick = mapClick; | |||
} else { | } else { | ||
throw error; | throw error; | ||
Line 306: | Line 307: | ||
function | function mapClick(event) { | ||
location.href = encodeURIComponent(d.properties.name) + " place-names"; | console.log("event.target is: " + event.target); | ||
console.log("event.currentTarget is: " + event.currentTarget); | |||
//location.href = encodeURIComponent(d.properties.name) + " place-names"; | |||
} | } | ||
Revision as of 17:37, 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.