index.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>wavesurfer.js | Cursor 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. <link rel="screenshot" itemprop="screenshot" href="https://katspaugh.github.io/wavesurfer.js/example/screenshot.png" />
  12. <!-- wavesurfer.js -->
  13. <script src="../../dist/wavesurfer.js"></script>
  14. <script src="../../dist/plugin/wavesurfer.cursor.js"></script>
  15. <!-- Demo -->
  16. <script src="main.js"></script>
  17. </head>
  18. <body itemscope itemtype="http://schema.org/WebApplication">
  19. <div class="container">
  20. <div class="header">
  21. <ul class="nav nav-pills pull-right">
  22. <li><a href="/"><i class="glyphicon glyphicon-home"></i></a></li>
  23. </ul>
  24. <h1 itemprop="name">Cursor Plugin Example</h1>
  25. </div>
  26. <div id="demo">
  27. <div id="waveform">
  28. <!-- Here be the waveform -->
  29. </div>
  30. <div class="controls">
  31. <div class="row">
  32. <div class="col-sm-7">
  33. <button class="btn btn-primary" data-action="play">
  34. <i class="glyphicon glyphicon-play"></i>
  35. Play
  36. /
  37. <i class="glyphicon glyphicon-pause"></i>
  38. Pause
  39. </button>
  40. </div>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="row marketing">
  45. <h3>Cursor plugin</h3>
  46. <hr />
  47. <p>Shows a cursor on the waveform.</p>
  48. <p>
  49. <pre><code>var wavesurfer = WaveSurfer.create({
  50. container: document.querySelector('#waveform'),
  51. plugins: [
  52. WaveSurfer.cursor.create()
  53. ]
  54. });
  55. </code></pre>
  56. </p>
  57. </div>
  58. <div class="footer row">
  59. <div class="col-sm-12">
  60. <a rel="license" href="https://creativecommons.org/licenses/by/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/3.0/80x15.png" /></a>
  61. </div>
  62. <div class="col-sm-7">
  63. <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 xmlns:cc="http://creativecommons.org/ns#" href="https://github.com/katspaugh/wavesurfer.js" property="cc:attributionName" rel="cc:attributionURL">katspaugh</a> is licensed under a&nbsp;<a style="white-space: nowrap" rel="license" href="https://creativecommons.org/licenses/by/3.0/deed.en_US">Creative Commons Attribution 3.0 Unported License</a>.
  64. </div>
  65. <div class="col-sm-5">
  66. <div class="pull-right">
  67. <noindex>
  68. The audio file is from <a rel="nofollow" href="http://spokencorpora.ru/">spokencorpora.ru</a>, used with permission.
  69. </noindex>
  70. </div>
  71. </div>
  72. </div>
  73. </div>
  74. <div class="github-fork-ribbon-wrapper right">
  75. <div class="github-fork-ribbon">
  76. <a itemprop="isBasedOnUrl" href="https://github.com/katspaugh/wavesurfer.js">Fork me on GitHub</a>
  77. </div>
  78. </div>
  79. <script>
  80. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  81. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  82. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  83. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  84. ga('create', 'UA-50026819-1', 'wavesurfer.fm');
  85. ga('send', 'pageview');
  86. </script>
  87. </body>
  88. </html>