-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
206 lines (205 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
<!DOCTYPE html>
<html>
<head>
<title>Projet Baudimax</title>
<link href="style.css" rel="stylesheet">
<meta author="corentin dekeyne / slyai"/>
<meta ver="1.0.0"/>
<meta copyright="Apache Licence 2.0">
<script type="text/javascript" src="config.js"></script>
<meta charset="utf-8"/>
</head>
<body>
<!-- Partie NON MODIFIABLE -->
<br></br></br></br>
<h1><script>document.write(titreSite)</script></h1>
<!-- pour changer L'ip allez dans config.js et pour changer l'ip du relay allez ici http://ip configuré/30000/41 -->
<table>
<tr><td><script>document.write(nomTable1)</script></td><td><script>document.write(nomTable2)</script></td><td><script>document.write(nomTable3)</script></td></tr>
<tr>
<td><script>document.write(allRelais)</script></td>
<td><a class="buttonGreen" onclick="openallRelay()"><script>document.write(nameButtonOn)</script></a></td>
<td><a class="buttonRed" onclick="closeallRelay()"><script>document.write(nameButtonOff)</script></a></td>
</tr>
<tr>
<td><script>document.write(relais1)</script></td>
<td><a class="buttonGreen" onclick="openRelay1()"><script>document.write(nameButtonOn)</script></a></td>
<td><a class="buttonRed" onclick="closeRelay1()"><script>document.write(nameButtonOff)</script></a></td>
</tr>
<tr>
<td><script>document.write(relais2)</script></td>
<td><a class="buttonGreen" onclick="openRelay2()"><script>document.write(nameButtonOn)</script></a></td>
<td><a class="buttonRed" onclick="closeRelay2()"><script>document.write(nameButtonOff)</script></a></td>
</tr>
<tr>
<td><script>document.write(relais3)</script></td>
<td><a class="buttonGreen" onclick="openRelay3()"><script>document.write(nameButtonOn)</script></a></td>
<td><a class="buttonRed" onclick="closeRelay3()"><script>document.write(nameButtonOff)</script></a></td>
</tr>
<tr>
<td><script>document.write(relais4)</script></td>
<td><a class="buttonGreen" onclick="openRelay4()"><script>document.write(nameButtonOn)</script></a></td>
<td><a class="buttonRed" onclick="closeRelay4()"><script>document.write(nameButtonOff)</script></a></td>
</tr>
<tr>
<td><script>document.write(relais5)</script></td>
<td><a class="buttonGreen" onclick="openRelay5()"><script>document.write(nameButtonOn)</script></a></td>
<td><a class="buttonRed" onclick="closeRelay5()"><script>document.write(nameButtonOff)</script></a></td></tr>
<tr>
<td><script>document.write(relais6)</script></td>
<td><a class="buttonGreen" onclick="openRelay6()"><script>document.write(nameButtonOn)</script></a></td>
<td><a class="buttonRed" onclick="closeRelay6()"><script>document.write(nameButtonOff)</script></a></td>
</tr>
<tr>
<td><script>document.write(relais7)</script></td>
<td><a class="buttonGreen" onclick="openRelay7()"><script>document.write(nameButtonOn)</script></a></td>
<td><a class="buttonRed" onclick="closeRelay7()"><script>document.write(nameButtonOff)</script></a></td>
</tr>
<tr>
<td><script>document.write(relais8)</script></td>
<td><a class="buttonGreen" onclick="openRelay8()"><script>document.write(nameButtonOn)</script></a></td>
<td><a class="buttonRed" onclick="closeRelay8()"><script>document.write(nameButtonOff)</script></a></td>
</tr>
</table>
<!-- Partie script NE PAS TOUCHER -->
<script>
var win;
function openallRelay() {
win = window.open("http://" + ip + "/30000/45", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function closeallRelay() {
win = window.open("http://" + ip + "/30000/44", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function openRelay1() {
win = window.open("http://" + ip + "/30000/01", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function closeRelay1() {
win = window.open("http://" + ip + "/30000/00", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function openRelay2() {
win = window.open("http://" + ip + "/30000/03", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function closeRelay2() {
win = window.open("http://" + ip + "/30000/02", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function openRelay3() {
win = window.open("http://" + ip + "/30000/05", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function closeRelay3() {
win = window.open("http://" + ip + "/30000/04", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function openRelay4() {
win = window.open("http://" + ip + "/30000/07", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function closeRelay4() {
win = window.open("http://" + ip + "/30000/06", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function openRelay5() {
win = window.open("http://" + ip + "/30000/09", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function closeRelay5() {
win = window.open("http://" + ip + "/30000/08", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function openRelay6() {
win = window.open("http://" + ip + "/30000/11", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function closeRelay6() {
win = window.open("http://" + ip + "/30000/10", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function openRelay7() {
win = window.open("http://" + ip + "/30000/13", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function closeRelay7() {
win = window.open("http://" + ip + "/30000/12", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function openRelay8() {
win = window.open("http://" + ip + "/30000/15", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<script>
var win;
function closeRelay8() {
win = window.open("http://" + ip + "/30000/14", "_blank", "width=1, height=1");
setTimeout(closeW, time);
}
</script>
<!-- Fonction Close Script -->
<script>
function closeW() {
win.close();
}
</script>
<p class="color"> <script>
document.write(texteB)
</script> <script>
document.write(ip)
</script>
<p>Nous sommes à la version : <script>document.write(ver)</script></p>
<a class="download" href="http://download.slygame.fr/baudimax.zip">telecharger le projet OpenSource</a>
</body>
</html>