This commit is contained in:
= 2021-06-02 16:14:53 +05:00
parent 29dfd28d2c
commit b47eb3fc34
2 changed files with 10 additions and 14 deletions

View File

@ -9,6 +9,12 @@ closeMenu.onclick = function () {
menu.classList.remove("showMenu");
};
var searchModal = document.getElementById("searchModal");
var searchBtn = document.getElementById("searchBtn");
var searchClose = document.getElementById("searchClose");
searchBtn.onclick = function () {
searchModal.classList.add("active");
};
searchClose.onclick = function () {
searchModal.classList.remove("active");
};

View File

@ -180,16 +180,6 @@ random = 0
</div>
</div>
</div>
<script>
var searchModal = document.getElementById("searchModal");
var searchBtn = document.getElementById("menuBtn");
var searchClose = document.getElementById("searchClose");
searchBtn.onclick = function () {
searchModal.classList.add("active");
};
searchClose.onclick = function () {
searchModal.classList.remove("active");
};
</script>
<!-- main end
================================================ -->