• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Widget:AudioPlayer"

From Kancolle Wiki
Jump to navigation Jump to search
(player)
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<noinclude>
 +
Test
 +
</noinclude>
  
<audio id="player" src="horse.ogg"></audio>
+
<includeonly>
 +
 
 +
<audio id="player" src="https://yksk.kancollewiki.net/w/images/a/a4/Ayanami_Mid_Autumn2015.ogg"></audio>
 
<div>
 
<div>
 
     <button onclick="document.getElementById('player').play()">Play</button>
 
     <button onclick="document.getElementById('player').play()">Play</button>
    <button onclick="document.getElementById('player').pause()">Pause</button>
+
     <button onclick="document.getElementById('player').muted=!document.getElementById('player').muted">Mute</button>
     <button onclick="document.getElementById('player').muted=!document.getElementById('player').muted">Mute/ Unmute</button>
 
 
</div>
 
</div>
 +
 +
<script>
 +
    var audioplayer = document.getElementById("player");
 +
    player.volume = 0.25;
 +
</script>
 +
 +
</includeonly>

Latest revision as of 06:15, 1 November 2020

Test