Unify Help/Feedback/Credits menus.
[chromium-blink-merge.git] / tools / perf / page_sets / tough_video_cases / audio_playback.html
blobc5ccbc86b82c6274df2b895cb05ba3774985a8dd
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script>
5 function addAudio(id, file) {
6 var audio = document.createElement('audio');
7 audio.src = file;
8 audio.loop = true;
9 audio.id = id;
10 document.body.appendChild(audio);
13 function getIDFromURL() {
14 var query = window.location.search;
15 return query.substring(query.lastIndexOf("id=") + 3);
18 addAudio('background_audio', 'pink_noise_20s.wav');
19 // Main audio file is identified by an ID passed in the page-set.
20 addAudio(getIDFromURL(), 'pink_noise_140ms.wav');
21 </script>
22 </body>
23 </html>