forked from rajgoel/reveal.js-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfullscreen-demo.html
134 lines (117 loc) · 4.87 KB
/
fullscreen-demo.html
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Fullscreen slides with Reveal.js</title>
<meta name="description" content="A plugin for reveal.js">
<meta name="author" content="Asvin Goel">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="../reveal.js/dist/reveal.css">
<link rel="stylesheet" href="../reveal.js/dist/theme/black.css" id="theme">
<link rel="stylesheet" href="../reveal.js/plugin/highlight/zenburn.css">
<script src="../reveal.js/dist/reveal.js"></script>
<script src="../reveal.js/plugin/markdown/markdown.js"></script>
<script src="../reveal.js/plugin/highlight/highlight.js"></script>
<script src="../reveal.js-plugins/menu/menu.js"></script>
<script src="../reveal.js-plugins/fullscreen/plugin.js"></script>
<!-- Font awesome -->
<link rel="stylesheet" href="../reveal.js-plugins/menu/font-awesome/css/fontawesome.css">
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides" >
<section>
<h1>Fullscreen slides with Reveal.js</h1>
<p>
<small>Created by <a href="http://www.telematique.eu" >Asvin Goel</a></small>
</p>
</section>
<section>
<section>
<p>Reveal.js is great in showing slides in the same way on different screens with different sizes and aspect ratios.</p>
</section>
<section>
<p>However, by default not all of the screen can be used for presentation.</p>
</section>
<section>
<p>Sometimes you want to use all of the screen and this plugin allows you to.</p>
</section>
<section>
<p>Just include the <code>data-fullscreen</code> attribute to the section tag and the slide will use the entire screen.</p>
</section>
</section>
<section>
<section>
<p>How about showing your next holiday location?</p>
</section>
<section data-fullscreen>
<iframe class="stretch" data-src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d61206.89156051744!2d-151.77366863890407!3d-16.50433878928727!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2sde!4v1467468929561"></iframe>
</section>
</section>
<section>
<section>
<p>Or presenting some Google Spreadsheet?</p>
</section>
<section data-fullscreen>
<iframe class="stretch" data-src="https://docs.google.com/spreadsheets/d/1HH4c7Wdcd6RBIbaw7WsTI4iYjgJAhCAul2td93I-coA/edit?usp=sharing"></iframe>
</section>
</section>
<!--
<section>
<section>
<p>Or creating a BPMN model?</p>
</section>
<section data-fullscreen>
<iframe class="stretch" data-src="http://demo.bpmn.io/s/start"></iframe>
</section>
</section>
-->
<section>
<section>
<p>Note that the fullscreen slides may look different on different screens.</p>
</section>
<section>
<p>It is advisable to only use the fullscreen mode for responsive content.</p>
</section>
</section>
<section>
<h2>The end</h2>
<p>Check out other plugins by clicking on <a href="#" onclick="RevealMenu.toggle(); return false;"><i class="fa fa-bars"></i></a> and then on "Plugins <i class="fa fa-external-link-alt"></i>".</p>
<p>Have a look at the source code & documentation on <a href="https://github.com/rajgoel/reveal.js-plugins">Github</a>.</p>
</section>
</div>
<div style="position: fixed; right: 60px; bottom: 30px; z-index: 30; font-size: 24px; "><a href="#" onclick="Reveal.prev(); return false;"><i class="fa fa-caret-left"></i></a></div>
<div style="position: fixed; right: 30px; bottom: 30px; z-index: 30; font-size: 24px; "><a href="#" onclick="Reveal.next(); return false;"><i class="fa fa-caret-right"></i></a></div>
</div>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: false,
progress: true,
history: true,
center: true,
width: 1200,
height: 800,
mouseWheel: true,
previewLinks: false,
menu: { // Menu works best with font-awesome installed: sudo apt-get install fonts-font-awesome
themes: false,
transitions: false,
markers: true,
hideMissingTitles: true,
keyboard: true,
custom: [
{ title: 'Plugins', icon: '<i class="fa fa-external-link-alt"></i>', src: 'toc.html' },
{ title: 'About', icon: '<i class="fa fa-info"></i>', src: 'about.html' }
]
},
plugins: [ RevealMarkdown, RevealMenu, RevealHighlight, RevealFullscreen ],
});
</script>
<a href="https://github.com/rajgoel/reveal.js-plugins"><img style="position: absolute; top: 0; left: 0; border: 0;" src="forkme.png"></a>
</body>
</html>