-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
27 lines (23 loc) · 703 Bytes
/
app.js
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
/*
* lang — Ru
* author — NiktoX2
* — https://vk.com/niktox2
* team — Lost Summer Time
* — https://vk.com/lost.summer.time
*
*
*/
window.ondragstart = () => { return false };
document.querySelectorAll(".info__slider li").forEach( (item) => {
item.addEventListener("click", () => {
document.querySelector("#avatar").style.backgroundImage = item.querySelector("span").style.backgroundImage;
})
})
/*
document.addEventListener("contextmenu", (e) => {
document.getElementById("contextmenu").style.left = `${e.pageX}px`;
document.getElementById("contextmenu").style.top = `${e.pageY}px`;
document.getElementById("contextmenu").classList.toggle("hide");
e.preventDefault();
}, false);
*/