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
0fa03213
Commit
0fa03213
authored
May 04, 2013
by
miripiruni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added slide::stopTimer, fixed pageDown to next step of inner navigation; Fix for list mode
parent
03d73e8d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
shower.js
shower.js
+14
-11
No files found.
shower.js
View file @
0fa03213
...
...
@@ -354,7 +354,7 @@ window.shower = window.shower || (function(window, document, undefined) {
* Go to slide number.
* @param {Number} slideNumber slide number (sic!). Attention: starts from zero.
* @param {Function} [callback] runs only if you not in List mode.
* @returns {Number}
* @returns {Number
|Boolean
}
*/
shower
.
go
=
function
(
slideNumber
,
callback
)
{
var
slide
;
...
...
@@ -363,6 +363,10 @@ window.shower = window.shower || (function(window, document, undefined) {
throw
new
Error
(
'Gimme slide number as Number, baby!'
);
}
if
(
!
shower
.
slideList
[
slideNumber
])
{
return
false
;
}
// Also triggers popstate and invoke shower.enter__Mode()
url
.
hash
=
shower
.
getSlideHash
(
slideNumber
);
...
...
@@ -416,8 +420,13 @@ window.shower = window.shower || (function(window, document, undefined) {
var
currentSlideNumber
=
shower
.
getCurrentSlideNumber
(),
slide
=
shower
.
slideList
[
currentSlideNumber
];
if
(
shower
.
isSlideMode
())
{
slide
.
stopTimer
();
slide
.
next
(
shower
);
}
else
{
shower
.
go
(
currentSlideNumber
+
1
);
}
if
(
typeof
(
callback
)
===
'function'
)
{
callback
();
...
...
@@ -455,15 +464,9 @@ window.shower = window.shower || (function(window, document, undefined) {
*/
shower
.
_turnPreviousSlide
=
function
(
callback
)
{
var
currentSlideNumber
=
shower
.
getCurrentSlideNumber
(),
slide
;
// Slides starts from 0
if
(
currentSlideNumber
<
1
)
{
return
false
;
}
slide
=
shower
.
slideList
[
currentSlideNumber
];
slide
.
timing
&&
slide
.
stopTimer
();
slide
.
stopTimer
();
if
(
shower
.
isSlideMode
())
{
slide
.
prev
(
shower
);
...
...
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