Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Taiko Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Taiko Web
Commits
62343b2f
Commit
62343b2f
authored
Oct 10, 2018
by
Bui
Committed by
GitHub
Oct 10, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #50 from bui/version-watermark
Add version info
parents
09ba8a20
3e32dbdb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
1 deletion
+37
-1
.gitignore
.gitignore
+2
-1
public/index.html
public/index.html
+1
-0
public/src/css/main.css
public/src/css/main.css
+17
-0
public/src/js/loader.js
public/src/js/loader.js
+17
-0
No files found.
.gitignore
View file @
62343b2f
...
...
@@ -43,4 +43,5 @@ Temporary Items
.apdisk
public/songs
public/api
taiko.db
\ No newline at end of file
taiko.db
public/version.json
\ No newline at end of file
public/index.html
View file @
62343b2f
...
...
@@ -56,6 +56,7 @@
<body>
<div
id=
"assets"
></div>
<div
id=
"screen"
></div>
<div
id=
"version"
></div>
<script
src=
"/src/js/main.js"
></script>
</body>
</html>
public/src/css/main.css
View file @
62343b2f
...
...
@@ -224,3 +224,20 @@ kbd{
height
:
12.5vmin
;
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
;
}
\ No newline at end of file
public/src/js/loader.js
View file @
62343b2f
...
...
@@ -13,6 +13,23 @@ class Loader{
this
.
screen
.
innerHTML
=
page
this
.
loaderPercentage
=
document
.
querySelector
(
"
#loader .percentage
"
)
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
.
musicGain
=
snd
.
buffer
.
createGain
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment