-
Notifications
You must be signed in to change notification settings - Fork 0
/
ppt.html
107 lines (84 loc) · 2.69 KB
/
ppt.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>PPT</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/white.css" id="theme">
<style type="text/css" media="screen">
.slides section.has-dark-background,
.slides section.has-dark-background h3 {
color: #fff;
}
.slides section.has-light-background,
.slides section.has-light-background h3 {
color: #222;
}
</style>
<script src="js/socket.io.js"></script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section data-background="#bb00bb">
<h3>Default</h3>
</section>
<section data-background-color="lightblue">
<h3>Default</h3>
</section>
<section data-background="#888" data-transition="zoom">
<h3>data-transition: zoom</h3>
</section>
<section data-background="rgba(0, 0, 0, 0.2)" data-transition="zoom-in fade-out">
<h3>data-transition: zoom-in fade-out</h3>
</section>
<section data-background="rgb(66, 66, 66)">
<h3>Default</h3>
</section>
<section data-background="rgba(0, 100, 100, 0.2)" data-transition="convex">
<h3>data-transition: convex</h3>
</section>
<section data-transition="convex-in concave-out">
<h3>data-transition: convex-in concave-out</h3>
</section>
<section>
<section data-background="#934f4d" data-transition="zoom">
<h3>Default</h3>
</section>
<section data-transition="concave">
<h3>data-transition: concave</h3>
</section>
<section data-transition="convex-in fade-out">
<h3>data-transition: convex-in fade-out</h3>
</section>
<section>
<h3>Default</h3>
</section>
</section>
<section data-transition="none">
<h3>data-transition: none</h3>
</section>
<section data-background="#417203">
<h3>Default</h3>
</section>
</div>
</div>
<script src="js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
Reveal.initialize({
center: true,
history: true
});
var socket = io.connect('http://127.0.0.1:3000');
socket.on('broadcast', function (data) {
switch (data){
case 'swipeleft':Reveal.left();break;
case 'swipeup':Reveal.up();break;
case 'swipedown':Reveal.down();break;
case 'swiperight':Reveal.right();break;
}
});
</script>
</body>
</html>