Skip to content

Commit

Permalink
fix twemoji
Browse files Browse the repository at this point in the history
will now always use the latest twemoji version, and also fixes the integrity issue (oops)
  • Loading branch information
carolinaisslaying authored Mar 5, 2022
1 parent 54e8565 commit c967699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/Views/partials/footer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
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: <%= req.del.version %>\nRelease Channel: <%= req.del.channel %>\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://twemoji.maxcdn.com/v/13.1.0/twemoji.min.js" integrity="sha384-avLpk7eChiSgpDvwa4N7hvg9vj6V9sfFmGHurVkPOlWUalASzcO3d2x3qcbQqhsH" crossorigin="anonymous"></script>
<script src="https://twemoji.maxcdn.com/v/latest/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="/js/status.js"></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><% } %>
Expand Down

0 comments on commit c967699

Please sign in to comment.