A music player that connects to your cloud/distributed storage.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Show note on older browser

+33 -12
+1 -1
src/Javascript/audio-engine.js
··· 9 9 // Audio context 10 10 // ------------- 11 11 12 - let context 12 + var context 13 13 14 14 if (window.AudioContext) { 15 15 context = new window.AudioContext()
+1 -1
src/Javascript/index.js
··· 6 6 // and connect the other bits to it. 7 7 8 8 9 - const app = Elm.UI.init({ 9 + var app = Elm.UI.init({ 10 10 node: document.getElementById("elm"), 11 11 flags: { 12 12 initialTime: Date.now(),
+31 -10
src/Static/Html/Application.html
··· 44 44 45 45 --> 46 46 <noscript> 47 - <div class="f5 fixed fw6 lh-copy tc w-90 white" style=" 48 - left: 50%; 49 - top: 50%; 50 - 51 - -webkit-transform: translate(-50%, -50%); 52 - transform: translate(-50%, -50%); 53 - 54 - font-family: 'Source Sans Pro', sans-serif; 55 - "> 47 + <div 48 + class="f4 flex items-center i justify-center lh-copy ph3 min-vh-100 white-90" 49 + style="font-family: 'Source Sans Pro', sans-serif;" 50 + > 56 51 <p> 57 - Damn it, this application needs Javascript in order to operate. 52 + Damn it, I need some Javascript for this thing. 58 53 </p> 59 54 </div> 60 55 </noscript> ··· 88 83 <script> 89 84 if ("serviceWorker" in navigator) { 90 85 navigator.serviceWorker.register("service-worker.js") 86 + } 87 + </script> 88 + 89 + <!-- 90 + 91 + YE OLDEN BROWSER 92 + ================ 93 + 94 + This `if` condition will be run for older browsers. 95 + 96 + --> 97 + <script> 98 + if (!window.app || !window.context) { 99 + // Add note 100 + const note = document.createElement("div") 101 + 102 + note.className = "f4 flex items-center i justify-center lh-copy ph3 min-vh-100 white-90" 103 + note.style.fontFamily = "\"Source Sans Pro\", sans-serif" 104 + note.innerHTML = "<p>Damn it, I need a modern browser for this thing.</p>" 105 + 106 + document.body.appendChild(note) 107 + 108 + // Remove loader 109 + const elm = document.querySelector("#elm") 110 + 111 + elm.parentNode.removeChild(elm) 91 112 } 92 113 </script> 93 114