From e2034bcc39fd1d859626b3ea7512414dfccee499 Mon Sep 17 00:00:00 2001 From: Peter Grassberger Date: Fri, 31 Jul 2015 22:54:42 +0200 Subject: move main css to file, move clock to utils.js, load jingle groups diff --git a/www/index.html b/www/index.html index 5343b90..b549e41 100644 --- a/www/index.html +++ b/www/index.html @@ -9,25 +9,11 @@ + - @@ -103,13 +89,13 @@
-    -
-
+
@@ -160,11 +146,21 @@
-
-

Jingles

-

- coming soon! -

+
+
+
+    + +
+
+
+
+ + + +
+
diff --git a/www/js/jingles.js b/www/js/jingles.js index c8a5c60..3314572 100644 --- a/www/js/jingles.js +++ b/www/js/jingles.js @@ -19,8 +19,52 @@ * along with rhwebimport. If not, see . */ +jingle_groups_list = []; + +function jingle_groups_updateList(data, status, req) { + jingle_groups_list = []; + $('#show-selector').find('option').remove(); + var dblist = $(data).find("dropboxList"); + var dbs = dblist.children(); + dbs.each(function() { + type = $(this).find('type').text(); + if (type == 'jingle') { + var jingle_group = { + title: $(this).find('jingle-title').text(), + group: { + name: $(this).find('group').text(), + description: $(this).find('group-description').text(), + lowcart: $(this).find('group-low-cart').text(), + highcart: $(this).find('group-high-cart').text(), + }, + normlevel: $(this).find('normalization-level').text(), + trimlevel: $(this).find('autotrim-level').text(), + }; + + var name = jingle_group.title; + $('#jingle-selector').append($('