From 3df2c18f2794836dd994a6cd8f3a6bc96e5fada0 Mon Sep 17 00:00:00 2001 From: sky Date: Sun, 21 Jan 2024 21:19:00 -0500 Subject: [PATCH] fix cloaks and add a few ads --- about.html | 4 +++ ad.html | 1 + cloaks.json | 4 +-- img/pfps/awesome.webp | Bin 0 -> 2284 bytes js/cloaks.js | 79 +++++++++++++++++++----------------------- js/main.js | 8 +++-- projects.html | 5 +++ support.html | 3 ++ 8 files changed, 56 insertions(+), 48 deletions(-) create mode 100644 img/pfps/awesome.webp diff --git a/about.html b/about.html index e7447b37..0385f7ea 100644 --- a/about.html +++ b/about.html @@ -83,6 +83,10 @@ >

DireFlaws

+ +

Awesome-XV

diff --git a/ad.html b/ad.html index 24572c26..0c34b051 100644 --- a/ad.html +++ b/ad.html @@ -41,6 +41,7 @@

What happened? Why does Selenite have ads?

After a lot of thinking, I have decided that the best course of action for Selenite is to add ads. I have spent a lot of time to make sure they are the least intrusive on your experience while still allowing me to make a profit off of the website. This decision was not out of greed or anything, it was because I can't expand Selenite past a certain point without a guaranteed income, and I can't do that solely off of donations.

+

Ads are powered by Adsterra, and we use the 728x90 banner ads and the Native banners, with erotic ads disabled.

There is still an option to disable ads. You can also use an adblocker (which I HIGHLY recommend).

diff --git a/cloaks.json b/cloaks.json index de31e083..00d6edd2 100644 --- a/cloaks.json +++ b/cloaks.json @@ -28,8 +28,8 @@ ], "quizlet": [ "Your Sets", "https://assets.quizlet.com/a/j/dist/app/i/logo/2021/q-twilight.e27821d9baad165.png" - ] + ], "schoology": [ - "Schoology" "https://technology-mnps.ss13.sharpschool.com/UserFiles/Servers/Server_33575695/Image/Technology/Digital%20Tools/Schoology/Schoology.png" + "Schoology", "https://technology-mnps.ss13.sharpschool.com/UserFiles/Servers/Server_33575695/Image/Technology/Digital%20Tools/Schoology/Schoology.png" ] } diff --git a/img/pfps/awesome.webp b/img/pfps/awesome.webp new file mode 100644 index 0000000000000000000000000000000000000000..c00adf028611170649f57f43104c92ebce0bd76f GIT binary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&qUrPQGl6-3aO2W*=*v zv!25d%S4wXtd+`TSrz~#gyzWx0T9(%l#>pi#}prz{$t72@uCpy3aP5853D9fI*Vjre!lTF+A5)#LjN0D5sI%HJBbX$lMcK{_t6R;AEU z7h`o)EDi1(x_r?ZgA?7}Oi*v2xM%iet;zzKn%TPy z=#t))Vx0esjk%?GvB{59XNgbF$As}`mYf5ocWD>iPuE7mQyYQhVIRq}78W zdK6a}*$6hF-bvv)=LgHx)8%GWyOyUHj@TI!rtr*`Y|R16)a|i;PCMjwzq@~>B|XS$ z=h?P|sig;PHuxT}6W!tfsfeR}h8I$_zqY=?>c4Lpv_r&0OH$kkr-`lAao#(h?)t2; zy!KkOR6w7?CDTU0n93e6NS9dHHW%TkwT}&FQ$)I88KPbQ-j!x~o^Me2HS!7WutNdP z&60!v4Q@O?MUP(8#V)T46C3!Y&Zo%YJiuWjqP={%RC9)rlF#z(mGSohVq6DTSewVX zF02&mcx%T_vu0J%$pD_+ZIaL^Mv$Hlq=n$Ewl$-QG}#&3)Z4E#@p)UB^-Fqcw)cmP zj%6E?=5%NF27JX;+?kZHy$}(yBbO;{NZ(PQB(q>;$~oWDdNscbvGhdSg7=kWoIVS4 zu(I&L>^STPr*u4P5Bd6gMBOx8;w>U$tf`Y)N66`Q)U1OXm9ky$A4tRir@!Ur2==$! zYIu`>9I4!J!)iNOI#GEInvSqn{)taLR{#UmG1plfvGgSd*@)l(TFFR*6%2zRg}=am z3c6bg7h3dHuPMI^x$E8Ay_0>w1XXY({(lfuk}Pvyvt3&f(e-IBLsS<5I}<1$q5ny` z&eguB76cE}aJmOdkbmLd$rZG+$~;-jNpI>CmrutSfMq4<5(_9f@j?~DD!f9B`7RqM zcs!sKmfTJAz~rbln>@Z?PohWJ%CceaFqzb;peq5KxCbuo&vHi_I$mK873Z_t8W?K> zEx#A { - console.log(event.target.value); - console.log(cloaklist[event.target.value]); - setCloakCookie( - cloaklist[event.target.value][0], - cloaklist[event.target.value][1] - ); - }; +async function loadCloaks() { + const response = await fetch("/cloaks.json"); + cloaklist = await response.json(); + var presetCloaks = document.getElementById("presetCloaks"); + presetCloaks.onchange = (event) => { + console.log(event.target.value); + console.log(cloaklist[event.target.value]); + setCloakCookie(cloaklist[event.target.value][0], cloaklist[event.target.value][1]); + }; } -document.addEventListener('DOMContentLoaded', function() { - loadCloaks(); -}) \ No newline at end of file +document.addEventListener("DOMContentLoaded", function () { + loadCloaks(); +}); diff --git a/js/main.js b/js/main.js index b6595265..beb82e5c 100644 --- a/js/main.js +++ b/js/main.js @@ -16,10 +16,12 @@ function check() { } document.addEventListener("DOMContentLoaded", function () { - if(document.getElementById("adcontainer") && Math.random() > 0.5 || localStorage.getItem("selenite.adblock") == "true") { - document.getElementById("adcontainer").innerHTML = ""; + if(document.querySelectorAll('[id=adcontainer]')) { + for(let i = 0; i < document.querySelectorAll('[id=adcontainer]').length; i++) { + if(Math.random() < 0.5 || localStorage.getItem("selenite.adblock") == "true") + document.querySelectorAll('[id=adcontainer]')[i].innerHTML = ""; + } } - const iconSetting = document.querySelector("input#discordIcon"); const blockClose = document.querySelector("input#blockClose"); const openBlank = document.getElementById("blank"); diff --git a/projects.html b/projects.html index 81d446e0..ff6d47e5 100644 --- a/projects.html +++ b/projects.html @@ -116,6 +116,11 @@
Add Game logo

Suggest a game!

games loading..

+ diff --git a/support.html b/support.html index 4f2ee561..122584a1 100644 --- a/support.html +++ b/support.html @@ -46,6 +46,9 @@ +

also viewing this ad will help me :)

+ +