Difference between revisions of "Template:SNDS PREVIEW"
From Olekdia Wiki
Line 1: | Line 1: | ||
− | {{# | + | {{#tag:html| |
<button onclick="var numChild=2;var children=this.children;this.firstChild.paused?this.firstChild.play():this.firstChild.pause();children[1].src='a/olekdia/wiki_resources/'+(this.firstChild.paused?'ic_play.svg':'ic_pause.svg');this.firstChild.onended=function(){if(children.length>numChild){this.src='a/prana_breath/soundfiles/'+children[numChild].innerHTML;numChild++;this.load();this.play();}else{children[1].src='a/olekdia/wiki_resources/ic_play.svg';}}"><audio> | <button onclick="var numChild=2;var children=this.children;this.firstChild.paused?this.firstChild.play():this.firstChild.pause();children[1].src='a/olekdia/wiki_resources/'+(this.firstChild.paused?'ic_play.svg':'ic_pause.svg');this.firstChild.onended=function(){if(children.length>numChild){this.src='a/prana_breath/soundfiles/'+children[numChild].innerHTML;numChild++;this.load();this.play();}else{children[1].src='a/olekdia/wiki_resources/ic_play.svg';}}"><audio> | ||
<source src="a/prana_breath/soundfiles/{{{1}}}" type="audio/ogg"> | <source src="a/prana_breath/soundfiles/{{{1}}}" type="audio/ogg"> | ||
Line 9: | Line 9: | ||
{{#if: {{{5|}}}|<span>{{{5}}}</span>}} | {{#if: {{{5|}}}|<span>{{{5}}}</span>}} | ||
</button> | </button> | ||
− | + | }} |
Revision as of 15:24, 24 January 2019