Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
Master101215 committed Dec 19, 2024
1 parent 84451f4 commit 519dcd2
Showing 1 changed file with 2 additions and 33 deletions.
35 changes: 2 additions & 33 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,32 +29,6 @@
img {
width: 300px;
}
.popup-warning {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 20px;
border-radius: 10px;
font-size: 20px;
z-index: 1000;
text-align: center;
}
.popup-warning button {
margin-top: 20px;
padding: 10px 20px;
font-size: 18px;
background: #f44336;
border: none;
color: white;
cursor: pointer;
border-radius: 5px;
}
.popup-warning button:hover {
background: #d32f2f;
}
@keyframes blurslowly {
0% {
filter: none;
Expand All @@ -80,11 +54,6 @@
</head>
<body>

<div class="popup-warning" id="popupWarning">
<h1>Please enable popups to continue</h1>
<p>This site requires popups to work properly. Please enable popups for this site in your browser settings.</p>
</div>

<template id="mainContent">
<div class='hello-message'>
<h1>Hi there!</h1>
Expand Down Expand Up @@ -127,8 +96,6 @@ <h1>Hi there!</h1>
document.getElementById("button").addEventListener("click", startVirus);

function showMainContent() {
document.getElementById("popupWarning").style.display = 'none';

document.body.style.display = 'block';
document.getElementById("mainContent").content.cloneNode(true);
}
Expand All @@ -145,6 +112,8 @@ <h1>Hi there!</h1>
}

window.onload = function() {
alert("Unblocking a school chromebook requires popups to work properly. Please enable popups for this site in your browser settings.");

checkPopupEnabled();
};

Expand Down

0 comments on commit 519dcd2

Please sign in to comment.