Browse Source

fixed conflicts

master
alicestrt 4 years ago
parent
commit
2d92d16c0a
  1. 22
      templates/hello.html

22
templates/hello.html

@ -8,7 +8,7 @@
<div class="row"> <div class="row">
<div class="col-md-1 col-sm-4"> <div class="col-md-1 col-sm-4">
<svg id="first_circle" onclick="scrolldiv()"> <svg id="first_circle" onclick="scrolldiv();play();">
<circle cx="50" cy="50" r="2rem" stroke="green" stroke-width="4" fill="yellow" /> <circle cx="50" cy="50" r="2rem" stroke="green" stroke-width="4" fill="yellow" />
<text id="angela" x="50" y="50" text-anchor="middle">hello </text> <text id="angela" x="50" y="50" text-anchor="middle">hello </text>
</svg> </svg>
@ -25,8 +25,8 @@
</div> </div>
</div> </div>
<div class="col-md-9"> <div class="col-md-9">
<audio id="audio-1" controls onclick="Start()"> <audio id='audio-1' controls>
<source src="../static/audio/myths.mp3" type="audio/mpeg"> <source src="../static/audio/HNI_Soundinstall_3tracks_together1.mp3" type="audio/mpeg">
Your browser does not support the audio tag. Your browser does not support the audio tag.
</audio> </audio>
</div> </div>
@ -91,16 +91,12 @@
elem.scrollIntoView(); elem.scrollIntoView();
} }
function play() {
var soundToPlay = document.getElementById('audio-1'); var audio = document.getElementById("audio-1");
function Start(){ audio.currentTime=12;
randomStartingTime = Random.Range(0.0, 3099.0); audio.play();
PlaySound(); }
} // document.getElementById("audio-1").loop = true;
function PlaySound(){
soundToPlay.time = randomStartingTime;
soundToPlay.Play();
}
</script> </script>

Loading…
Cancel
Save