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">No current project.</div></noinclude><includeonly><script> | <noinclude><div class="no-img">No current project.</div></noinclude><includeonly><script> | ||
function setSvg(elem) { | function setSvg(elem, adbad) { | ||
var svg = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100" xml:space="preserve">'; | var svg = '<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 100 100" xml:space="preserve">'; | ||
svg += '<path fill="#4d8375" stroke="#f9fafa" 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 += '<path id="' + adbad + '" fill="#4d8375" stroke="#f9fafa" 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>'; | ||
document.getElementById(elem).innerHTML = svg; | document.getElementById(elem).innerHTML = svg; | ||
svg = document.getElementById(adbad).style.strokeWidth = "0px"; | |||
} | } | ||
setSvg("tst1"); | setSvg("tst1", "x"); | ||
setSvg("tst2"); | setSvg("tst2", "y"); | ||
console.log("Tjuhej"); | console.log("Tjuhej"); | ||
</script></includeonly> | </script></includeonly> |
Revision as of 12:58, 6 June 2019
No current project.