-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjavascript.js
More file actions
22 lines (19 loc) · 768 Bytes
/
Copy pathjavascript.js
File metadata and controls
22 lines (19 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// var dropdown = document.getElementsByClassName("dropdown-btn");
// var i;
// for (i = 0; i < dropdown.length; i++) {
// dropdown[i].addEventListener("click", function() {
// this.classList.toggle("active");
// var dropdownContent = this.nextElementSibling;
// if (dropdownContent.style.display === "block") {
// dropdownContent.style.display = "none";
// } else {
// dropdownContent.style.display = "block";
// }
// });
// }
// function changeImage(hash, imgtxt) {
// var image = document.getElementById('myImage');
// image.src = `commands/${hash}`;
// var imagetxt = document.getElementById('myImagetxt');
// imagetxt.textContent = `${imgtxt}`;
// }