Skip to content

Commit 4abe4c3

Browse files
committed
Added an alert about games
1 parent c0530e2 commit 4abe4c3

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"liveServer.settings.port": 5501
3+
}

proxy/main/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525
</div>
2626
</div>
2727
<iframe src="home.html" frameborder="0" class="frame" id="frame"></iframe>
28+
<div class="alertbtm" id="alert">
29+
Some games may not load or might take awhile to load, be patient or don't!
30+
<span class="alertbtmb" id="alertbtm"></span>
31+
</div>
2832
</body>
33+
<script src="./js/alerts.js"></script>
2934
<script src="./js/agent.js"></script>
3035
<script src="./js/index.js"></script>
3136
</html>

proxy/main/js/alerts.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
const alerting = document.getElementById("alert");
2+
3+
setInterval(function(){
4+
alerting.style.visibility = "collapse";
5+
}, 10000);

proxy/main/styles/style.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,4 +1103,25 @@ h1.name {
11031103
.urlbar {
11041104
width: 52rem;
11051105
}
1106+
}
1107+
1108+
.alertbtm {
1109+
position: absolute;
1110+
bottom: 1%;
1111+
right: 1%;
1112+
background: #eb51ff;
1113+
padding: 10px 10px 11px 18px;
1114+
width: 274px;
1115+
border-radius: 4px;
1116+
}
1117+
1118+
.alertbtmb {
1119+
background: #eeeeee;
1120+
height: 5px;
1121+
width: 110%;
1122+
left: -18px;
1123+
position: relative;
1124+
bottom: -11px;
1125+
border-bottom-left-radius: 4px;
1126+
border-bottom-right-radius: 4px;
11061127
}

0 commit comments

Comments
 (0)