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; | |||
} else { | } else { | ||
throw error; | throw error; | ||
Line 290: | Line 291: | ||
m.addSpinner = function (elem) { | m.addSpinner = function (elem) { | ||
var svg = '<svg version="1.1" id="L9" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0" xml:space="preserve">'; | var svg = '<svg version="1.1" id="L9" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100" enable-background="new 0 0 0 0" xml:space="preserve">'; | ||
svg += '<path fill="# | svg += '<path fill="#f2f2f2" d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">'; | ||
svg += '<animateTransform attributeName="transform" attributeType="XML" type="rotate" dur="2s" from="0 50 50" to="360 50 50" repeatCount="indefinite"/>'; | svg += '<animateTransform attributeName="transform" attributeType="XML" type="rotate" dur="2s" from="0 50 50" to="360 50 50" repeatCount="indefinite"/>'; | ||
svg += '</path></svg>'; | svg += '</path></svg>'; | ||
Line 311: | Line 312: | ||
function showTooltip( | function showTooltip() { | ||
moveTooltip(); | console.log(event); | ||
tooltip.style("display","block").text(d.properties.abbrev); | //moveTooltip(); | ||
//tooltip.style("display","block").text(d.properties.abbrev); | |||
} | } | ||
Revision as of 18: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.