Skip to content

Commit 92670e8

Browse files
committed
Please disable brave shields 🙏
1 parent 46598c6 commit 92670e8

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

css/style.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,13 +497,9 @@ footer a.social-icon:hover::after {
497497
}
498498
.title.h1.c1 {
499499
color: rgb(30, 255, 0);
500-
margin: 0;
501-
padding: 0;
502500
}
503501
.title.h1.c2 {
504502
color: rgb(255, 50, 50);
505-
margin: 0;
506-
padding: 0;
507503
}
508504
@media screen and (max-width: 768px) {
509505
.hide-on-mobile {

data/data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "V2.2.1.4"
2+
"version": "V2.2.1.6"
33
}
44

images/troubleshoot/desktop.gif

9.75 MB
Loading
File renamed without changes.

images/troubleshoot/mobile.gif

37.9 MB
Loading

images/troubleshoot/mobile_old.gif

21.1 MB
Loading

js/detect.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,24 @@ document.addEventListener("DOMContentLoaded", async function () {
2626
const popup = document.createElement("div");
2727
popup.className = "troubleshoot-popup";
2828
popup.style.position = "fixed";
29-
popup.style.top = "20%";
29+
popup.style.top = "15%";
3030
popup.style.left = "50%";
3131
popup.style.transform = "translate(-50%, 0)";
3232
popup.style.background = "black";
33-
popup.style.padding = "20px";
34-
popup.style.boxShadow = "0 0 10px rgba(0,0,0,0.5)";
33+
popup.style.padding = "30px";
34+
popup.style.width = window.innerWidth <= 768 ? "80%" : "50%";
35+
popup.style.maxWidth = "600px";
36+
popup.style.boxShadow = "0 0 15px rgba(0,0,0,0.5)";
3537
popup.style.zIndex = "1000";
3638
popup.style.borderRadius = "10px";
3739

3840
const text = document.createElement("p");
39-
text.textContent = "Looks like you are using the brave browser. If you experience any issues please try turning off brave shields";
41+
text.textContent = "Looks like you are using the brave browser. Please disable brave shields if you experience any issues";
42+
text.style.color = "#d9534f";
4043

4144
const gif = document.createElement("img");
42-
gif.src = "/images/troubleshoot/brave.gif";
45+
gif.src = window.innerWidth <= 768 ? "/images/troubleshoot/mobile.gif" : "/images/troubleshoot/desktop.gif";
46+
gif.loading = "lazy";
4347
gif.style.width = "100%";
4448
gif.style.marginTop = "10px";
4549

0 commit comments

Comments
 (0)