From 19447d0064954bbb9bf9be608ea531b583079213 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Mon, 25 Jan 2021 17:44:55 +0100 Subject: [PATCH] Selected button background --- index.html | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 39405002e..9d0897167 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,8 @@ .box { background: rgba(255, 255, 255, 0.85); border-radius: 0.25rem; flex: 1 1; margin: 0.5rem; min-width: 15rem; max-width: 40rem; padding: 0 1.5rem; text-align: center; white-space: nowrap; width: 40rem; z-index: 2 } .buttons { margin: 2rem 0 1.5rem } - .buttons a { border: 1px solid #eee; border-radius: 0.5rem; margin: 0 0.25rem; padding: 0.5rem 0.75rem } + .buttons a { border: 1px solid #eee; border-radius: 0.25rem; margin: 0 0.25rem; padding: 0.5rem 0.75rem } + .buttons .invert { color: rgba(255, 255, 255, 0.85) !important } .container { align-items: center; display: flex; flex-direction: column; justify-content: center; margin-top: 4rem; padding-bottom: 2rem } .desc { font-size: 0.95rem; opacity: 0.85; white-space: normal } .dot { border-radius: 50%; position: absolute; z-index: 0 } @@ -35,7 +36,7 @@

phishing

A community driven curated list of known less-than-honest operators.

Any additions can be made by editing phishing/all.json and adding any new sites in alphabetical order. In the same vein addresses can be added in phishing/address.json. For any discrepancies or requests log an issue.

-

SitesAddresses

+

SitesAddresses

@@ -71,7 +72,7 @@ function draw () { hue = (hue + 1) % 360; document.body.style.background = `hsl(${hue}, 45%, 85%)`; - style.innerHTML = `a { color: hsl(${hue}, 45%, 45%) !important } .buttons a { border-color: hsl(${hue}, 45%, 45%) !important }`; + style.innerHTML = `a { color: hsl(${hue}, 45%, 45%) !important } .buttons a { border-color: hsl(${hue}, 45%, 45%) !important } .buttons .invert { background: hsl(${hue}, 45%, 45%) !important }`; setTimeout(() => window.requestAnimationFrame(draw), 100); } @@ -123,6 +124,12 @@ async function fillTable (newNav) { if (newNav !== navTo) { + if (navTo) { + document.getElementById(`btn-${navTo}`).classList = ''; + } + + document.getElementById(`btn-${newNav}`).classList = 'invert'; + navTo = newNav; table.innerHTML = '';