Web based player for "An Audio Guide to Occupation" by Ma'ayan Tsadka
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

index.html 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!doctype html>
  2. <html lang="en" data-bs-theme="dark">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>An Audio Guide to Occupation</title>
  7. <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
  8. </head>
  9. <body onclick="fullScreen()">
  10. <main>
  11. <div class="container-fluid">
  12. <div class="row my-3">
  13. <div class="col-12">
  14. <button onclick="playSound('maayan-tsadka-an-audio-guide-to-ocupation-intro.mp3')" class="btn btn-secondary text-center w-100 h-100">
  15. <h1>
  16. An Audio Guide to Occupation &mdash; part 1 A-D<br/>
  17. <small>by Ma'ayan Tsadka</small>
  18. </h1>
  19. </button>
  20. </div>
  21. </div>
  22. <div class="row mb-3" style="height: 40vh">
  23. <div class="col-6">
  24. <button onclick="playSound('maayan-tsadka-an-audio-guide-to-ocupation-part-1-a.mp3')" class="btn btn-secondary text-center w-100 h-100">
  25. <h3>
  26. A. Means of Intimidation
  27. </h3>
  28. <h5>Israeli military night raid</h5>
  29. </button>
  30. </div>
  31. <div class="col-6">
  32. <button onclick="playSound('maayan-tsadka-an-audio-guide-to-ocupation-part-1-b.mp3')" class="btn btn-secondary text-center w-100 h-100">
  33. <h3>
  34. B. Means of Crowd Control <br/>
  35. </h3>
  36. <h5>
  37. Tear Gas &bull;
  38. The Skunk: Water Cannon
  39. </h5>
  40. </button>
  41. </div>
  42. </div>
  43. <div class="row mb-3" style="height: 40vh">
  44. <div class="col-6">
  45. <button onclick="playSound('maayan-tsadka-an-audio-guide-to-ocupation-part-1-c.mp3')" class="btn btn-secondary text-center w-100 h-100">
  46. <h3>
  47. C. Means of Killing<br/>
  48. </h3>
  49. <h5>
  50. Rubber-Coated Steel Bullets &bull;
  51. Live Ammunition &bull;
  52. Snipers &bull;
  53. Air Strike on Gaza
  54. </h5>
  55. </button>
  56. </div>
  57. <div class="col-6">
  58. <button onclick="playSound('maayan-tsadka-an-audio-guide-to-ocupation-part-1-d.mp3')" class="btn btn-secondary text-center w-100 h-100">
  59. <h3>
  60. D. Means of Resistance
  61. </h3>
  62. </button>
  63. </div>
  64. </div>
  65. </div>
  66. </main>
  67. <script src="bootstrap/js/bootstrap.bundle.min.js"></script>
  68. <script>
  69. window.sound = null;
  70. function fullScreen() {
  71. document.body.requestFullscreen();
  72. }
  73. function playSound(filename) {
  74. fullScreen();
  75. if (window.sound) {
  76. window.sound.pause();
  77. }
  78. window.sound = new Audio('audio/'+filename);
  79. window.sound.play();
  80. }
  81. </script>
  82. </body>
  83. </html>