Persoenliche Mediazentrale
ulrich
2024-11-21 1ef98569623b58f8b4e2b5863cea02bfb1e91a98
'Hier spielen' berichtigt
1 files added
2 files modified
14 ■■■■■ changed files
www/app.webmanifest 5 ●●●●● patch | view | raw | blame | history
www/index.html 2 ●●●●● patch | view | raw | blame | history
www/js/app.js 7 ●●●● patch | view | raw | blame | history
www/app.webmanifest
New file
@@ -0,0 +1,5 @@
{
  "short_name": "Tango"
  "name": "Tango"
  "display": "minimal-ui"
}
www/index.html
@@ -25,6 +25,7 @@
    <link rel="stylesheet" type="text/css" href="app-menu.css">
    <link rel="stylesheet" type="text/css" href="hamburger.css">
    <link rel="stylesheet" type="text/css" href="app.css">
    <link rel="manifest" href="/app.webmanifest" />
  </head>
  <body>
    <!-- Kopfzeile -->
@@ -79,6 +80,7 @@
              Hier erscheint der Media-Inhalt.
            </p>
          </div>
          <!-- <audio id="audio-player" controls="true"></audio> -->
        </div>
        <!-- Einblendbereich unten -->
        <div class="dialog-unten"></div>
www/js/app.js
@@ -620,15 +620,12 @@
        //const titelElem = new Audio(titel);        
        self.audioElem = new Audio(titelUrl);
        self.audioElem.addEventListener("ended", self.nextTrack);
        self.audioCtx = new (window.AudioContext || window.webkitAudioContext)();
        const track = self.audioCtx.createMediaElementSource(self.audioElem);
        track.connect(self.audioCtx.destination);
        self.audioElem.play();
        self.playState = 'play';
        self.playState = 'play';
      }
    });
  };
  this.getTitelFromJSONObj = function(titelObj) {
    //const audioElements = document.querySelectorAll('.entity-eintrag');
    const host = 'http://' + window.location.host + '/tango';