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
2770d42b
Commit
2770d42b
authored
Dec 09, 2012
by
Vadim Makeev
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #93 from EvgenyZhlobo/add-braces
Add braces to all ifs
parents
8f9ff9c2
55a49bee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
shower.js
shower.js
+8
-4
No files found.
shower.js
View file @
2770d42b
...
...
@@ -379,8 +379,9 @@ window.shower = (function(window, document, undefined) {
// NOTE: we should update hash to get things work properly
url
.
hash
=
'#'
+
slideId
;
if
(
isHistoryApiSupported
)
if
(
isHistoryApiSupported
)
{
history
.
replaceState
(
null
,
null
,
url
.
pathname
+
'?full#'
+
slideId
);
}
shower
.
enterSlideMode
();
shower
.
updateProgress
(
shower
.
getCurrentSlideNumber
());
...
...
@@ -456,9 +457,10 @@ window.shower = (function(window, document, undefined) {
if
(
!
shower
.
isListMode
())
{
// "?full" is present without slide hash, so we should display first slide
if
(
-
1
===
shower
.
getCurrentSlideNumber
())
{
if
(
isHistoryApiSupported
)
if
(
isHistoryApiSupported
)
{
history
.
replaceState
(
null
,
null
,
url
.
pathname
+
'?full'
+
shower
.
getSlideHash
(
0
));
}
}
shower
.
enterSlideMode
();
shower
.
updateProgress
(
shower
.
getCurrentSlideNumber
());
...
...
@@ -519,8 +521,9 @@ window.shower = (function(window, document, undefined) {
if
(
shower
.
isListMode
()
&&
-
1
!==
currentSlideNumber
)
{
e
.
preventDefault
();
if
(
isHistoryApiSupported
)
if
(
isHistoryApiSupported
)
{
history
.
pushState
(
null
,
null
,
url
.
pathname
+
'?full'
+
shower
.
getSlideHash
(
currentSlideNumber
));
}
shower
.
enterSlideMode
();
shower
.
updateProgress
(
currentSlideNumber
);
...
...
@@ -533,8 +536,9 @@ window.shower = (function(window, document, undefined) {
if
(
!
shower
.
isListMode
())
{
e
.
preventDefault
();
if
(
isHistoryApiSupported
)
if
(
isHistoryApiSupported
)
{
history
.
pushState
(
null
,
null
,
url
.
pathname
+
shower
.
getSlideHash
(
currentSlideNumber
));
}
shower
.
enterListMode
();
shower
.
scrollToSlide
(
currentSlideNumber
);
}
...
...
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