Skip to content
Snippets Groups Projects
Select Git revision
  • 6824bcccc278ef370171de598b0e59ed5f6921a6
  • master default protected
  • 1-issue-czi-wtf
  • update-deps
4 results

script.js

Blame
  • user avatar
    Hotte authored
    83e34ed8
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    script.js 701 B
    this.checkShowCondition = function() {
    	return 20;
    }
    
    this.show = function() {
    	//SomeSortOfTimingStuff
    }
    
    this.hide = function() {
    	//CleanDat
    }
    
    this.loaded = function(panel, config) {
    	// reload data
    	setInterval(function() {
    		getMensaPlan();
    	}, 30*60*1000);
    
    	function getMensaPlan() {
    		$.getJSON("tmp/lsfView.json?"+( new Date().getTime()) ).done(function(json) {
    			fillTable(json);
    		}).fail(function(jqxhr, textStatus, error) {
    			var err = textStatus + ", " + error;
    			console.log("Request Failed: " + err);
    		});
    	}
    
    	function fillTable(json) {
    		var date = new Date();
    		document.getElementById("lsfViewTitleBar").innerHTML = "Vorlesungen zwischen  123 und 123";
    	}
    
    	getMensaPlan();
    }