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
e80d9bf6
Commit
e80d9bf6
authored
Aug 07, 2018
by
Bui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates
parent
9e60cf0f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
13 deletions
+21
-13
src/css/main.css
src/css/main.css
+5
-0
src/css/titlescreen.css
src/css/titlescreen.css
+2
-3
src/js/songselect.js
src/js/songselect.js
+6
-9
src/php/getsongs.php
src/php/getsongs.php
+7
-0
src/views/titlescreen.html
src/views/titlescreen.html
+1
-1
No files found.
src/css/main.css
View file @
e80d9bf6
...
...
@@ -15,6 +15,7 @@ html, body{
height
:
100%
;
background
:
black
;
color
:
white
;
user-select
:
none
;
}
#screen
{
...
...
@@ -93,4 +94,8 @@ html, body{
z-index
:
1
;
font-size
:
7vmin
;
margin
:
15px
;
}
.click-to-continue
:before
{
width
:
100%
;
}
\ No newline at end of file
src/css/titlescreen.css
View file @
e80d9bf6
...
...
@@ -39,14 +39,13 @@
.click-to-continue
{
display
:
block
;
font-size
:
10
vmin
;
font-size
:
8
vmin
;
color
:
white
;
text-align
:
center
;
position
:
absolute
;
bottom
:
2%
;
width
:
100%
;
animation
:
toggleFade
1s
infinite
ease-out
;
-webkit-text-stroke-width
:
2px
;
-webkit-text-stroke-color
:
black
;
z-index
:
1
;
}
\ No newline at end of file
src/js/songselect.js
View file @
e80d9bf6
...
...
@@ -60,9 +60,10 @@ function SongSelect(){
return
;
}
assets
.
sounds
[
"
ka
"
].
play
();
if
(
!
$
(
'
.opened
'
).
length
)
{
assets
.
sounds
[
"
don
"
].
play
();
assets
.
sounds
[
"
song-select
"
].
pause
();
assets
.
sounds
[
"
song-select
"
].
currentTime
=
0
;
setTimeout
(
function
(){
...
...
@@ -73,6 +74,8 @@ function SongSelect(){
$
(
'
.songsel-title
'
).
attr
(
'
alt
'
,
'
むずかしさをえらぶ
'
).
html
(
'
むずかしさをえらぶ
'
).
css
(
'
left
'
,
-
300
);
$
(
'
.songsel-title
'
).
animate
({
left
:
0
,
opacity
:
"
show
"
},
400
);
});
}
else
{
assets
.
sounds
[
"
ka
"
].
play
();
}
};
...
...
@@ -100,15 +103,9 @@ function SongSelect(){
var
songID
=
titleSplit
[
0
];
var
songTitle
=
songDir
.
substr
(
songID
.
length
+
1
,
songDir
.
length
-
(
songID
.
length
+
1
));
songDifficulties
.
sort
(
function
(
a
,
b
){
if
(
a
.
difficulty
<
b
.
difficulty
)
return
1
;
if
(
a
.
difficulty
>
b
.
difficulty
)
return
-
1
;
return
0
;
});
_code
+=
"
<div id='song-
"
+
songID
+
"
' class='song'><div class='song-title'>
"
+
songTitle
+
'
</div>
'
;
_code
+=
"
<div id='song-
"
+
songID
+
"
' class='song'><div class='song-title
stroke-sub' alt='
"
+
songTitle
+
"
'>
"
+
songTitle
+
'
</div>
'
;
_code
+=
"
<ul class='difficulties'>
"
;
for
(
var
j
=
0
;
j
<
songDifficulties
.
length
;
j
++
){
...
...
src/php/getsongs.php
View file @
e80d9bf6
...
...
@@ -39,6 +39,13 @@
}
}
$scale
=
array
(
'easy.osu'
,
'normal.osu'
,
'hard.osu'
,
'oni.osu'
);
usort
(
$files
,
function
(
$a
,
$b
)
use
(
$scale
)
{
$pos_a
=
array_search
(
$a
[
'songFile'
],
$scale
);
$pos_b
=
array_search
(
$b
[
'songFile'
],
$scale
);
return
$pos_a
-
$pos_b
;
});
$song
=
array
(
"songDir"
=>
$songDir
,
...
...
src/views/titlescreen.html
View file @
e80d9bf6
<div
id=
'title-screen'
>
<div
id=
'logo-big-cont'
><img
src=
"/assets/img/logo-big.png"
alt=
"太鼓の達人ウェブ"
/></div>
<h2
class=
'click-to-continue
'
>
Click or press enter
</h2>
<h2
class=
'click-to-continue
stroke-sub'
alt=
"Click or press enter"
>
Click or press enter
</h2>
</div>
\ No newline at end of file
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