-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.html
More file actions
71 lines (65 loc) · 1.94 KB
/
index.html
File metadata and controls
71 lines (65 loc) · 1.94 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<!-- index.html -->
<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de">
<head>
{{ headContent() }}
{{ bootstrapLib() }}
{{ shinyjs::useShinyjs() }}
<meta charset="UTF-8">
<title>Rex</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="apple-touch-icon" sizes="180x180" href="/www/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/www/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/www/favicon-16x16.png">
<link rel="manifest" href="/www/site.webmanifest">
<link rel="mask-icon" href="/www/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="/www/styleIndex.css" type="text/css">
{{ sso_redirect }}
</head>
<body class="color-theme textButtonMode">
{{ textOutput("debug") }}
<div id="login-container">
{{ login }}
</div>
<div class="fullHLine"></div>
{{ htmlOutput("rexApp", inline=TRUE) }}
<footer>
<small>
{{ footerCopyright }}
{{ footerSource }}
{{ footerVersion }}
{{ footerLicense }}
{{ footerCredits }}
</small>
</footer>
</body>
<script>
$('html').attr('lang', 'en');
$('html').attr('xml:lang', 'en');
$('[lang="de"]').hide();
$('[lang="en"]').show();
name = 'REX_JS_lang';
ca = document.cookie.split(';');
for(let i=0;i < ca.length;i++) {
let c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(name) == 0) {
let lang = c.substring(name.length + 1,c.length);
if (lang === 'en') {
$('html').attr('lang', 'en');
$('html').attr('xml:lang', 'en');
$('[lang="de"]').hide();
$('[lang="en"]').show();
} else {
$('html').attr('lang', 'de');
$('html').attr('xml:lang', 'de');
$('[lang="en"]').hide();
$('[lang="de"]').show();
}
}
}
delete name;
delete ca;
</script>
</html>