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
6f2d2f33
Commit
6f2d2f33
authored
Mar 01, 2012
by
Oleg Roschupkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update inner navigation code.
Closes issues #4 and #58.
parent
9addbae9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
en.htm
en.htm
+6
-6
script.js
scripts/script.js
+6
-6
style.css
themes/ribbon/styles/style.css
+3
-3
No files found.
en.htm
View file @
6f2d2f33
...
@@ -176,11 +176,11 @@
...
@@ -176,11 +176,11 @@
<header>
<header>
<h2>
Inner Navigation
</h2>
<h2>
Inner Navigation
</h2>
</header>
</header>
<ol
class=
"inner"
>
<ol>
<li
class=
"active"
>
This tool is provided
</li>
<li>
This tool is provided
</li>
<li>
Without warranty, guarantee
</li>
<li
class=
"next"
>
Without warranty, guarantee
</li>
<li>
Or much in the way of explanation
<li
class=
"next"
>
Or much in the way of explanation
<li>
Erase your hard drive.
</li>
<li
class=
"next"
>
Erase your hard drive.
</li>
</ol>
</ol>
</section>
</section>
</div></div>
</div></div>
...
@@ -207,4 +207,4 @@
...
@@ -207,4 +207,4 @@
<!-- Copyright © 2010–2012 Vadim Makeev — pepelsbey.net -->
<!-- Copyright © 2010–2012 Vadim Makeev — pepelsbey.net -->
<!-- Photos by John Carey — fiftyfootshadows.net -->
<!-- Photos by John Carey — fiftyfootshadows.net -->
</body>
</body>
</html>
</html>
\ No newline at end of file
scripts/script.js
View file @
6f2d2f33
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
for
(
i
=
0
;
i
<
l
;
i
++
)
{
for
(
i
=
0
;
i
<
l
;
i
++
)
{
slideList
.
push
({
slideList
.
push
({
id
:
slides
[
i
].
id
,
id
:
slides
[
i
].
id
,
hasInnerNavigation
:
null
!==
slides
[
i
].
querySelector
(
'.
inner
'
)
hasInnerNavigation
:
null
!==
slides
[
i
].
querySelector
(
'.
next
'
)
});
});
}
}
...
@@ -127,13 +127,13 @@
...
@@ -127,13 +127,13 @@
// Shortcut for slides without inner navigation
// Shortcut for slides without inner navigation
if
(
true
!==
slideList
[
slideNumber
].
hasInnerNavigation
)
{
return
-
1
;
}
if
(
true
!==
slideList
[
slideNumber
].
hasInnerNavigation
)
{
return
-
1
;
}
var
activeNodes
=
document
.
querySelectorAll
(
getSlideHash
(
slideNumber
)
+
' .active'
),
var
nextNodes
=
document
.
querySelectorAll
(
getSlideHash
(
slideNumber
)
+
' .next:not(.active)'
),
// NOTE: we assume there is no other elements in inner navigation
node
;
node
=
activeNodes
[
activeNodes
.
length
-
1
].
nextElementSibling
;
if
(
null
!==
node
)
{
if
(
0
!==
nextNodes
.
length
)
{
node
=
nextNodes
[
0
];
node
.
classList
.
add
(
'active'
);
node
.
classList
.
add
(
'active'
);
return
activeNodes
.
length
+
1
;
return
nextNodes
.
length
-
1
;
}
else
{
}
else
{
return
-
1
;
return
-
1
;
}
}
...
...
themes/ribbon/styles/style.css
View file @
6f2d2f33
...
@@ -394,10 +394,10 @@ BODY {
...
@@ -394,10 +394,10 @@ BODY {
}
}
/* Inner Navigation */
/* Inner Navigation */
.full
.
inner
>
*
{
.full
.
next
{
opacity
:
0
;
opacity
:
0
;
}
}
.full
.
inner
>
.active
{
.full
.
next
.active
{
opacity
:
1
;
opacity
:
1
;
-webkit-transition
:
opacity
0.5s
linear
;
-webkit-transition
:
opacity
0.5s
linear
;
-moz-transition
:
opacity
0.5s
linear
;
-moz-transition
:
opacity
0.5s
linear
;
...
@@ -428,4 +428,4 @@ BODY {
...
@@ -428,4 +428,4 @@ BODY {
}
}
.full
.progress-off
{
.full
.progress-off
{
z-index
:
1
;
z-index
:
1
;
}
}
\ No newline at end of file
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