index.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>wavesurfer.js | Mute Example</title>
  6. <link href="data:image/gif;" rel="icon" type="image/x-icon" />
  7. <!-- Bootstrap -->
  8. <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
  9. <link rel="stylesheet" href="../css/style.css" />
  10. <link rel="stylesheet" href="../css/ribbon.css" />
  11. <!-- wavesurfer.js -->
  12. <script src="../../dist/wavesurfer.js"></script>
  13. <!-- App -->
  14. <script src="app.js"></script>
  15. </head>
  16. <body>
  17. <div class="container">
  18. <div class="header">
  19. <h1>
  20. <a href="http://wavesurfer-js.org">wavesurfer.j</a> (Muting)
  21. </h1>
  22. </div>
  23. <div id="demo">
  24. <div id="waveform"></div>
  25. <div class="controls">
  26. <button id="playBtn" class="btn btn-primary">Play / Pause</button>
  27. <button id="toggleMuteBtn" class="btn btn-primary">Toggle Mute</button>
  28. <button id="setMuteOnBtn" class="btn btn-primary">
  29. Mute <i class="glyphicon glyphicon-volume-off"></i>
  30. </button>
  31. <button id="setMuteOffBtn" class="btn btn-primary">
  32. Unmute <i class="glyphicon glyphicon-volume-up"></i>
  33. </button>
  34. </div>
  35. </div>
  36. <div class="footer row">
  37. <div class="col-sm-12">
  38. <a rel="license" href="https://opensource.org/licenses/BSD-3-Clause"><img alt="BSD-3-Clause License" style="border-width:0" src="https://img.shields.io/badge/License-BSD%203--Clause-blue.svg" /></a>
  39. </div>
  40. <div class="col-sm-12">
  41. <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" property="dct:title" rel="dct:type">wavesurfer.js</span> by <a href="https://github.com/katspaugh/wavesurfer.js">katspaugh</a> is licensed under a <a rel="license" href="https://opensource.org/licenses/BSD-3-Clause">BSD-3-Clause License</a>.
  42. </div>
  43. </div>
  44. </div>
  45. <div class="github-fork-ribbon-wrapper right">
  46. <div class="github-fork-ribbon">
  47. <a itemprop="isBasedOnUrl" href="https://github.com/katspaugh/wavesurfer.js">Fork me on GitHub</a>
  48. </div>
  49. </div>
  50. <script>
  51. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  52. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  53. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  54. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  55. ga('create', 'UA-50026819-1', 'wavesurfer.fm');
  56. ga('send', 'pageview');
  57. </script>
  58. </body>
  59. </html>