-
Notifications
You must be signed in to change notification settings - Fork 0
/
VizuHAL.js
37 lines (33 loc) · 1.28 KB
/
VizuHAL.js
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
/*
* VizuHAL - Générez des stats HAL - Generate HAL stats
*
* Copyright (C) 2023 Olivier Troccaz ([email protected]) and Laurent Jonchère ([email protected])
* Released under the terms and conditions of the GNU General Public License (https://www.gnu.org/licenses/gpl-3.0.txt)
*
* Scripts
*/
document.getElementById("tabg").className = "form-group d-none";
var imax = 26;//Nombre total de requêtes
for(let i=1; i<=imax; i++) {
document.getElementById("req"+i).className = "form-group d-none";
}
function freqt() {
//alert(document.getElementById("reqt").value);
if (document.getElementById("reqt").value == "tabg") {
//document.getElementById("tabg").style.display = "block";
document.getElementById("tabg").className = "form-group d-block d-inline";
for(let i=1; i<=imax; i++) {
document.getElementById("req"+i).className = "form-group d-none";
}
}else{
document.getElementById("tabg").className = "form-group d-none";
for(let i=1; i<=imax; i++) {
if (document.getElementById("reqt").value == "req"+i) {
//document.getElementById("req"+i).style.display = "block";
document.getElementById("req"+i).className = "form-group d-block d-inline";
}else{
document.getElementById("req"+i).className = "form-group d-none";
}
}
}
}