Initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
const logout = document.getElementById("logout");
|
||||
|
||||
logout.onmouseenter = async function () {
|
||||
this.style.backgroundColor = "blue";
|
||||
};
|
||||
logout.onmouseleave = async function () {
|
||||
this.style.backgroundColor = "";
|
||||
};
|
||||
logout.onmousedown = async function () {
|
||||
this.style.backgroundColor = "red";
|
||||
};
|
||||
logout.ondblclick = async function () {
|
||||
this.style.backgroundColor = "blue";
|
||||
window.location.href = `${window.location.protocol}//logout@${window.location.host}/`;
|
||||
};
|
||||
Reference in New Issue
Block a user