aboutsummaryrefslogtreecommitdiff
path: root/res/default.js
blob: 6776fae69f91df6837d313759777a12f101cfd85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
function sidebar_close() {
    $("#sidebar").fadeOut();
}

function sidebar_open() {
    $("#sidebar").fadeIn();
}

function show_loading() {
	$("#content").html(("<div class='spinner centered'></div>"));
}

function load(file, title) {
	show_loading();
	$("#header").text(title);
	$.get("file:///H:/ichtml/content/"+file, function(data) {
		$("#content").html(data);
	}, "text");
}

function open_timetable() {
	sidebar_close();
	load('timetable.html', 'Stundenplan');
}