summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html25
1 files changed, 18 insertions, 7 deletions
diff --git a/index.html b/index.html
index 5b3d00d..5e7fbaf 100644
--- a/index.html
+++ b/index.html
@@ -42,6 +42,17 @@
$('#alertbox').html('<div class="alert alert-info"><a class="close" data-dismiss="alert" href="#">&times;</a><h4 class="alert-heading">' + heading + '</h4>' + message + '</div>');
}
+ function updateShowsList(data, status, req) {
+ alert(data);
+ }
+
+ var shows_list = [];
+ function app_shows_init() {
+ shows_list = [];
+ data = { LOGIN_NAME: username, PASSWORD: token };
+ $.post("/listshows.cgi", data, updateShowsList, "xml")
+ }
+
function selectApp(app) {
switch(app) {
case "musicpools":
@@ -56,6 +67,7 @@
$('#app-musicpools').hide();
$('#nav-btn-musicpools').removeClass('active');
app = 'shows';
+ app_shows_init();
}
sessionStorage.setItem("app", app);
}
@@ -178,8 +190,7 @@
<div class="span10">
<form class="well form-inline">
<label class="control-label" for="select-dropbox"><h3>Sendung auswählen</h3></label>&nbsp;&nbsp;
- <select id="select-dropbox">
- <option>Democracy Now!</option>
+ <select id="show-selector">
</select>
</form>
</div>
@@ -192,22 +203,22 @@
</div>
<div class="row-fluid">
<div class="span12">
- <h2 id="show-title">Democracy Now!</h2>
+ <h2 id="show-title"></h2>
</div>
</div>
<div class="row-fluid" id="show-details">
<div class="span2">&nbsp;</div>
<div class="span2">
- <strong>Tag:</strong> <span id="show-day">Dienstag</span>
+ <strong>Tag:</strong> <span id="show-dow"></span>
</div>
<div class="span2">
- <strong>Rythmus:</strong> <span id="show-rhythm">wöchentlich</span>
+ <strong>Rythmus:</strong> <span id="show-rhythm"></span>
</div>
<div class="span2">
- <strong>Startzeit:</strong> <span id="show-starttime">00:00</span>
+ <strong>Startzeit:</strong> <span id="show-starttime"></span>
</div>
<div class="span2">
- <strong>Dauer:</strong> <span id="show-length">30 Minuten</span>
+ <strong>Dauer:</strong> <span id="show-length"></span>
</div>
<div class="span2">&nbsp;</div>
</div>