Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
my-cucumbers-ru-github-io
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Лотуга Данила Сергеевич
my-cucumbers-ru-github-io
Commits
39aa43eb
Commit
39aa43eb
authored
Mar 06, 2013
by
Wichert Akkerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix initialisation problems.
parent
e1443282
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
shower.js
shower.js
+5
-6
No files found.
shower.js
View file @
39aa43eb
...
...
@@ -11,8 +11,7 @@ window.shower = window.shower || (function(window, document, undefined) {
progress
=
[],
slideList
=
[],
timer
,
isHistoryApiSupported
=
!!
(
window
.
history
&&
history
.
pushState
),
l
=
slides
.
length
,
i
;
isHistoryApiSupported
=
!!
(
window
.
history
&&
history
.
pushState
);
/**
* Get value at named data store for the DOM element.
...
...
@@ -37,9 +36,9 @@ window.shower = window.shower || (function(window, document, undefined) {
slides
=
document
.
querySelectorAll
(
slideSelector
);
progress
=
document
.
querySelector
(
progressSelector
);
slideList
=
[]
,
slideList
=
[]
;
for
(
i
=
0
;
i
<
l
;
i
++
)
{
for
(
var
i
=
0
;
i
<
slides
.
length
;
i
++
)
{
// Slide IDs are optional. In case of missing ID we set it to the
// slide number
if
(
!
slides
[
i
].
id
)
{
...
...
@@ -701,6 +700,8 @@ window.shower = window.shower || (function(window, document, undefined) {
}
},
false
);
shower
.
init
();
document
.
addEventListener
(
'click'
,
function
(
e
)
{
var
slideNumber
=
shower
.
getSlideNumber
(
shower
.
_getSlideIdByEl
(
e
.
target
));
...
...
@@ -740,8 +741,6 @@ window.shower = window.shower || (function(window, document, undefined) {
}
},
false
);
shower
.
init
();
return
shower
;
})(
this
,
this
.
document
);
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