Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
2
2015-12-uni-ffm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CmS
2015-12-uni-ffm
Commits
eccffbe8
Commit
eccffbe8
authored
12 years ago
by
Hakim El Hattab
Browse files
Options
Downloads
Patches
Plain Diff
adjust end key nav to last slide
parent
507cab9d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/reveal.js
+2
-2
2 additions, 2 deletions
js/reveal.js
js/reveal.min.js
+4
-4
4 additions, 4 deletions
js/reveal.min.js
with
6 additions
and
6 deletions
js/reveal.js
+
2
−
2
View file @
eccffbe8
...
...
@@ -200,9 +200,9 @@ var Reveal = (function(){
// j, down
case
74
:
case
40
:
navigateDown
();
triggered
=
true
;
break
;
// home
case
36
:
navigateTo
(
0
);
triggered
=
true
;
break
;
case
36
:
navigateTo
(
0
);
triggered
=
true
;
break
;
// end
case
35
:
navigateTo
(
document
.
querySelectorAll
(
HORIZONTAL_SLIDES_SELECTOR
).
length
);
triggered
=
true
;
break
;
case
35
:
navigateTo
(
Number
.
MAX_VALUE
);
triggered
=
true
;
break
;
}
if
(
triggered
)
{
...
...
This diff is collapsed.
Click to expand it.
js/reveal.min.js
+
4
−
4
View file @
eccffbe8
...
...
@@ -13,13 +13,13 @@ document.addEventListener("keydown",M,false);document.addEventListener("touchsta
d
.
controlsRight
.
addEventListener
(
"
click
"
,
n
(
i
),
false
);
d
.
controlsUp
.
addEventListener
(
"
click
"
,
n
(
r
),
false
);
d
.
controlsDown
.
addEventListener
(
"
click
"
,
n
(
A
),
false
);
q
(
G
,
P
);
if
(
H
===
false
){
G
.
transition
=
"
linear
"
;}
if
(
G
.
controls
){
d
.
controls
.
style
.
display
=
"
block
"
;}
if
(
G
.
progress
){
d
.
progress
.
style
.
display
=
"
block
"
;}
if
(
G
.
transition
!==
"
default
"
){
d
.
wrapper
.
classList
.
add
(
G
.
transition
);
}
if
(
G
.
theme
!==
"
default
"
){
d
.
wrapper
.
classList
.
add
(
G
.
theme
);}
if
(
G
.
mouseWheel
){
document
.
addEventListener
(
"
DOMMouseScroll
"
,
m
,
false
);
document
.
addEventListener
(
"
mousewheel
"
,
m
,
false
);
}
if
(
G
.
rollingLinks
){
D
();}
C
();
if
(
navigator
.
userAgent
.
match
(
/
(
iphone|
ipad|
ipod|android
)
/i
)){
document
.
documentElement
.
style
.
overflow
=
"
scroll
"
;
document
.
body
.
style
.
height
=
"
120%
"
;
}
if
(
G
.
rollingLinks
){
D
();}
C
();
if
(
navigator
.
userAgent
.
match
(
/
(
iphone|ipod|android
)
/i
)){
document
.
documentElement
.
style
.
overflow
=
"
scroll
"
;
document
.
body
.
style
.
height
=
"
120%
"
;
window
.
addEventListener
(
"
load
"
,
K
,
false
);
window
.
addEventListener
(
"
orientationchange
"
,
K
,
false
);}}
function
q
(
Q
,
P
){
for
(
var
R
in
P
){
Q
[
R
]
=
P
[
R
];}}
function
n
(
P
){
return
function
(
Q
){
Q
.
preventDefault
();
P
.
call
();};}
function
K
(){
setTimeout
(
function
(){
window
.
scrollTo
(
0
,
1
);},
0
);}
function
M
(
Q
){
if
(
Q
.
target
.
contentEditable
!=
"
inherit
"
||
Q
.
shiftKey
||
Q
.
altKey
||
Q
.
ctrlKey
||
Q
.
metaKey
){
return
;
}
var
P
=
false
;
switch
(
Q
.
keyCode
){
case
80
:
case
33
:
I
();
P
=
true
;
break
;
case
78
:
case
32
:
case
34
:
u
();
P
=
true
;
break
;
case
72
:
case
37
:
x
();
P
=
true
;
break
;
case
76
:
case
39
:
i
();
P
=
true
;
break
;
case
75
:
case
38
:
r
();
P
=
true
;
break
;
case
74
:
case
40
:
A
();
P
=
true
;
break
;
}
if
(
P
){
Q
.
preventDefault
();}
else
{
if
(
Q
.
keyCode
===
27
&&
H
){
if
(
J
()){
L
();}
else
{
B
();
}
Q
.
preventDefault
();}}}
function
w
(
S
){
if
(
S
.
touches
.
length
===
1
){
if
(
S
.
target
.
tagName
.
toLowerCase
()
===
"
a
"
||
S
.
target
.
tagName
.
toLowerCase
()
===
"
img
"
){
return
;
}
S
.
preventDefault
();
var
Q
=
{
x
:
S
.
touches
[
0
].
clientX
,
y
:
S
.
touches
[
0
].
clientY
};
var
P
=
window
.
innerWidth
*
0.3
;
var
R
=
window
.
innerHeight
*
0.3
;
if
(
Q
.
x
<
P
){
x
();}
else
{
if
(
Q
.
x
>
window
.
innerWidth
-
P
){
i
();
P
=
true
;
break
;
case
75
:
case
38
:
r
();
P
=
true
;
break
;
case
74
:
case
40
:
A
();
P
=
true
;
break
;
case
36
:
E
(
0
);
P
=
true
;
break
;
case
35
:
E
(
Number
.
MAX_VALUE
);
P
=
true
;
break
;}
if
(
P
){
Q
.
preventDefault
();
}
else
{
if
(
Q
.
keyCode
===
27
&&
H
){
if
(
J
()){
L
();}
else
{
B
();
}
Q
.
preventDefault
();}}}
function
w
(
S
){
if
(
S
.
touches
.
length
===
1
){
if
(
S
.
target
.
tagName
.
toLowerCase
()
===
"
a
"
||
S
.
target
.
tagName
.
toLowerCase
()
===
"
img
"
){
return
;
}
S
.
preventDefault
();
var
Q
=
{
x
:
S
.
touches
[
0
].
clientX
,
y
:
S
.
touches
[
0
].
clientY
};
var
P
=
window
.
innerWidth
*
0.3
;
var
R
=
window
.
innerHeight
*
0.3
;
if
(
Q
.
x
<
P
){
x
();}
else
{
if
(
Q
.
x
>
window
.
innerWidth
-
P
){
i
();
}
else
{
if
(
Q
.
y
<
R
){
r
();}
else
{
if
(
Q
.
y
>
window
.
innerHeight
-
R
){
A
();}}}}
b
();}}
function
m
(
P
){
clearTimeout
(
v
);
v
=
setTimeout
(
function
(){
var
Q
=
P
.
detail
||-
P
.
wheelDelta
;
if
(
Q
>
0
){
u
();}
else
{
I
();}},
100
);}
function
t
(
P
){
C
();}
function
D
(){
if
(
H
){
var
Q
=
document
.
querySelectorAll
(
"
#reveal .slides section a:not(.image)
"
);
for
(
var
R
=
0
,
P
=
Q
.
length
;
R
<
P
;
R
++
){
var
S
=
Q
[
R
];
if
(
S
.
textContent
&&!
S
.
querySelector
(
"
img
"
)
&&
(
!
S
.
className
||!
S
.
classList
.
contains
(
S
,
"
roll
"
))){
S
.
classList
.
add
(
"
roll
"
);
S
.
innerHTML
=
'
<span data-title="
'
+
S
.
text
+
'
">
'
+
S
.
innerHTML
+
"
</span>
"
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment