Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tothemoon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
tothemoon
Commits
220ad9ed
Commit
220ad9ed
authored
Jun 21, 2016
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug
parent
190cfd25
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
animate.coffee
animate.coffee
+6
-5
No files found.
animate.coffee
View file @
220ad9ed
...
@@ -74,12 +74,13 @@ transitions =
...
@@ -74,12 +74,13 @@ transitions =
cruising_excited
:
warp
cruising_excited
:
warp
excited_cruising
:
unwarp
excited_cruising
:
unwarp
curstate
=
document
.
body
.
className
set_state
=
(
newstate
)
->
set_state
=
(
newstate
)
->
oldstate
=
document
.
body
.
className
if
newstate
!=
curstate
if
oldstate
!=
newstate
console
.
log
'set state from'
,
curstate
,
'to'
,
newstate
console
.
log
'set state from'
,
oldstate
,
'to'
,
newstate
transitions
[
curstate
+
'_'
+
newstate
]
?
()
transitions
[
oldstate
+
'_'
+
newstate
]
?
()
curstate
=
newstate
#document.body.className = newstate
if
debug
if
debug
document
.
addEventListener
'keypress'
,
(
e
)
->
document
.
addEventListener
'keypress'
,
(
e
)
->
...
...
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