-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathuiframework.js
More file actions
42 lines (33 loc) · 1.04 KB
/
uiframework.js
File metadata and controls
42 lines (33 loc) · 1.04 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
var showView = function(viewToShow) {
for(var view in views) {
if(view === viewToShow) {
document.getElementById(viewToShow).className = "";
views[view].setup();
} else {
document.getElementById(view).className = "hiddenView";
}
}
}
var showError = function(view, message){
document.getElementById(view+"Error").innerHTML = message;
}
var setTitleSection = function(section, content){
document.getElementById(section).innerHTML= content;
if (content===""){
document.getElementById(section).style.display = "none";
} else {
document.getElementById(section).style.display = "inline";
}
};
var setTitleLeft = function(content){
setTitleSection("titleLeft", content);
};
var titleLeftClick = function() {};
var setTitleCenter = function(content){
setTitleSection("titleCenter", content);
};
var titleCenterClick = function() {};
var setTitleRight = function(content){
setTitleSection("titleRight", content);
};
var titleRightClick = function() {};