2012-06-08 05:21:14 +02:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
2012-07-02 00:34:07 +02:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2012-06-08 05:21:14 +02:00
|
|
|
|
2013-05-19 23:01:52 +02:00
|
|
|
<meta name="viewport" content="width=1150">
|
|
|
|
|
2012-07-04 20:18:09 +02:00
|
|
|
<title>reveal.js - Slide Notes</title>
|
2012-06-08 05:21:14 +02:00
|
|
|
|
2012-07-02 00:34:07 +02:00
|
|
|
<style>
|
2012-07-04 21:09:58 +02:00
|
|
|
body {
|
2012-07-02 00:34:07 +02:00
|
|
|
font-family: Helvetica;
|
2012-07-04 21:09:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
#notes {
|
2012-07-02 00:34:07 +02:00
|
|
|
font-size: 24px;
|
|
|
|
width: 640px;
|
2012-07-04 21:09:58 +02:00
|
|
|
margin-top: 5px;
|
2013-05-19 22:42:36 +02:00
|
|
|
clear: left;
|
2012-07-02 00:34:07 +02:00
|
|
|
}
|
2012-06-08 05:21:14 +02:00
|
|
|
|
2012-07-04 21:09:58 +02:00
|
|
|
#wrap-current-slide {
|
2012-07-02 00:34:07 +02:00
|
|
|
width: 640px;
|
|
|
|
height: 512px;
|
|
|
|
float: left;
|
2012-07-04 21:09:58 +02:00
|
|
|
overflow: hidden;
|
2012-07-02 00:34:07 +02:00
|
|
|
}
|
2012-06-08 05:21:14 +02:00
|
|
|
|
2012-07-04 21:09:58 +02:00
|
|
|
#current-slide {
|
2012-07-02 00:34:07 +02:00
|
|
|
width: 1280px;
|
|
|
|
height: 1024px;
|
2012-07-04 21:09:58 +02:00
|
|
|
border: none;
|
2013-05-19 22:42:36 +02:00
|
|
|
|
2012-07-02 00:34:07 +02:00
|
|
|
-webkit-transform-origin: 0 0;
|
2012-09-28 06:23:34 +02:00
|
|
|
-moz-transform-origin: 0 0;
|
|
|
|
-ms-transform-origin: 0 0;
|
|
|
|
-o-transform-origin: 0 0;
|
|
|
|
transform-origin: 0 0;
|
2013-05-19 22:42:36 +02:00
|
|
|
|
2012-09-28 06:23:34 +02:00
|
|
|
-webkit-transform: scale(0.5);
|
|
|
|
-moz-transform: scale(0.5);
|
|
|
|
-ms-transform: scale(0.5);
|
|
|
|
-o-transform: scale(0.5);
|
|
|
|
transform: scale(0.5);
|
2012-07-02 00:34:07 +02:00
|
|
|
}
|
2012-06-08 05:21:14 +02:00
|
|
|
|
2012-07-02 00:34:07 +02:00
|
|
|
#wrap-next-slide {
|
2012-09-28 06:23:34 +02:00
|
|
|
width: 448px;
|
|
|
|
height: 358px;
|
2012-07-02 00:34:07 +02:00
|
|
|
float: left;
|
2012-07-04 21:09:58 +02:00
|
|
|
margin: 0 0 0 10px;
|
|
|
|
overflow: hidden;
|
2012-07-02 00:34:07 +02:00
|
|
|
}
|
2012-06-08 05:21:14 +02:00
|
|
|
|
2012-07-02 00:34:07 +02:00
|
|
|
#next-slide {
|
|
|
|
width: 1280px;
|
|
|
|
height: 1024px;
|
2012-07-04 21:09:58 +02:00
|
|
|
border: none;
|
2013-05-19 22:42:36 +02:00
|
|
|
|
2012-07-02 00:34:07 +02:00
|
|
|
-webkit-transform-origin: 0 0;
|
2012-09-28 06:23:34 +02:00
|
|
|
-moz-transform-origin: 0 0;
|
|
|
|
-ms-transform-origin: 0 0;
|
|
|
|
-o-transform-origin: 0 0;
|
|
|
|
transform-origin: 0 0;
|
|
|
|
|
|
|
|
-webkit-transform: scale(0.35);
|
|
|
|
-moz-transform: scale(0.35);
|
|
|
|
-ms-transform: scale(0.35);
|
|
|
|
-o-transform: scale(0.35);
|
|
|
|
transform: scale(0.35);
|
2012-07-02 00:34:07 +02:00
|
|
|
}
|
2012-07-04 21:09:58 +02:00
|
|
|
|
|
|
|
.slides {
|
|
|
|
position: relative;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
border: 1px solid black;
|
|
|
|
border-radius: 2px;
|
|
|
|
background: rgb(28, 30, 32);
|
|
|
|
}
|
|
|
|
|
|
|
|
.slides span {
|
|
|
|
position: absolute;
|
|
|
|
top: 3px;
|
|
|
|
left: 3px;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 14px;
|
|
|
|
color: rgba( 255, 255, 255, 0.9 );
|
|
|
|
}
|
2012-07-02 00:34:07 +02:00
|
|
|
</style>
|
|
|
|
</head>
|
2012-06-08 05:21:14 +02:00
|
|
|
|
2012-07-02 00:34:07 +02:00
|
|
|
<body>
|
2012-06-08 05:21:14 +02:00
|
|
|
|
2012-07-04 21:09:58 +02:00
|
|
|
<div id="wrap-current-slide" class="slides">
|
|
|
|
<iframe src="/?receiver" width="1280" height="1024" id="current-slide"></iframe>
|
2012-07-02 00:34:07 +02:00
|
|
|
</div>
|
2012-06-08 05:21:14 +02:00
|
|
|
|
2012-07-04 21:09:58 +02:00
|
|
|
<div id="wrap-next-slide" class="slides">
|
2012-07-02 00:34:07 +02:00
|
|
|
<iframe src="/?receiver" width="640" height="512" id="next-slide"></iframe>
|
2012-07-04 21:10:10 +02:00
|
|
|
<span>UPCOMING:</span>
|
2012-07-02 00:34:07 +02:00
|
|
|
</div>
|
|
|
|
<div id="notes"></div>
|
2012-06-08 05:21:14 +02:00
|
|
|
|
2012-07-02 00:34:07 +02:00
|
|
|
<script src="/socket.io/socket.io.js"></script>
|
2013-05-01 22:10:31 +02:00
|
|
|
<script src="/plugin/markdown/marked.js"></script>
|
2012-06-08 05:21:14 +02:00
|
|
|
|
2012-07-02 00:34:07 +02:00
|
|
|
<script>
|
|
|
|
var socketId = '{{socketId}}';
|
|
|
|
var socket = io.connect(window.location.origin);
|
|
|
|
var notes = document.getElementById('notes');
|
2012-07-04 21:09:58 +02:00
|
|
|
var currentSlide = document.getElementById('current-slide');
|
2012-07-02 00:34:07 +02:00
|
|
|
var nextSlide = document.getElementById('next-slide');
|
2012-06-08 05:21:14 +02:00
|
|
|
|
2012-07-02 00:34:07 +02:00
|
|
|
socket.on('slidedata', function(data) {
|
|
|
|
// ignore data from sockets that aren't ours
|
|
|
|
if (data.socketId !== socketId) { return; }
|
2012-06-18 00:45:00 +02:00
|
|
|
|
2012-10-18 23:55:06 +02:00
|
|
|
if (data.markdown) {
|
2013-05-01 22:10:31 +02:00
|
|
|
notes.innerHTML = marked(data.notes);
|
2012-10-18 23:55:06 +02:00
|
|
|
}
|
|
|
|
else {
|
|
|
|
notes.innerHTML = data.notes;
|
|
|
|
}
|
2012-09-09 04:05:19 +02:00
|
|
|
|
2012-10-15 03:02:32 +02:00
|
|
|
currentSlide.contentWindow.Reveal.slide(data.indexh, data.indexv);
|
|
|
|
nextSlide.contentWindow.Reveal.slide(data.nextindexh, data.nextindexv);
|
2012-07-02 00:34:07 +02:00
|
|
|
});
|
2012-10-19 00:07:26 +02:00
|
|
|
socket.on('fragmentdata', function(data) {
|
|
|
|
// ignore data from sockets that aren't ours
|
|
|
|
if (data.socketId !== socketId) { return; }
|
|
|
|
|
2012-10-19 00:12:53 +02:00
|
|
|
if (data.fragment === 'next') {
|
2012-10-19 00:07:26 +02:00
|
|
|
currentSlide.contentWindow.Reveal.nextFragment();
|
|
|
|
}
|
2012-10-19 00:12:53 +02:00
|
|
|
else if (data.fragment === 'previous') {
|
2012-10-19 00:35:23 +02:00
|
|
|
currentSlide.contentWindow.Reveal.prevFragment();
|
2012-10-19 00:07:26 +02:00
|
|
|
}
|
|
|
|
});
|
2012-07-02 00:34:07 +02:00
|
|
|
</script>
|
2012-06-08 05:21:14 +02:00
|
|
|
|
2012-07-02 00:34:07 +02:00
|
|
|
</body>
|
2012-06-08 05:21:14 +02:00
|
|
|
</html>
|