Skip to content

Commit

Permalink
Added mouse leaving Quick Launcher panel makes it collapse
Browse files Browse the repository at this point in the history
  • Loading branch information
NovaAppsInc committed Nov 4, 2021
1 parent a3f40cb commit 95b8242
Show file tree
Hide file tree
Showing 4 changed files with 3,256 additions and 13 deletions.
3 changes: 2 additions & 1 deletion proxy/main/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<link rel="stylesheet" href="./styles/style.css">
<link rel="shortcut icon" href="./resources/favicon.ico" type="image/x-icon">
<script async src="https://arc.io/widget.min.js#dTypo6d8"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
<div class="toolbar" role="banner">
Expand Down Expand Up @@ -51,5 +52,5 @@ <h2 class="infql">Quick Launch sites</h2>
<script src="./js/alerts.js"></script>
<script src="./js/agent.js"></script>
<script src="./js/index.js"></script>
<script src="./js/jq.js"></script>
<!-- <script src="./js/jq.js"></script> -->
</html>
15 changes: 11 additions & 4 deletions proxy/main/js/alerts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,29 @@ const qld = document.getElementById("qld");
const qlbtm = document.getElementById("qlbtm");
const qlbti = document.getElementById("qlbti");

qld.addEventListener("mouseleave", () => {
qld.style.visibility = "collapse";
qld.classList.remove("open");
qld.classList.add("hidden");
});

qlbtm.addEventListener("click", (e) => {
if(qld.classList.contains("hidden")) {
if (qld.classList.contains("hidden")) {
qld.style.visibility = "visible";
qld.classList.remove("hidden");
qld.classList.add("open");
} else if(qld.classList.contains("open")) {
} else if (qld.classList.contains("open")) {
qld.style.visibility = "collapse";
qld.classList.remove("open");
qld.classList.add("hidden");
}
})
});


// qlbti.addEventListener("click", (e) => {
// console.log("fuck!")
// })

setInterval(function(){
setInterval(function () {
alerting.style.visibility = "collapse";
}, 10000);
11 changes: 3 additions & 8 deletions proxy/main/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ class xor {
};
};

document.cookie="olds=sus";

function go(link) {
console.log(link);
if (link == '') {
Expand All @@ -23,7 +25,6 @@ const ytmus = document.getElementById("ytmus");
const yt = document.getElementById("yt");
const cmg = document.getElementById("cmg");
const appl = document.getElementById("appl");
const spot = document.getElementById("spoti");
const reddi = document.getElementById("reddi");
// End //

Expand Down Expand Up @@ -53,13 +54,8 @@ appl.addEventListener("click", () => {
document.body.style.background = "#e1e1e1";
});

spot.addEventListener("click", () => {
go("spotify.com");
document.body.style.background = "#222222";
});

reddi.addEventListener("click", () => {
go("reddit.com");
go("http://reddit.com");
document.body.style.background = "#222222";
});

Expand All @@ -80,7 +76,6 @@ let observer = new MutationObserver(mutations => {
if (event.key !== 'Enter') return;
go(document.getElementById('urlbar').value)
});
document.cookie="olds=sus";
function reloadh() {
document.getElementById("frame").setAttribute('src', 'home.html');
document.body.style.backgroundColor = "#222222";
Expand Down
Loading

0 comments on commit 95b8242

Please sign in to comment.