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
88dc6c49
Commit
88dc6c49
authored
Dec 30, 2012
by
Vadim Makeev
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #101 from fhemberger/master
Check if Shower is already in slide/list mode
parents
bcaeb91c
3d414b19
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
shower.js
shower.js
+6
-2
No files found.
shower.js
View file @
88dc6c49
...
@@ -131,7 +131,9 @@ window.shower = (function(window, document, undefined) {
...
@@ -131,7 +131,9 @@ window.shower = (function(window, document, undefined) {
* @returns {number}
* @returns {number}
*/
*/
shower
.
enterSlideMode
=
function
()
{
shower
.
enterSlideMode
=
function
()
{
// @TODO: check if it's already in slide mode...
// check if it's already in slide mode...
if
(
body
.
classList
.
contains
(
'full'
)
)
{
return
;
}
body
.
classList
.
remove
(
'list'
);
body
.
classList
.
remove
(
'list'
);
body
.
classList
.
add
(
'full'
);
body
.
classList
.
add
(
'full'
);
return
shower
.
_applyTransform
(
shower
.
_getTransform
());
return
shower
.
_applyTransform
(
shower
.
_getTransform
());
...
@@ -142,7 +144,9 @@ window.shower = (function(window, document, undefined) {
...
@@ -142,7 +144,9 @@ window.shower = (function(window, document, undefined) {
* @returns {number}
* @returns {number}
*/
*/
shower
.
enterListMode
=
function
()
{
shower
.
enterListMode
=
function
()
{
// @TODO: check if it's already in list mode...
// check if it's already in list mode...
if
(
body
.
classList
.
contains
(
'list'
)
)
{
return
;
}
body
.
classList
.
remove
(
'full'
);
body
.
classList
.
remove
(
'full'
);
body
.
classList
.
add
(
'list'
);
body
.
classList
.
add
(
'list'
);
return
shower
.
_applyTransform
(
'none'
);
return
shower
.
_applyTransform
(
'none'
);
...
...
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