mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08:00
commit
62343b2f68
1
.gitignore
vendored
1
.gitignore
vendored
@ -44,3 +44,4 @@ Temporary Items
|
|||||||
public/songs
|
public/songs
|
||||||
public/api
|
public/api
|
||||||
taiko.db
|
taiko.db
|
||||||
|
public/version.json
|
@ -56,6 +56,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="assets"></div>
|
<div id="assets"></div>
|
||||||
<div id="screen"></div>
|
<div id="screen"></div>
|
||||||
|
<div id="version"></div>
|
||||||
<script src="/src/js/main.js"></script>
|
<script src="/src/js/main.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -224,3 +224,20 @@ kbd{
|
|||||||
height: 12.5vmin;
|
height: 12.5vmin;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#version {
|
||||||
|
position: fixed;
|
||||||
|
z-index: 1000;
|
||||||
|
font-size: 2vh;
|
||||||
|
position: absolute;
|
||||||
|
bottom: 1vh;
|
||||||
|
right: 1vh;
|
||||||
|
opacity: 0.7;
|
||||||
|
font-family: TnT;
|
||||||
|
}
|
||||||
|
|
||||||
|
#version a {
|
||||||
|
color: inherit;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: default;
|
||||||
|
}
|
@ -14,6 +14,23 @@ class Loader{
|
|||||||
this.loaderPercentage = document.querySelector("#loader .percentage")
|
this.loaderPercentage = document.querySelector("#loader .percentage")
|
||||||
this.loaderProgress = document.querySelector("#loader .progress")
|
this.loaderProgress = document.querySelector("#loader .progress")
|
||||||
|
|
||||||
|
var versionTag = document.getElementById("version")
|
||||||
|
this.ajax("/version.json").then(function(resp){
|
||||||
|
var versionLink = document.createElement("a")
|
||||||
|
versionLink.setAttribute("target", "_blank")
|
||||||
|
|
||||||
|
try {
|
||||||
|
var parsed = JSON.parse(resp)
|
||||||
|
versionLink.setAttribute("href", "https://github.com/bui/taiko-web/commit/" + parsed.commit)
|
||||||
|
versionLink.appendChild(document.createTextNode("taiko-web ver." + parsed.version + " (" + parsed.commit_short + ")"))
|
||||||
|
} catch(e) {
|
||||||
|
versionLink.setAttribute("href", "https://github.com/bui/taiko-web")
|
||||||
|
versionLink.appendChild(document.createTextNode("taiko-web (unknown version)"))
|
||||||
|
} finally {
|
||||||
|
versionTag.appendChild(versionLink)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
snd.buffer = new SoundBuffer()
|
snd.buffer = new SoundBuffer()
|
||||||
snd.musicGain = snd.buffer.createGain()
|
snd.musicGain = snd.buffer.createGain()
|
||||||
snd.sfxGain = snd.buffer.createGain()
|
snd.sfxGain = snd.buffer.createGain()
|
||||||
|
Loading…
Reference in New Issue
Block a user