forked from hftlclub/club-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
151 lines (134 loc) · 7.47 KB
/
index.html
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- used to start like an app with google chrome on android -->
<meta name="mobile-web-app-capable" content="yes">
<title>Stecker Infoscreen</title>
<!-- Bootstrap -->
<link href="./common/css/bootstrap.min.css" rel="stylesheet">
<link href="./common/css/bootstrap.cyborg.min.css" rel="stylesheet">
<link href="./common/css/style.css" rel="stylesheet">
<link rel="icon" href="./common/pictures/fav.ico">
<link rel="shortcut icon" href="./common/pictures/stecker.png" type="image/png" />
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<div class="row">
<div class="page-header steckerlogo">
<h1>Stecker <small>Splashscreen</small></h1>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class=" center-block" style="text-align:center;">
<button type="button" class="btn btn-default btn-lg" onclick="window.location.href='./infoscreen/'">
<span class="glyphicon glyphicon-info-sign largeicon"> </span>
<br />Infoscreen
</button>
<button type="button" class="btn btn-default btn-lg" onclick="window.location.href='./diet/'">
<span class="glyphicon glyphicon-glass largeicon"> </span>
<br />Getränke
</button>
<button type="button" class="btn btn-default btn-lg" onclick="window.location.href='./eingabe/'">
<span class="glyphicon glyphicon-comment largeicon"> </span>
<br />Nachricht
</button>
<button type="button" class="btn btn-default btn-lg" onclick="window.location.href='./pizza/'">
<span class="glyphicon glyphicon-shopping-cart largeicon"> </span>
<br />Pizza
</button>
<button type="button" class="btn btn-default btn-lg" onclick="window.location.href='./karaoke/'">
<span class="glyphicon glyphicon-music largeicon"></span>
<br />Karaoke
</button>
<button type="button" class="btn btn-default btn-lg" onclick="window.location.href='./wishlist/'">
<svg version="1.1" id="Icons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="35px" height="35px" viewBox="0 0 100 100" fill="#ffffff" style="enable-background:new 0 0 100 100;" xml:space="preserve">
<path id="Spotify" d="M20.389,84.279c6.928-9.985,18.439-16.545,31.514-16.545c11.903,0,22.508,5.438,29.545,13.945
C89.511,73.546,94.5,62.359,94.5,50.002C94.5,25.148,74.354,5,49.5,5c-24.852,0-45,20.148-45,45.002
C4.5,63.742,10.678,76.028,20.389,84.279z M73.555,63.5c-0.654,1.459-1.824,1.755-3.195,1.122
c-5.993-2.772-12.663-4.325-19.696-4.325c-7.22,0-14.055,1.637-20.171,4.546c-0.655,0.313-2.095,0.45-2.743-1.415
c-0.648-1.867,0.376-2.923,0.965-3.195c6.673-3.121,14.099-4.893,21.949-4.893c7.712,0,15.134,1.466,21.595,4.728
C73.278,60.584,74.208,62.041,73.555,63.5z M77.384,52.005c-0.466,0.652-1.191,1.104-2.053,1.104c-0.238,0-0.455-0.077-0.673-0.138
c-7.343-3.245-15.452-5.067-23.995-5.067c-8.479,0-16.534,1.794-23.835,4.993c-0.264,0.092-0.536,0.173-0.832,0.173
c-0.878,0-1.616-0.468-2.079-1.142l-0.486-1.459c0.009-0.757,0.362-1.412,0.891-1.878c8.044-3.611,16.951-5.645,26.342-5.645
c9.387,0,18.288,2.029,26.331,5.641c0.539,0.459,0.884,1.134,0.898,1.891L77.384,52.005z M21.053,33.831
c9.154-3.694,19.136-5.758,29.61-5.758c10.378,0,20.272,2.022,29.354,5.651c1.23,0.627,2.092,1.861,2.092,3.335
c0,2.088-1.694,3.78-3.78,3.78c-0.292,0-0.568-0.065-0.839-0.129c-8.292-3.343-17.339-5.203-26.826-5.203
c-9.494,0-18.549,1.862-26.843,5.211c-0.269,0.06-0.535,0.121-0.82,0.121c-2.086,0-3.78-1.692-3.78-3.78
C19.22,35.684,19.959,34.492,21.053,33.831z M51.902,82.607c-7.621,0-14.371,3.673-18.678,9.311C38.279,93.882,43.753,95,49.5,95
c7.123,0,13.831-1.698,19.817-4.645C65.012,85.605,58.806,82.607,51.902,82.607z" />
</svg>
<br />Song wünschen
</button>
<button type="button" class="btn btn-default btn-lg" onclick="window.location.href='./options.html'">
<span class="glyphicon glyphicon-cog largeicon"></span>
<br />Optionen
</button>
<button type="button" class="btn btn-default btn-lg" onclick="window.location.href='./manager/'">
<span class="glyphicon glyphicon-wrench largeicon"></span>
<br />Manager
</button>
</div>
</div>
</div>
<div class="row" id="redirectDiv">
<hr />
<div class="col-md-12">
<div class="center-block" style="text-align:center;">
<p>Dieses Display startet in <span id="remainingTime"></span> Sekunden im Infoscreen-Modus...</p>
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="./common/js/jquery-1.8.2.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="./common/js/bootstrap.min.js"></script>
<script type="text/javascript">
var redirectTimeout = 30; // seconds for auto redirect to a module - set to 0 to disable the redirect (config this in the database?)
function renewTimeout() {
// refresh text
$('#remainingTime').text(redirectTimeout);
if (redirectTimeout == 0) {
//redirect now!
var url = "./infoscreen/";
window.location.replace(url);
}
redirectTimeout--;
}
if (redirectTimeout == 0) {
$('redirectDiv').hide();
} else {
var auto_refresh = setInterval(function () {
renewTimeout()
}, 1000);
renewTimeout();
}
if (GetURLParameter("keyboard") === "on" || GetURLParameter("keyboard") === "enable") {
localStorage.setItem("EnableOnscreenKeyboard", "true");
}
if (GetURLParameter("keyboard") === "off" || GetURLParameter("keyboard") === "disable") {
localStorage.setItem("EnableOnscreenKeyboard", "false");
}
function GetURLParameter(sParam) {
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split('&');
for (var i = 0; i < sURLVariables.length; i++) {
var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == sParam) {
return sParameterName[1];
}
}
}
</script>
</body>
</html>