Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
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
MyCard
mycard
Commits
c3ad28f9
Commit
c3ad28f9
authored
Jan 21, 2017
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复观战滚动条,匹配时间显示在星光电脑上不正确的问题
parent
cdf5af61
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
5 deletions
+18
-5
app/ygopro.component.css
app/ygopro.component.css
+4
-0
app/ygopro.component.html
app/ygopro.component.html
+2
-2
app/ygopro.component.ts
app/ygopro.component.ts
+12
-3
No files found.
app/ygopro.component.css
View file @
c3ad28f9
...
...
@@ -184,6 +184,10 @@ form {
height
:
440px
;
}
#game-replay-watch
{
max-height
:
500px
;
}
#game-replay-watch
table
{
font-size
:
14px
;
}
...
...
app/ygopro.component.html
View file @
c3ad28f9
...
...
@@ -14,7 +14,7 @@
<span
i18n
*ngIf=
"matching_arena == 'athletic'"
>
竞技匹配
</span>
<span
i18n
*ngIf=
"matching_arena == 'entertain'"
>
娱乐匹配
</span>
</span>
<span
class=
"input-group-addon"
><span
i18n
>
预计时间
</span>
03:00
</span><span
class=
"input-group-addon"
><span
i18n
>
实际时间
</span>
{{match_time
| date:'mm:ss'
}}
</span>
<span
class=
"input-group-addon"
><span
i18n
>
预计时间
</span>
03:00
</span><span
class=
"input-group-addon"
><span
i18n
>
实际时间
</span>
{{match_time}}
</span>
<span
class=
"input-group-btn"
><button
class=
"btn btn-secondary"
type=
"button"
[disabled]=
"!match_cancelable"
(click)=
"cancel_match()"
>
取消
</button></span>
</div>
...
...
@@ -195,7 +195,7 @@
<!--</li>-->
</ul>
<div
class=
"tab-content"
>
<div
class=
"tab-pane active"
id=
"game-replay-watch"
role=
"tabpanel"
>
<div
class=
"tab-pane active
scroll
"
id=
"game-replay-watch"
role=
"tabpanel"
>
<table
class=
"table table-striped table-hover"
>
<thead>
<tr>
...
...
app/ygopro.component.ts
View file @
c3ad28f9
...
...
@@ -164,7 +164,7 @@ export class YGOProComponent implements OnInit, OnDestroy {
matching
:
ISubscription
|
undefined
;
matching_arena
:
string
|
undefined
;
match_time
:
number
;
match_time
:
string
;
match_cancelable
:
boolean
;
match_interval
:
Timer
|
undefined
;
...
...
@@ -581,8 +581,17 @@ export class YGOProComponent implements OnInit, OnDestroy {
}
refresh_match
()
{
this
.
match_time
=
new
Date
().
getTime
()
-
match_started_at
.
getTime
();
this
.
match_cancelable
=
this
.
match_time
<=
5000
||
this
.
match_time
>=
180000
;
let
match_time
=
Math
.
floor
((
new
Date
().
getTime
()
-
match_started_at
.
getTime
())
/
1000
);
let
minute
=
Math
.
floor
(
match_time
/
60
).
toString
();
if
(
minute
.
length
==
1
)
{
minute
=
'
0
'
+
minute
;
}
let
second
=
(
match_time
%
60
).
toString
();
if
(
second
.
length
==
1
)
{
second
=
'
0
'
+
second
;
}
this
.
match_time
=
`
${
minute
}
:
${
second
}
`
;
this
.
match_cancelable
=
match_time
<=
5
||
match_time
>=
180
;
}
bilibili_loaded
()
{
...
...
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