index.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>wavesurfer.js | Angular</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. <!-- AngularJS -->
  13. <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
  14. <!-- wavesurfer.js -->
  15. <script src="../../dist/wavesurfer.js"></script>
  16. <!-- App -->
  17. <script src="app.js"></script>
  18. </head>
  19. <body ng-app="ngWavesurfer" ng-controller="PlaylistController">
  20. <div class="container">
  21. <div class="header">
  22. <ul class="nav nav-pills pull-right">
  23. <li><a href="/"><i class="glyphicon glyphicon-home"></i></a></li>
  24. </ul>
  25. <h1 itemprop="name">wavesurfer.js Angular Demo</h1>
  26. </div>
  27. <div id="demo">
  28. <div class="row" style="margin: 30px 0">
  29. <div class="col-sm-10">
  30. <ng-wavesurfer url="../media/demo.wav" wave-color="#337ab7" progress-color="#23527c" height="64">
  31. </ng-wavesurfer>
  32. </div>
  33. <div class="col-sm-2">
  34. <button class="btn btn-success btn-block" ng-click="wavesurfer.playPause()">
  35. <span id="play" ng-show="paused">
  36. <i class="glyphicon glyphicon-play"></i>
  37. Play
  38. </span>
  39. <span id="pause" ng-show="!paused">
  40. <i class="glyphicon glyphicon-pause"></i>
  41. Pause
  42. </span>
  43. </button>
  44. </div>
  45. </div>
  46. <div class="list-group" id="playlist">
  47. <a href=""
  48. ng-class="{ 'list-group-item': true, active: isPlaying('../media/demo.wav') }"
  49. ng-click="play('../media/demo.wav')">
  50. <i class="glyphicon glyphicon-play"></i>
  51. czskamaarù – Trou
  52. <span class="badge">0:21</span>
  53. </a>
  54. <a href=""
  55. ng-class="{ 'list-group-item': true, active: isPlaying('../panner/media.wav') }"
  56. ng-click="play('../panner/media.wav')">
  57. <i class="glyphicon glyphicon-play"></i>
  58. 日本人の話し
  59. <span class="badge">1:04</span>
  60. </a>
  61. <a href=""
  62. ng-class="{ 'list-group-item': true, active: isPlaying('../elan/transcripts/001z.mp3') }"
  63. ng-click="play('../elan/transcripts/001z.mp3')">
  64. <i class="glyphicon glyphicon-play"></i>
  65. Рассказы о сновидениях
  66. <span class="badge badge-info">1:26</span>
  67. </a>
  68. </div>
  69. </div>
  70. <div class="footer row">
  71. <div class="col-sm-12">
  72. </div>
  73. <div class="col-sm-7">
  74. <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>.
  75. </div>
  76. <div class="col-sm-5">
  77. <p>
  78. Audio sources:<br />
  79. <a rel="nofollow" href="http://www.jamendo.com/en/track/661578/trou"><b>Trou</b> <span class="muted">by</span>&nbsp;<b>czskamaarù</b></a>,
  80. <a rel="nofollow" href="http://spokencorpora.ru/">spokencorpora.ru</a>
  81. </p>
  82. </div>
  83. </div>
  84. </div>
  85. <div class="github-fork-ribbon-wrapper right">
  86. <div class="github-fork-ribbon">
  87. <a itemprop="isBasedOnUrl" href="https://github.com/katspaugh/wavesurfer.js">Fork me on GitHub</a>
  88. </div>
  89. </div>
  90. <script>
  91. (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  92. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  93. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  94. })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
  95. ga('create', 'UA-50026819-1', 'wavesurfer.fm');
  96. ga('send', 'pageview');
  97. </script>
  98. </body>
  99. </html>