FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
github-slideshow/_includes/script.html at master · leo-daniel/github-slideshow · GitHub
leo-daniel
/
github-slideshow
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
1
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
github-slideshow
/
_includes
/
script.html
Copy path
More file actions
More file actions
Latest commit
History
History
History
60 lines (51 loc) · 2.91 KB
Breadcrumbs
github-slideshow
/
_includes
/
script.html
Copy path
File metadata and controls
60 lines (51 loc) · 2.91 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<
script
src
="
{{ site.baseurl }}/reveal.js/lib/js/head.min.js
"
>
</
script
>
<
script
src
="
{{ site.baseurl }}/reveal.js/js/reveal.js
"
>
</
script
>
<!-- reveal.js init -->
<
script
>
var
baseUrl
=
"{{ site.baseurl }}"
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal
.
initialize
(
{
{
%
if
site
.
reveal
%
}
{
%
for
attr
in
site
.
reveal
%
}
{
{
attr
[
0
]
}
}
:
{
%
unless
{
attr
[
1
]
}
==
false
or
{
attr
[
1
]
}
==
true
or
{
attr
[
0
]
}
=
=
"width"
or
{
attr
[
0
]
}
=
=
"height"
%
}
'{{attr[1]}}'
,
{
%
else
%
}
{
{
attr
[
1
]
}
}
,
{
%
endunless
%
}
{
%
endfor
%
}
{
%
endif
%
}
theme
:
Reveal
.
getQueryHash
(
)
.
theme
,
// available themes are in /css/theme
transition
:
Reveal
.
getQueryHash
(
)
.
transition
||
{
%
if
site
.
reveal
.
transition
%
}
'{{ site.reveal.transition }}'
,
{
%
else
%
}
'default'
,
{
%
endif
%
}
// default/cube/page/concave/zoom/linear/fade/none
// Optional libraries used to extend on reveal.js
dependencies
:
[
// Cross-browser shim that fully implements classList - https://github.com/eligrey/classList.js/
{
src
:
baseUrl
+
'/reveal.js/lib/js/classList.js'
,
condition
:
function
(
)
{
return
!
document
.
body
.
classList
;
}
}
,
// Zoom in and out with Alt+click
{
src
:
baseUrl
+
'/reveal.js/plugin/zoom-js/zoom.js'
,
async
:
true
}
,
// Speaker notes
{
src
:
baseUrl
+
'/reveal.js/plugin/notes/notes.js'
,
async
:
true
}
,
// Remote control your reveal.js presentation using a touch device
//{ src: baseUrl + '/reveal.js/plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; }
},
// MathJax
{
src
:
baseUrl
+
'/reveal.js/plugin/math/math.js'
,
async
:
true
}
]
}
)
;
{
%
if
site
.
slideNumber
.
format
and
site
.
slideNumber
.
format
!=
"none"
%
}
// Shows the slide number using default formatting
Reveal
.
configure
(
{
slideNumber
:
true
}
)
;
Reveal
.
configure
(
{
slideNumber
:
'{{ site.slideNumber.format }}'
}
)
;
{
%
endif
%
}
</
script
>
<!-- End reveal.js init -->
<!-- Fontawesome -->
<
script
type
="
text/javascript
"
>
$
(
document
)
.
ready
(
function
(
)
{
//$("a[href*='youtube.com/']").prepend( $( "<i class='fa fa-youtube-play'> </i>" ) );
//$("a[href*='vimeo.com/']").prepend( $( "<i class='fa fa-vimeo-square'> </i>" ) );
//$("a[href$='/download']").prepend( $( "<i class='fa fa-cloud-download'> </i>" ) );
//$("a.download").prepend( $( "<i class='fa fa-cloud-download'> </i>" ) );
$
(
"a.external"
)
.
append
(
$
(
"<i class='fa fa-external-link'></i>"
)
)
;
$
(
"a.twitter"
)
.
append
(
$
(
"<i class='fa fa-twitter'></i>"
)
)
;
$
(
"a.github"
)
.
append
(
$
(
"<i class='fa fa-github'></i>"
)
)
;
$
(
"blockquote"
)
.
prepend
(
$
(
"<i class='fa fa-quote-left'></i>"
)
)
;
$
(
"a.button.lighter"
)
.
click
(
function
(
)
{
$
(
"html.dark"
)
.
removeClass
(
"dark"
)
.
addClass
(
"light"
)
;
}
)
;
$
(
"a.button.darker"
)
.
click
(
function
(
)
{
$
(
"html.light"
)
.
removeClass
(
"light"
)
.
addClass
(
"dark"
)
;
}
)
;
}
)
;
</
script
>
<!-- End Fontawesome -->
Back
|
FazBrowse Home
|
New Git URL