Advertisement
BrU32

Untitled

Mar 24th, 2017
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1.  
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <meta name="viewport" content="width=device-width,initial-scale=1">
  6. <title>Audio Recorder</title>
  7.  
  8. <script src="https://webaudiodemos.appspot.com/AudioRecorder/js/audiodisplay.js"></script>
  9. <script src="https://webaudiodemos.appspot.com/AudioRecorder/js/recorderjs/recorder.js"></script>
  10. <script src="https://webaudiodemos.appspot.com/AudioRecorder/js/main.js"></script>
  11. <style>
  12. html { overflow: hidden; }
  13. body {
  14. font: 14pt Arial, sans-serif;
  15. background: lightgrey;
  16. display: flex;
  17. flex-direction: column;
  18. height: 100vh;
  19. width: 100%;
  20. margin: 0 0;
  21. }
  22. canvas {
  23. display: inline-block;
  24. background: #202020;
  25. width: 95%;
  26. height: 45%;
  27. box-shadow: 0px 0px 10px blue;
  28. }
  29. #controls {
  30. display: flex;
  31. flex-direction: row;
  32. align-items: center;
  33. justify-content: space-around;
  34. height: 20%;
  35. width: 100%;
  36. }
  37. #record { height: 15vh; }
  38. #record.recording {
  39. background: red;
  40. background: -webkit-radial-gradient(center, ellipse cover, #ff0000 0%,lightgrey 75%,lightgrey 100%,#7db9e8 100%);
  41. background: -moz-radial-gradient(center, ellipse cover, #ff0000 0%,lightgrey 75%,lightgrey 100%,#7db9e8 100%);
  42. background: radial-gradient(center, ellipse cover, #ff0000 0%,lightgrey 75%,lightgrey 100%,#7db9e8 100%);
  43. }
  44. #save, #save img { height: 10vh; }
  45. #save { opacity: 0.25;}
  46. #save[download] { opacity: 1;}
  47. #viz {
  48. height: 80%;
  49. width: 100%;
  50. display: flex;
  51. flex-direction: column;
  52. justify-content: space-around;
  53. align-items: center;
  54. }
  55. @media (orientation: landscape) {
  56. body { flex-direction: row;}
  57. #controls { flex-direction: column; height: 100%; width: 10%;}
  58. #viz { height: 100%; width: 90%;}
  59. }
  60.  
  61. </style>
  62. </head>
  63. <body>
  64. <div id="viz">
  65. <canvas id="analyser" width="1024" height="500"></canvas>
  66. <canvas id="wavedisplay" width="1024" height="500"></canvas>
  67. </div>
  68. <div id="controls">
  69. <img id="record" src="img/mic128.png" onclick="toggleRecording(this);">
  70. <a id="save" href="#"><img src="img/save.svg"></a>
  71. </div>
  72. </body>
  73. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement