Widget:Test1: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 275: Line 275:
mp.firstChild.style.display = "block";
mp.firstChild.style.display = "block";
mp.firstChild.onclick = mapClick;
mp.firstChild.onclick = mapClick;
mp.firstChild.onmouseover = showTooltip;
mp.firstChild.onmouseenter = showToolTip;
} else {
} else {
throw error;
throw error;
Line 312: Line 312:




function showTooltip() {
function showToolTip() {
console.log(event);
//console.log(event);
console.log("x: " + event.clientX + " | y: " + event.clientY + " | Class: " + event.path[0].className.baseVal);
//moveTooltip();
//moveTooltip();
//tooltip.style("display","block").text(d.properties.abbrev);
//tooltip.style("display","block").text(d.properties.abbrev);

Revision as of 18:53, 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.