index.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>wavesurfer.js | Split Channel 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.regions.js"></script>
  15. <!-- Demo -->
  16. <script src="app.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">Split Channel Waveforms</h1>
  25. </div>
  26. <div id="demo">
  27. <div id="waveform">
  28. <!-- Here be the waveform -->
  29. </div>
  30. <div class="controls">
  31. <button class="btn btn-primary" data-action="play">
  32. <i class="glyphicon glyphicon-play"></i>
  33. Play
  34. /
  35. <i class="glyphicon glyphicon-pause"></i>
  36. Pause
  37. </button>
  38. </div>
  39. </div>
  40. <p class="lead pull-center" id="drop">
  41. Drag'n'drop your
  42. <i class="glyphicon glyphicon-music"></i>-file
  43. here!
  44. </p>
  45. <div class="row marketing">
  46. <h3>How to Enable Split Channels</h3>
  47. <p>
  48. Set the <code>splitChannels</code> option to <code>true</code>.
  49. </p>
  50. <p>
  51. <pre><code>var wavesurfer = WaveSurfer.create({
  52. container: document.querySelector('#wave'),
  53. splitChannels: true
  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://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>
  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 href="https://github.com/katspaugh/wavesurfer.js">katspaugh</a> is licensed under a&nbsp;<a style="white-space: nowrap" rel="license" href="https://opensource.org/licenses/BSD-3-Clause">BSD-3-Clause License</a>.
  64. </div>
  65. <div class="col-sm-5">
  66. <noindex>
  67. Demo music track is <a href="https://www.jamendo.com/en/track/205154/transistor" rel="nofollow"><b>Transistor</b> <span class="muted">by</span>&nbsp;<b>Transistor</b></a> (CC BY-NC-ND 3.0). Thanks!
  68. </noindex>
  69. </div>
  70. </div>
  71. </div>
  72. <div class="github-fork-ribbon-wrapper right">
  73. <div class="github-fork-ribbon">
  74. <a itemprop="isBasedOnUrl" href="https://github.com/katspaugh/wavesurfer.js">Fork me on GitHub</a>
  75. </div>
  76. </div>
  77. <script>
  78. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  79. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  80. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  81. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  82. ga('create', 'UA-50026819-1', 'wavesurfer.fm');
  83. ga('send', 'pageview');
  84. </script>
  85. </body>
  86. </html>