Skip to content

Commit

Permalink
OSS - Display random server rule on loadscreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Maskowh committed May 20, 2023
1 parent a530fe3 commit 2f41082
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 0 deletions.
53 changes: 53 additions & 0 deletions resources/[soz]/soz-loadscreen/assets/app.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions resources/[soz]/soz-loadscreen/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,19 @@ body {
inset: 0;
}

#server-rule {
position: absolute;
text-align: center;
z-index: 2;
position: fixed;
top: 85%;
left: 50%;
transform: translate(-50%, -85%);
color: #f0e2e2;
padding: .3rem 1rem;
border-radius: .3rem;
}

video {
animation: fadein 3s;
opacity: 1;
Expand Down
3 changes: 3 additions & 0 deletions resources/[soz]/soz-loadscreen/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@
<video id="video" src="assets/loading.mp4" autoplay loop width="100%"></video>
<audio src="assets/musique.mp3" loop></audio>
</div>
<div class='box' id="server-rule">
<!-- Filled by app.js-->
</div>
</body>
</html>

0 comments on commit 2f41082

Please sign in to comment.