-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathPageCommun.h
More file actions
157 lines (140 loc) · 4.4 KB
/
Copy pathPageCommun.h
File metadata and controls
157 lines (140 loc) · 4.4 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
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
const char *ParaCleHtml = R"====(
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/commun.css">
<style>
body {
color: white;
}
.form {
margin: auto;
padding: 10px;
display: table;
text-align: left;
width: 100%;
}
.ligne {
display: table-row;
padding: 10px;
}
.cadre {
border-top: 1px solid azure;
}
label,
.nomR {
display: table-cell;
margin: 5px;
text-align: left;
font-size: 20px;
height: 25px;
width: 60%;
}
input {
display: table-cell;
margin: 5px;
text-align: left;
font-size: 20px;
height: 25px;
}
.boldT {
text-align: left;
font-weight: bold;
padding: 10px;
}
.Bparametres {
border: inset 10px azure;
}
.Bgeneraux {
border: inset 4px azure;
}
#BoutonsBas {
text-align: center;
}
.Zone {
width: 100%;
border: 1px solid grey;
border-radius: 10px;
margin-top: 10px;
background-color: rgba(30, 30, 30, 0.3);
}
#onglets2 {
display: none;
}
</style>
<script>
let BordsInverse = [".Bparametres"];
function SendCle() {
document.cookie = "CleAcces=" + GID("CleAcces").value.trim();
GID("attente").style = "visibility: visible;";
let xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
let retour = this.responseText;
location.reload();
}
};
xhttp.open('GET', '/CleUpdate', true);
xhttp.send();
}
function init() {
SetHautBas();
LoadParaVar();
Set_Couleurs();
document.cookie = "CleAcces=" + GID("CleAcces").value.trim();
}
function AdaptationSource() { };
function SetParaVar() { };
</script>
<title>Passe Accès Routeur</title>
</head>
<body onload="init();">
<div id="lesOnglets"></div>
<h4>Mot de passe d'accès</h4>
<div class="Zone">
<div class="boldT">Sécurité d'accès aux paramètres et Actions</div>
<div class="form">
<div class="ligne">
<label for="CleAcces">Entrez le mot de passe d'accès : </label>
<input type="text" name="CleAcces" id="CleAcces">
</div>
</div>
</div>
<div id="BoutonsBas">
<br><input class="bouton" type="button" onclick="SendCle();" value="Envoyer">
<div class="lds-dual-ring" id="attente"></div>
</div>
<br>
<div id="pied"></div>
<script src="/ParaCommunJS"></script>
<script src="/CommunCouleurJS"></script>
</body>
</html>
)====";
const char *CommunCSS = R"====(
a:link {color:#aaf;text-decoration: none;}
a:visited {color:#ccf;text-decoration: none;}
.onglets{margin-top:4px;left:0px;font-size:130%;}
#onglets2{margin-top:10px;left:0px;font-size:80%;display:none;}
.Bonglet{margin-left:20px;border:outset 4px grey;background-color:#333;border-radius:6px;padding-left:20px;padding-right:20px;display:inline-block;}
.Bonglet2{margin-left:20px;border:outset 2px grey;background-color:#333;border-radius:4px;padding-left:20px;padding-right:20px;display:inline-block;}
.Bheure{display:inline-block;}
#pied{display:flex;justify-content:space-between;font-size:14px;}
.fsize12{font-size:12px;height:16px;}
.fsize10{font-size:10px;height:14px;}
.fsize8{font-size:8px;}
.tableau { background-color:white;display:inline-block;margin:auto;padding:4px;color:black;border:2px inset
grey;border-radius:10px;}
table{border-collapse:collapse;}
.lds-dual-ring {color: #cccc5b;visibility: hidden;}
.lds-dual-ring,.lds-dual-ring:after {box-sizing: border-box;}
.lds-dual-ring {display: inline-block;width: 80px;height: 80px;}
.lds-dual-ring:after {content: " ";display: block;width: 64px;height: 64px;margin: 8px;border-radius: 50%;border: 6.4px
solid currentColor;border-color: currentColor transparent currentColor transparent;animation: lds-dual-ring 1.2s linear
infinite;}
@keyframes lds-dual-ring {0% {transform: rotate(0deg);} 100% {transform: rotate(360deg);}}
.bouton,input[type=file]::file-selector-button{margin: 5px;text-align:left;font-size:20px;height:28px;border:3px grey
outset;border-radius:7px;cursor:pointer;}
)====";
const char *CouleurDefaut = R"====(ffffff77b5fe000033ccccff333333808080000000ffffff808080000000cccccc888888ff444400ffffffff66ffaa88aaffaaaaffeeeeeebbffffff66666633333300ff00aaff0000ffaaaaffaaff883333ffaa6688ffaaff11)====";