From 630b44fd74991e2757b2870eb76abbf3ad0f616f Mon Sep 17 00:00:00 2001
From: ulrich
Date: Sun, 11 Apr 2021 15:33:33 +0000
Subject: [PATCH] Sonderzeichen

---
 www/ui/js/app.js |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/www/ui/js/app.js b/www/ui/js/app.js
index 4116be0..ff1a26e 100644
--- a/www/ui/js/app.js
+++ b/www/ui/js/app.js
@@ -256,6 +256,20 @@
       self.abspielliste_auswahl_fuellen();
       self.addEvtListener('#dazu-btn', 'click', self.titelDazu);
       self.addEvtListener('#play-btn', 'click', self.play);
+      self.addEvtListener('#stop-btn', 'click', function() {
+        self.kommando('stop');
+      });
+      self.addEvtListener('#pause-btn', 'click', function() {
+        self.kommando('pause');
+      });
+      self.addEvtListener('#weiter-btn', 'click', function() {
+        self.kommando('weiter');
+      });
+      
+/*
+    <button class="ctrl-btn ctrl-item" id="hier-btn" title="hier spielen"><i class="icon-tablet"></i></button>
+ */      
+      
       self.addEvtListener('#weg-btn', 'click', self.titelWeg);
       self.addEvtListener('#leeren-btn', 'click', self.alleTitelEntfernen);
       self.media_liste();
@@ -295,6 +309,13 @@
     });
   };
   
+  this.kommando = function(kommando) {
+    var abs = document.querySelector('#abspieler').value;
+    self.http_get('../api/strg/' + abs + '/' + kommando, function(responseText) {
+      self.meldung_mit_timeout(responseText, 1500);
+    });
+  };
+    
   /* ------------- Verwaltungsfunktionen Abspielliste -------------------- */
   
   self.alleTitelEntfernen = function() {

--
Gitblit v1.9.3