diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.htaccess b/.htaccess old mode 100644 new mode 100755 diff --git a/css/colors.less b/css/colors.less old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png b/css/images/ui-bg_diagonals-thick_18_b81900_40x40.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_diagonals-thick_20_666666_40x40.png b/css/images/ui-bg_diagonals-thick_20_666666_40x40.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_flat_0_aaaaaa_40x100.png b/css/images/ui-bg_flat_0_aaaaaa_40x100.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_flat_10_000000_40x100.png b/css/images/ui-bg_flat_10_000000_40x100.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_flat_75_ffffff_40x100.png b/css/images/ui-bg_flat_75_ffffff_40x100.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_glass_100_f6f6f6_1x400.png b/css/images/ui-bg_glass_100_f6f6f6_1x400.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_glass_100_fdf5ce_1x400.png b/css/images/ui-bg_glass_100_fdf5ce_1x400.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_glass_55_fbf9ee_1x400.png b/css/images/ui-bg_glass_55_fbf9ee_1x400.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_glass_65_ffffff_1x400.png b/css/images/ui-bg_glass_65_ffffff_1x400.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_glass_75_dadada_1x400.png b/css/images/ui-bg_glass_75_dadada_1x400.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_glass_75_e6e6e6_1x400.png b/css/images/ui-bg_glass_75_e6e6e6_1x400.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_glass_95_fef1ec_1x400.png b/css/images/ui-bg_glass_95_fef1ec_1x400.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png b/css/images/ui-bg_gloss-wave_35_f6a828_500x100.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png b/css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png b/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png old mode 100644 new mode 100755 diff --git a/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png b/css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png old mode 100644 new mode 100755 diff --git a/css/images/ui-icons_222222_256x240.png b/css/images/ui-icons_222222_256x240.png old mode 100644 new mode 100755 diff --git a/css/images/ui-icons_228ef1_256x240.png b/css/images/ui-icons_228ef1_256x240.png old mode 100644 new mode 100755 diff --git a/css/images/ui-icons_2e83ff_256x240.png b/css/images/ui-icons_2e83ff_256x240.png old mode 100644 new mode 100755 diff --git a/css/images/ui-icons_454545_256x240.png b/css/images/ui-icons_454545_256x240.png old mode 100644 new mode 100755 diff --git a/css/images/ui-icons_888888_256x240.png b/css/images/ui-icons_888888_256x240.png old mode 100644 new mode 100755 diff --git a/css/images/ui-icons_cd0a0a_256x240.png b/css/images/ui-icons_cd0a0a_256x240.png old mode 100644 new mode 100755 diff --git a/css/images/ui-icons_ef8c08_256x240.png b/css/images/ui-icons_ef8c08_256x240.png old mode 100644 new mode 100755 diff --git a/css/images/ui-icons_ffd27a_256x240.png b/css/images/ui-icons_ffd27a_256x240.png old mode 100644 new mode 100755 diff --git a/css/images/ui-icons_ffffff_256x240.png b/css/images/ui-icons_ffffff_256x240.png old mode 100644 new mode 100755 diff --git a/css/jquery.ui.css b/css/jquery.ui.css old mode 100644 new mode 100755 diff --git a/favicon.png b/favicon.png old mode 100644 new mode 100755 diff --git a/js/fontloader.js b/js/fontloader.js old mode 100644 new mode 100755 diff --git a/js/starter.js b/js/starter.js old mode 100644 new mode 100755 diff --git a/less/font.php b/less/font.php old mode 100644 new mode 100755 diff --git a/less/less/Cache.php b/less/less/Cache.php old mode 100644 new mode 100755 diff --git a/less/less/Less.php b/less/less/Less.php old mode 100644 new mode 100755 diff --git a/less/less/Version.php b/less/less/Version.php old mode 100644 new mode 100755 diff --git a/less/style.php b/less/style.php old mode 100644 new mode 100755 diff --git a/panels/itworks/script.js b/panels/itworks/script.js old mode 100644 new mode 100755 diff --git a/panels/itworks/style.less b/panels/itworks/style.less old mode 100644 new mode 100755 diff --git a/panels/itworks/template.html b/panels/itworks/template.html old mode 100644 new mode 100755 diff --git a/panels/lsfView/.gitignore b/panels/lsfView/.gitignore old mode 100644 new mode 100755 diff --git a/panels/lsfView/script.js b/panels/lsfView/script.js index 2ca7c5acb40befb08b48d9a7d9039961a28e3985..022458a59cfb86ae9ccc7a39136b343fe5f1c367 100755 --- a/panels/lsfView/script.js +++ b/panels/lsfView/script.js @@ -1,32 +1,13 @@ -this.tabtime=20; this.checkShowCondition = function() { - return 3*this.tabtime; + return 20; } -this.show = function() { - // switch tabs - this.interval=setInterval(function() { - var currentTab = $("#tabs").tabs('option', 'active'); - switch (currentTab) { - case 0: - currentTab = 1; - break; - case 1: - currentTab = 2; - break; - case 2: - currentTab = 0; - break; - default: - currentTab = 0; - } - $("#tabs").tabs({ - active : currentTab - }); - }, this.tabtime*1000); +this.show = function() { + //SomeSortOfTimingStuff } + this.hide = function() { - clearInterval(this.interval); + //CleanDat } this.loaded = function(panel, config) { @@ -36,7 +17,7 @@ this.loaded = function(panel, config) { }, 30*60*1000); function getMensaPlan() { - $.getJSON("tmp/mensaPlan.json?"+( new Date().getTime()) ).done(function(json) { + $.getJSON("tmp/lsfView.json?"+( new Date().getTime()) ).done(function(json) { fillTable(json); }).fail(function(jqxhr, textStatus, error) { var err = textStatus + ", " + error; @@ -46,176 +27,8 @@ this.loaded = function(panel, config) { function fillTable(json) { var date = new Date(); - var next = 0; - if (date.getHours() >= 15) { - next = 1; - } - switch (date.getDay() + next) { - case 0: - var day = json.montag; - break; - case 1: - var day = json.montag; - break; - case 2: - var day = json.dienstag; - break; - case 3: - var day = json.mittwoch; - break; - case 4: - var day = json.donnerstag; - break; - case 5: - var day = json.freitag; - break; - case 6: - var day = json.montag; - break; - case 7: - var day = json.montag; - break; - } - if (next) { - document.getElementById("mensaPlanTitleBar").innerHTML = "Mensaplan von MORGEN dem " - + day[0].date; - } else { - document.getElementById("mensaPlanTitleBar").innerHTML = "Mensaplan von HEUTE dem " - + day[0].date; - } - var tableBody1 = document.getElementById("mensaPlanTable1Body"); - var tableBody2 = document.getElementById("mensaPlanTable2Body"); - var tableBody3 = document.getElementById("mensaPlanTable3Body"); - tableBody1.innerHTML = ""; // clear - tableBody2.innerHTML = ""; // clear - tableBody3.innerHTML = ""; // clear - var a = 0; - var b = 0; - var c = 0; - for (var i = 0; i < day.length; i++) { - var gericht = day[i]; - var row = ""; - switch (gericht.counter) { - case 1: - var row = tableBody1.insertRow(a); - a++; - break; - case 2: - var row = tableBody1.insertRow(a); - a++; - break; - case 3: - var row = tableBody1.insertRow(a); - a++; - break; - case 4: - var row = tableBody3.insertRow(c); - c++; - break; - case 5: - var row = tableBody1.insertRow(a); - a++; - break; - case 6: - var row = tableBody2.insertRow(b); - b++; - break; - case 7: - var row = tableBody3.insertRow(c); - c++; - break; - case 8: - var row = tableBody3.insertRow(c); - c++; - break; - default: - var row = tableBody3.insertRow(c); - c++; - } - var cell1 = row.insertCell(0); - var cell2 = row.insertCell(1); - var cell3 = row.insertCell(2); - cell1.innerHTML = gericht.shortText; - var art = ""; - var first = true; - if (gericht.rind) { - art += "R"; - } - if (!first) { - art += " "; - first = false; - } - if (gericht.schwein) { - art += "S"; - } - if (!first) { - art += " "; - first = false; - } - if (gericht.gefluegel) { - art += "G"; - } - if (!first) { - art += " "; - first = false; - } - if (gericht.fisch) { - art += "F"; - } - if (!first) { - art += " "; - first = false; - } - if (gericht.vegetarisch) { - art += "V"; - } - if (!first) { - art += " "; - first = false; - } - if (gericht.vegan) { - art += "N"; - } - cell2.innerHTML = art; - var img = ""; - switch (gericht.counter) { - case 1: - img = "icon-menue-1.png"; - break; - case 2: - img = "icon-menue-2.png"; - break; - case 3: - img = "icon-tagesgericht.png"; - break; - case 4: - img = "icon-vegetarisch.png"; - break; - case 5: - img = "icon-aktionsteller.png"; - break; - case 6: - img = "icon-grillstation.png"; - break; - case 7: - img = "icon-fisch.png"; - break; - case 8: - img = "icon-vegan.png"; - break; - default: - img = "ERROR"; - } - if (gericht.counter != 0) { - gericht.counter = cell3.innerHTML = '<img src="panels/mensaPlan/img/' - + img + '" />'; - } - } + document.getElementById("lsfViewTitleBar").innerHTML = "Vorlesungen zwischen 123 und 123"; } getMensaPlan(); - - $(function() { - $("#tabs").tabs(); - }); } diff --git a/panels/matekalypse/script.js b/panels/matekalypse/script.js old mode 100644 new mode 100755 diff --git a/panels/matekalypse/style.less b/panels/matekalypse/style.less old mode 100644 new mode 100755 diff --git a/panels/matekalypse/template.html b/panels/matekalypse/template.html old mode 100644 new mode 100755 diff --git a/panels/mensaPlan/.gitignore b/panels/mensaPlan/.gitignore old mode 100644 new mode 100755 diff --git a/panels/mensaPlan/config.php.skel b/panels/mensaPlan/config.php.skel old mode 100644 new mode 100755 diff --git a/panels/mensaPlan/gericht.php b/panels/mensaPlan/gericht.php old mode 100644 new mode 100755 diff --git a/panels/mensaPlan/helper.php b/panels/mensaPlan/helper.php old mode 100644 new mode 100755 diff --git a/panels/mensaPlan/mensaParser.php b/panels/mensaPlan/mensaParser.php old mode 100644 new mode 100755 diff --git a/panels/mensaPlan/simple_html_dom.php b/panels/mensaPlan/simple_html_dom.php old mode 100644 new mode 100755 diff --git a/panels/mensaPlan/tag.php b/panels/mensaPlan/tag.php old mode 100644 new mode 100755 diff --git a/panels/ufc/grepsemester.php b/panels/ufc/grepsemester.php old mode 100644 new mode 100755 diff --git a/panels/ufc/logo.png b/panels/ufc/logo.png old mode 100644 new mode 100755 diff --git a/panels/ufc/proxy.php b/panels/ufc/proxy.php old mode 100644 new mode 100755 diff --git a/panels/ufc/script.js b/panels/ufc/script.js old mode 100644 new mode 100755 diff --git a/panels/ufc/style.less b/panels/ufc/style.less old mode 100644 new mode 100755 diff --git a/panels/ufc/template.html b/panels/ufc/template.html old mode 100644 new mode 100755 diff --git a/panels/werbung/img/Grillen2016_0.png b/panels/werbung/img/Grillen2016_0.png old mode 100644 new mode 100755 diff --git a/panels/werbung/img/itour2016_0.png b/panels/werbung/img/itour2016_0.png old mode 100644 new mode 100755 diff --git a/panels/werbung/script.js b/panels/werbung/script.js old mode 100644 new mode 100755 diff --git a/panels/werbung/style.less b/panels/werbung/style.less old mode 100644 new mode 100755 diff --git a/panels/werbung/template.html b/panels/werbung/template.html old mode 100644 new mode 100755 diff --git a/tmp/dummy.txt b/tmp/dummy.txt old mode 100644 new mode 100755