TiledViz
Toggle main menu visibility
Loading...
Searching...
No Matches
ColorTheme.js
1
$(document).ready(
function
(){
2
3
setColorTheme =
function
(colorTheme) {
4
if
(colorTheme ==
"light"
) {
5
$(
'#options'
).css({
6
backgroundColor :
"white"
,
7
color :
"black"
8
});
9
10
$(
'#buttonSave'
).css({
11
backgroundColor :
"lightgray"
,
12
color :
"black"
13
});
14
15
var cssThemeLink = document.createElement(
"link"
);
16
cssThemeLink.href =
"doc/doc_style_light.css"
;
17
cssThemeLink.rel =
"stylesheet"
;
18
cssThemeLink.type =
"text/css"
;
19
20
21
}
22
else
if
(colorTheme ==
"dark"
) {
23
$(
'#options'
).css({
24
backgroundColor :
"black"
,
25
color :
"white"
26
});
27
$(
'#buttonSave'
).css({
28
backgroundColor :
"darkgray"
,
29
color :
"lightgray"
30
});
31
}
32
33
var temp = $(
'#helpframe'
).attr(
"src"
);
34
$(
'#helpframe'
).attr(
"src"
,
""
).attr(
"src"
, temp);
// To reload the help iframe
35
36
$(
'#helpframe'
).on(
'load'
, (
function
(){
37
$(
'#helpframe'
).contents().find(
"head"
).append($(
'<link rel="stylesheet" href="./doc_style_'
+colorTheme+
'.css">'
));
38
}));
39
//document.getElementById("helpframe").reload();
40
};
41
})
TVWeb
app
static
js
ColorTheme.js
Documentation for
TiledViz
$tiledvizversion