Переделал выпадашку, теперь это кнопка

This commit is contained in:
Pro100ser
2020-03-18 17:42:18 +03:00
parent 8c698f5e35
commit b3542d79f5
6 changed files with 36 additions and 13 deletions

11
static/js/main.js Normal file
View File

@@ -0,0 +1,11 @@
var a = 0;
function activeClass() {
if (a == 0) {
document.getElementById('dropdown').style.display = "block";
a = 1;
}
else {
document.getElementById('dropdown').style.display = "none";
a = 0;
}
}