-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix twemoji, privacy page error, and content security policy
- Loading branch information
1 parent
6dc503d
commit 3f75f08
Showing
5 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,8 +36,8 @@ | |
document.querySelectorAll(".navbar-link").forEach(function(e){e.addEventListener("click",function(){e.nextElementSibling.classList.toggle("is-hidden-touch")})}); | ||
console.log(`%cSTOP! DELLYTIME%c\n\nDEBUG INFORMATION:\n%cVersion/Channel: <%= req.del.version %>\nNode: <%= req.del.node %>\nResponse time: <%= Date.now() - requestedAt %>ms\n\nUser-Agent: ${navigator.userAgent}`,"color: red; font-size: xx-large; background-color: #000; padding: 10px; border-radius: 5px;","color: yellow; font-size: medium;","font-size: x-small;"); | ||
</script> | ||
<script src="https://unpkg.com/twemoji@latest/dist/twemoji.min.js" crossorigin="anonymous"></script> | ||
<script defer>twemoji.parse(document.body, {folder: 'svg', ext: '.svg'});<% if (preferredTheme === "light") { %>helpTranslateFlag=document.getElementById("helpUsSpan").getElementsByTagName("img")[0],helpTranslateFlag.src="https://twemoji.maxcdn.com/v/13.0.0/svg/1f3f4.svg",helpTranslateFlag.alt="🏴";<% } %></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@twemoji/api@latest/dist/twemoji.min.js" crossorigin="anonymous"></script> | ||
<script defer>twemoji.parse(document.body, {folder: 'svg', ext: '.svg'});<% if (preferredTheme === "light") { %>helpTranslateFlag=document.getElementById("helpUsSpan").getElementsByTagName("img")[0],helpTranslateFlag.src="https://cdn.jsdelivr.net/gh/jdecked/[email protected]/assets/svg/1f3f4.svg",helpTranslateFlag.alt="🏴";<% } %></script> | ||
<script src="/js/status.js" defer></script> | ||
<% if (subtitle === "") { %><script async defer>let seizure=0;function invokeSeizureMode(){seizure+=1;if(seizure===3){seizureMode()}}function seizureMode(){alert("<%= __('page.home.seizureWarning') %>");const body=document.getElementById("siteContent");const hero=document.getElementsByClassName("hero")[0];let audio;if(Math.floor(Math.random()*10)+1>=10){audio=new Audio("/audio/nyan.mp3")}else{audio=new Audio("/audio/rick.mp3")}body.style.fontFamily="Comic Sans MS";document.getElementsByClassName("title")[0].innerText="Discord Seizure List:tm:!";document.getElementsByClassName("subtitle")[0].innerText="Discord's unbiased list, giving people seizures all across the world!";document.getElementById("delLogo").src = "/img/logo-seizuremode.png";audio.play();setInterval(()=>{setTimeout(()=>{body.style.backgroundColor="#ff1493";hero.style.backgroundColor="#ffffff"},0);setTimeout(()=>{body.style.backgroundColor="#ffffff";hero.style.backgroundColor="#ff1493"},20)},100)}</script><% } %> | ||
</body> | ||
|