Skip to content

Latest commit

 

History

History
38 lines (38 loc) · 1.49 KB

File metadata and controls

38 lines (38 loc) · 1.49 KB
layout page
Title Admin
permalink /admin

Logged In As: admin

Settings

Reset Password

Password
<iframe onerror="iframe.style.display='none'" id="settings" src="https://discord-challenge.fordhamcss.repl.co/admin" frameborder="0"></iframe>
<script defer> const urlParams = new URLSearchParams(window.location.search); let errors = urlParams.getAll('err') if (errors.length > 0) { document.querySelector("#login-error").innerHTML = atob(errors[0]) } let iframe = document.querySelector('iframe') iframe.addEventListener('load', ()=> { console.log(iframe.contentWindow) }) window.addEventListener('message', (e)=> { if (e.data === "closeme") { iframe.remove() } }) </script>