Widget:Test1: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 299: Line 299:
function mapClick() {
function mapClick() {
console.log(event.target.class + " place-names");
 
console.log(event.currentTarget.class + " place-names");
console.log(event.target.getAttribute("class"));
console.log(event.target.className + " place-names");
console.log(event.currentTarget.className + " place-names");
console.log(event.target);
console.log(event.currentTarget);
//location.href = encodeURIComponent(event.target.className + " place-names");
//location.href = encodeURIComponent(event.target.className + " place-names");
}
}

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