mirror of
https://github.com/ZeJMaN/LBCAlerte_ynh.git
synced 2025-07-06 03:40:48 +02:00
Initial commit
Functional, without SSO
This commit is contained in:
19
sources/static/scripts.js
Normal file
19
sources/static/scripts.js
Normal file
@ -0,0 +1,19 @@
|
||||
|
||||
(function () {
|
||||
var titles = document.querySelectorAll(".formbox");
|
||||
for (var i = 0; i < titles.length; i++) {
|
||||
titles[i].addEventListener("click", function (e) {
|
||||
e.stopPropagation();
|
||||
var dlElement = document.getElementById(this.id + "-content");
|
||||
var span = this.querySelector("span");
|
||||
if (dlElement.style.display != "block") {
|
||||
dlElement.style.display = "block";
|
||||
span.innerHTML = "(cliquez pour fermer)";
|
||||
} else {
|
||||
dlElement.style.display = "none";
|
||||
span.style.display = "inline";
|
||||
span.innerHTML = "(cliquez pour ouvrir)";
|
||||
}
|
||||
}, false);
|
||||
}
|
||||
})();
|
Reference in New Issue
Block a user