forked from ImTheKai/reveal.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
136 lines (124 loc) · 4.42 KB
/
index.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
135
136
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>reveal.js</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/white.css">
<link rel="stylesheet" href="css/reveal-override.css"/>
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- For JavaScript-generated QR codes -->
<link rel="stylesheet" href="css/qrcode.css" />
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section
data-markdown="markdown/slides.md"
data-separator="^\n---"
data-separator-vertical="^\n--"
data-notes="^Note:"
data-charset="utf-8">
</section>
<section
data-markdown="markdown/slides-upstream.md"
data-separator="^\n---"
data-separator-vertical="^\n--"
data-notes="^Note:"
data-charset="utf-8"
data-background-image="images/upstream-login-trans.png">
</section>
<section data-menu-title="Live Demo">
Live Demo
<a href="http://demo.openattic.org" target="_blank"><img src="images/openattic-login.png" /></a>
</section>
<section id="qrcode" data-menu-title="QR code">
<div class="qrcode" id="qrcode-talk"></div>
<p><a href="http://bit.ly/2CPaF8h" target="_blank"
id="talk">http://bit.ly/2CPaF8h</a></p>
</section>
<section data-transition="zoom">
<h1>The End</h1>
<h2>Questions?</h2>
</section>
</div>
</div>
<script src="qrcodejs/qrcode.js"></script>
<script>
/* Grab all links and iterate over them */
var sources = document.getElementsByTagName('a');
n = sources.length;
for (var i = 0; i < n; i++) {
var source = sources[i];
var href = source.href;
/* If the link has no href attribute, skip it */
if (href) {
var target_id = "qrcode-" + source.id ;
var target = document.getElementById(target_id);
/* If the source has no corresponding target element, skip
* it */
if (target) {
var qr = new QRCode(target, {
width : 400,
height : 400,
colorDark : "#000000",
colorLight : "rgba(255,255,255,0)",
});
qr.makeCode(href);
}
}
}
</script>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// More info about config & dependencies:
// - https://github.com/hakimel/reveal.js#configuration
// - https://github.com/hakimel/reveal.js#dependencies
Reveal.initialize({
dependencies: [
{ src: 'plugin/markdown/marked.js' },
{ src: 'plugin/markdown/markdown.js' },
{ src: 'plugin/notes/notes.js', async: true },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
]
});
</script>
<style type="text/css">
#footer-left {
position: absolute;
bottom: 0%;
left: 1%;
}
</style>
<!-- 2. Create hidden header/footer <div> -->
<div id="hidden" style="display:none;">
<div id="header">
<div id="footer-left"><img alt="suse logo black" width="5%" src="images/suse-black.png"></div>
</div>
</div>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script type="text/javascript">
// 3. On Reveal.js ready event, copy header/footer <div> into each `.slide-background` <div>
var header = $('#header').html();
if ( window.location.search.match( /print-pdf/gi ) ) {
Reveal.addEventListener( 'ready', function( event ) {
$('.slide-background').append(header);
});
}
else {
$('div.reveal').append(header);
}
</script>
</body>
</html>