Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
71c31ecf
Commit
71c31ecf
authored
Jan 02, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure the sweep always starts from the left
parent
e5800d65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
app/assets/javascripts/logo.js.coffee
app/assets/javascripts/logo.js.coffee
+9
-8
No files found.
app/assets/javascripts/logo.js.coffee
View file @
71c31ecf
NProgress
.
configure
(
showSpinner
:
false
)
NProgress
.
configure
(
showSpinner
:
false
)
defaultClass
=
'tanuki-shape'
defaultClass
=
'tanuki-shape'
highlightClass
=
'highlight'
pieces
=
[
pieces
=
[
'path#tanuki-right-cheek'
,
'path#tanuki-right-eye, path#tanuki-right-ear'
,
'path#tanuki-nose'
,
'path#tanuki-left-eye, path#tanuki-left-ear'
,
'path#tanuki-left-cheek'
,
'path#tanuki-left-cheek'
,
'path#tanuki-left-eye, path#tanuki-left-ear'
,
'path#tanuki-nose'
,
'path#tanuki-right-eye, path#tanuki-right-ear'
,
'path#tanuki-right-cheek'
,
]
]
firstPiece
=
pieces
[
0
]
timeout
=
null
timeout
=
null
clearHighlights
=
->
clearHighlights
=
->
...
@@ -16,18 +16,19 @@ clearHighlights = ->
...
@@ -16,18 +16,19 @@ clearHighlights = ->
start
=
->
start
=
->
clearHighlights
()
clearHighlights
()
pieces
.
reverse
()
unless
pieces
[
0
]
==
firstPiece
work
(
0
)
work
(
0
)
stop
=
->
stop
=
->
window
.
clearTimeout
(
timeout
)
window
.
clearTimeout
(
timeout
)
clearHighlights
()
clearHighlights
()
work
=
(
pieceIndex
)
=
>
work
=
(
pieceIndex
)
-
>
# jQuery's addClass won't work on an SVG. Who knew!
# jQuery's addClass won't work on an SVG. Who knew!
$piece
=
$
(
pieces
[
pieceIndex
])
$piece
=
$
(
pieces
[
pieceIndex
])
$piece
.
attr
(
'class'
,
"
#{
defaultClass
}
#{
highlightClass
}
"
)
$piece
.
attr
(
'class'
,
"
#{
defaultClass
}
highlight
"
)
timeout
=
setTimeout
(
=
>
timeout
=
setTimeout
(
-
>
$piece
.
attr
(
'class'
,
defaultClass
)
$piece
.
attr
(
'class'
,
defaultClass
)
# If we hit the last piece, reset the index and then reverse the array to
# If we hit the last piece, reset the index and then reverse the array to
...
...
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