forked from nono-web/Bto-Beach-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
38 lines (21 loc) · 637 Bytes
/
script.js
File metadata and controls
38 lines (21 loc) · 637 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/***arrow-up***/
const arrow = document.querySelector("#arrow-upping");
arrow.addEventListener('click', ()=>{
window.scroll({
top:0,
behavior: 'smooth'
});
})
/***Home Feedbacks */
function button() {
const button = document.querySelector(".button-feedback");
let div = document.querySelectorAll('.hidden-global-feedbacks');
for (let i = 0; i < div.length; i++) {
if (div[i].style.display === "flex") {
div[i].style.display = "none";
} else {
div[i].style.display = "flex";
button.style.display ='none';
}
}
}