Skip to content
Snippets Groups Projects
Select Git revision
  • 1132260c978a830e04c4696d58a54f4dde76d876
  • master default protected
  • 2017-12-11
  • v2
  • v1
5 results

guidelines_services.md

Blame
  • 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();
    }