Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
timebars
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
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
Nesstar
timebars
Commits
5ada49cc
Commit
5ada49cc
authored
Apr 04, 2014
by
Kjetil Thuen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Namespaced timer, polished slider
parent
453dba0f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
110 additions
and
94 deletions
+110
-94
src/app/main.coffee
src/app/main.coffee
+1
-12
src/app/timebars.coffee
src/app/timebars.coffee
+93
-67
src/style/timebars.scss
src/style/timebars.scss
+16
-15
No files found.
src/app/main.coffee
View file @
5ada49cc
timebars
=
require
'./timebars.coffee'
nesstarloader
=
require
'./nesstarloader.coffee'
timeBarAnim
=
undefined
window
.
nesstartimebars
=
{}
window
.
nesstartimebars
.
main
=
(
containerId
,
dataDesc
)
->
...
...
@@ -20,16 +19,6 @@ window.nesstartimebars.main = (containerId, dataDesc) ->
,
dataDesc
)
window
.
nesstartimebars
.
toggleAnimation
=
(
containerId
)
->
if
timeBarAnim
?
clearInterval
timeBarAnim
timeBarAnim
=
undefined
document
.
getElementById
(
containerId
+
"playBtn"
)
.
innerHTML
=
"<i class='fa fa-play'></i>"
else
timeBarAnim
=
setInterval
->
timebars
.
nextFrame
containerId
,
timebars
.
speed
()
document
.
getElementById
(
containerId
+
"playBtn"
)
.
innerHTML
=
"<i class='fa fa-pause'></i>"
timebars
.
toggleAnim
(
containerId
)
undefined
src/app/timebars.coffee
View file @
5ada49cc
This diff is collapsed.
Click to expand it.
src/style/timebars.scss
View file @
5ada49cc
...
...
@@ -17,6 +17,7 @@
.controls
{
display
:
table
;
border-spacing
:
5px
;
height
:
45px
;
button
{
display
:
table-cell
;
...
...
@@ -25,23 +26,26 @@
.dragdealer
{
@include
rounded
();
width
:
100%
;
font-size
:
14px
;
display
:
table-cell
;
background
:
#e1e1e1
;
position
:
relative
;
.handle
{
@include
rounded
();
padding-left
:
1em
;
padding-right
:
1em
;
height
:
100%
;
width
:
75px
;
background
:
#c00
;
color
:
white
;
font-weight
:
bold
;
line-height
:
30px
;
position
:
absolute
;
cursor
:
pointer
;
text-align
:center
;
border
:
1px
solid
silver
;
vertical-align
:middle
;
//now we can center vertically like in a TD
line-height
:
35px
;
}
}
}
.axisLabels
{
path
,
line
{
display
:
none
;
...
...
@@ -119,19 +123,16 @@
}
}
.leftLabel
{
font-size
:
200%
;
position
:
absolute
;
left
:
0
.5em
;
bottom
:
2em
;
}
.rightLabel
{
.inlineLabel
{
font-size
:
200%
;
position
:
absolute
;
right
:
1em
;
bottom
:
2em
;
text-align
:
right
;
bottom
:
70px
;
&
.left
{
left
:
20px
;
}
&
.right
{
right
:
20px
;
}
}
.poster
{
...
...
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