Skip to content

Commit

Permalink
Bruh
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaNKtext committed Sep 23, 2021
1 parent 7996460 commit 1c5944a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .firebaserc
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"projects": {
"default": "webosu"
}
}
}
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,4 @@ robots.txt
sitemap.xml

# Arc
arc-sw.js

# Local Netlify folder
.netlify
arc-sw.js
1 change: 1 addition & 0 deletions public/testing/assets/js/addbeatmaplist.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function createStarRow(star) {
let img = document.createElement("img");
container.appendChild(img);
row.appendChild(container);
img.crossOrigin = "";
img.src = "assets/img/star.png";
let value = Math.min(Math.max(star - i, 0), 1);
let size = 8 + value * 10;
Expand Down
2 changes: 2 additions & 0 deletions public/testing/assets/js/initgame.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
require(["osu", "underscore", "sound", "playback"],
function (Osu, _, sound, Playback) {
if (!PIXI || !PIXI.utils.isWebGLSupported())
alert("Your browser does not support WebGL2!!")
window.Osu = Osu;
window.Playback = Playback;
// setup compatible audio context
Expand Down
2 changes: 2 additions & 0 deletions public/testing/assets/js/osu.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,11 @@ define(["underscore", "osu-audio", "curves/LinearBezier", "curves/CircumscribedC
}
if (fileentry) {
fileentry.getBlob("image/jpeg", function (blob) {
img.crossOrigin = "";
img.src = URL.createObjectURL(blob);
});
} else {
img.crossOrigin = "";
img.src = "skin/assets/img/defaultbg.jpg";
}
};
Expand Down
25 changes: 11 additions & 14 deletions public/testing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@
<script async src="https://arc.io/widget.min.js#jmdVhsH5"></script>
</head>
<body onload="openModal(modal)">
<!--Soon to be Changelogs-->
<div class="modal" id="modal">
<div class="modal-header">
<div class="title">Notice</div>
<button data-close-button class="close-button">&times;</button>
</div>
<div class="modal-body">
<!--Write plaintext here-->
Hi guys, quick notice here<br>
I released the UI update on <a href="https://webosu.online/testing/">webosu!testing</a>
but I've gotten no feedback, and I'm not sure what to do with it<br>
Expand All @@ -39,8 +37,8 @@
<!--<img src="https://cdn.discordapp.com/emojis/888252208083263508.png?v=1" alt=":tf:" width="56" height="56">-->
</div>
</div>
<div id="overlay"></div>
<!--Pause menu-->
<div id="overlay"></div>
<!--Game Area-->
<div class="game-area" id="game-area" hidden>
</div>
<div class="pause-menu" id="pause-menu" hidden>
Expand Down Expand Up @@ -79,14 +77,12 @@
<a onclick="document.documentElement.requestFullscreen();" class="pseudo button">Fullscreen</a>
</div>
</nav>
<!--Main page-->
<div class="main-page" id="main-page">
<div class="main-content">
<div class="announcement">
Notice: You are using the testing branch of webosu! and bugs may occur, use <a href="https://webosu.online/">webosu!</a> for the most stable build</a>
</div>
<button class="popup-btn" data-modal-target="#modal">Changelogs</button>
<br>
<div class="index-area">
<h2>Public plays</h2>
<hr/>
Expand Down Expand Up @@ -164,16 +160,15 @@ <h2>Random Beatmaps<h2>
</div>
</div>
<!--Footer-->
<footer>
<div class="footer">
<div class="footer-infos">
<span class="footer-info">Join the <a href="https://discord.gg/gHgcR92QMy">Discord server</a>!</span>
<span class="footer-info">Beatmap API: <a href="https://osu.sayobot.cn/">Sayobot</a></span>
<span class="footer-info">Stable Release: <a href="https://github.com/BlaNKtext/webosu">BETA-2.7.7</span>
</div>
<div class="footer">
<div class="footer-infos">
<span class="footer-info">Join the <a href="https://discord.gg/gHgcR92QMy">Discord server</a>!</span>
<span class="footer-info">Beatmap API: <a href="https://osu.sayobot.cn/">Sayobot</a></span>
<span class="footer-info">Stable Release: <a href="https://github.com/BlaNKtext/webosu">BETA-2.7.7</a></span>
</div>
</footer>
</div>
<script>
// Popup Script
const openModalButtons = document.querySelectorAll('[data-modal-target]')
const closeModalButtons = document.querySelectorAll('[data-close-button]')
const overlay = document.getElementById('overlay')
Expand Down Expand Up @@ -208,6 +203,8 @@ <h2>Random Beatmaps<h2>
overlay.classList.remove('active')
console.log("Modal Closed")
}
</script>
<script>
// Live scores
let tbody = document.getElementById("activity-list");
function formattime(date) {
Expand Down

0 comments on commit 1c5944a

Please sign in to comment.