-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
227 lines (210 loc) · 9.87 KB
/
example.html
File metadata and controls
227 lines (210 loc) · 9.87 KB
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Front-end ppt templates</title>
<meta name="description" content="Create beautiful presentations using Markdown">
<meta name="keyword" content="前端, 前端大世界, frontend, javascript, es6, css, html, react, webpack, jquery, 前端开发, http, 个人博客, web">
<meta name="author" content="Cycle263">
<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="shortcut icon" href="cycle.ico">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0/css/reveal.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0/css/theme/black.min.css" id="theme">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0/lib/css/zenburn.min.css">
<script>
// print pdf
var link = document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match(/print-pdf/gi) ? 'https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0/css/print/pdf.css' : 'https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0/css/print/paper.css';
document.getElementsByTagName('head')[0].appendChild(link);
</script>
<!--[if lt IE 9]>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0/lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section id="home">
<h1>Reveal.js-menu</h1>
<h3>A slideout menu for navigating reveal.js presentations</h3>
<p>
<small>Created by Cycle263</small>
</p>
</section>
<section id="introduction">
<h3>Hey There</h3>
<p>Have you ever used
<a href="https://github.com/hakimel/reveal.js">reveal.js</a> and wanted jump
<br/>somewhere else in your presentation?</p>
<p>The slide overview is great but perhaps you want to
<br/>change slides without your audience seeing everything.</p>
<p>Perhaps you need to quickly change the
<br/>theme without editing the slide source.</p>
<p>Give
<a href="https://github.com/denehyg/reveal.js-menu">reveal.js-menu</a> a try</p>
</section>
<section data-markdown>
- Item 1 <!-- .element: class="fragment" data-fragment-index="2" -->
- Item 2 <!-- .element: class="fragment" data-fragment-index="1" -->
</section>
<section id="fragment">
<h3>fragment There</h3>
<p class="fragment grow">grow</p>
<p class="fragment shrink">shrink</p>
<p class="fragment fade-out">fade-out</p>
<!-- <p class="fragment fade-up">fade-up (also down, left and right!)</p>
<p class="fragment fade-in-then-out">fades in, then out when we move to the next step</p>
<p class="fragment fade-in-then-semi-out">fades in, then obfuscate when we move to the next step</p>
<p class="fragment highlight-current-blue">blue only once</p>
<p class="fragment highlight-red">highlight-red</p>
<p class="fragment highlight-green">highlight-green</p>
<p class="fragment highlight-blue">highlight-blue</p> -->
</section>
<section>
<p class="fragment" data-fragment-index="3">Appears last</p>
<p class="fragment" data-fragment-index="1">Appears first</p>
<p class="fragment" data-fragment-index="2">Appears second</p>
</section>
<section data-markdown="README.md" data-separator="---"
data-separator-vertical="--" data-separator-notes="^Note:"
data-charset="utf-8">
</section>
<section data-menu-title="Opening the menu">
<p>See the
<a href="#" onclick="RevealMenu.toggle(); return false;">
<i class="fa fa-bars"></i>
</a> in the corner?</p>
<p>Click it and the menu will open from the side.</p>
<p>
Click anywhere on the slide to return to the presentation,
<br> or use the close button in the menu.
</p>
</section>
<section id="keyboard" data-menu-title="Keyboard">
<p>Or you can open the menu by pressing the
<code>m</code> key.</p>
<p>
You can navigate the menu with the keyboard as well.
<br/>Just use the arrow keys and
<code><space></code> or
<code><enter></code> to change slides.
</p>
<p>You can disable the keyboard for the
<br/>menu in the options if you wish.</p>
</section>
<section id="titles">
<h3>Slide Titles</h3>
<p>
The menu uses the first heading to label each slide
<br/> but you can specify another label if you want.
</p>
<p>
Use a
<code>data-menu-title</code> attribute in the section element to give the slide a custom label, or add a
<code>menu-title</code> class to any element in the slide you wish.
</p>
<p>
You can change the
<code>titleSelector</code> option and use
<br/> any elements you like as the default for labelling each slide.
</p>
</section>
<section>
<section>
<h2>Vertical Slides</h2>
<p>The menu indents your vertical slides so it's easy to see the structure of your presentation.</p>
<br>
<a href="#" class="navigate-down">
<img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Down arrow">
</a>
</section>
<section>
<h2>Next slide down</h2>
</section>
<section>
<h2>At the bottom</h2>
<br>
<a href="#/2">
<img width="178" height="238" data-src="https://s3.amazonaws.com/hakim-static/reveal-js/arrow.png" alt="Up arrow" style="transform: rotate(180deg); -webkit-transform: rotate(180deg);">
</a>
</section>
</section>
<section id="transitions">
<h3>Transitions</h3>
<p>You can also change the default
<br/>transition style from the menu.</p>
</section>
<section id="custom">
<h3>Custom Panels</h3>
<p>
Create your own custom menu panels where
<br/> you can add your own html content.
</p>
<p>
Custom panels support menu items so you
<br/> can create your own menus that look and
<br/> behaviour just like the other menus.
</p>
</section>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0/lib/js/head.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/reveal.js"></script>
<!-- cnd加载,避免highlight回调加载hljs异常问题,猜测原因hightlight第二批并行加载导致 -->
<script src="https://cdn.jsdelivr.net/npm/reveal.js@3.7.0/plugin/highlight/highlight.js"></script>
<script>
// Just press »Esc / o« on your keyboard to toggle the overview mode
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
mouseWheel: true,
slideNumber: 'c/t',
transition: 'slide', // none/fade/slide/convex/concave/zoom
transitionSpeed: 'default', // default/fast/slow
backgroundTransition: 'fade', // none/fade/slide/convex/concave/zoom
menu: {
numbers: true,
openSlideNumber: true,
themes: true,
themesPath: 'https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0/css/theme/',
transitions: true,
custom: false
},
chalkboard: {
toggleChalkboardButton: { left: "80px" },
toggleNotesButton: { left: "130px" }
},
// Optional reveal.js plugins
dependencies: [
{ src: 'https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0/plugin/markdown/marked.js', condition: function () { return !!document.querySelector('[data-markdown]'); } },
{ src: 'https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0/plugin/markdown/markdown.min.js', condition: function () { return !!document.querySelector('[data-markdown]'); } },
{ src: 'plugin/menu/menu.js', async: true },
{ src: 'https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0/plugin/notes/notes.min.js', async: true },
{ src: 'https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0/plugin/zoom-js/zoom.min.js' },
{ src: 'plugin/chalkboard/chalkboard.js', async: true }
],
// Just press »F« on your keyboard to show your presentation in fullscreen mode. Press the »ESC« key to exit fullscreen mode.
keyboard: {
67: function () { RevealChalkboard.toggleNotesCanvas() }, // toggle chalkboard when 'c' is pressed
66: function () { RevealChalkboard.toggleChalkboard() }, // toggle chalkboard when 'b' is pressed
46: function () { RevealChalkboard.clear() }, // clear chalkboard when 'DEL' is pressed
8: function () { RevealChalkboard.reset() }, // reset all chalkboard data when 'BACKSPACE' is pressed
68: function () { RevealChalkboard.download() }, // downlad chalkboard drawing when 'd' is pressed
},
});
hljs.initHighlightingOnLoad();
</script>
<a class="fork-cycle263" href="https://github.com/cycle263/PPTS">
<img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67"
alt="Fork cycle263 on GitHub">
</a>
</body>
</html>