This commit is contained in:
root 2021-06-02 11:15:49 +00:00
commit c3574b4cee
2 changed files with 10 additions and 14 deletions

View File

@ -9,6 +9,12 @@ closeMenu.onclick = function () {
menu.classList.remove("showMenu"); 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> </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 <!-- main end
================================================ --> ================================================ -->