forked from rajgoel/reveal.js-demos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathembed-tweet-demo.html
97 lines (81 loc) · 3.74 KB
/
embed-tweet-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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Tweets in 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/embed-tweet/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>Tweets in Reveal.js</h1>
<p>
<small>Created by <a href="http://www.telematique.eu" >Asvin Goel</a></small>
</p>
</section>
<section>
<h2>Embedding a tweet</h2>
<p>
To embed a tweet, simply determine its URL and include the following code in your slides:
</p>
<pre><code data-trim>
<div class="tweet" data-src="TWEET_URL"></div>
</code></pre>
</section>
<section>
<div class="tweet" data-src="https://twitter.com/revealjs/status/1266315664769376259"></div>
</section>
<section>
<div class="tweet" data-src="https://twitter.com/sitepointdotcom/status/459439719756337153"></div>
</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>
<a aria-label="Download rajgoel/reveal.js-plugins on GitHub" data-style="mega" href="https://github.com/rajgoel/reveal.js-plugins/archive/master.zip" class="github-button">Download</a>
<a aria-label="Star rajgoel/reveal.js-plugins on GitHub" data-count-aria-label="# stargazers on GitHub" data-count-api="/repos/rajgoel/reveal.js-plugins#stargazers_count" data-count-href="/rajgoel/reveal.js-plugins/stargazers" data-style="mega" href="https://github.com/rajgoel/reveal.js-plugins" class="github-button">Star</a>
</section>
</div>
</div>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
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,
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, RevealEmbedTweet ],
});
</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>