2012-06-08 03:21:14 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html lang="en">
|
2012-07-01 22:34:07 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2012-06-08 03:21:14 +00:00
|
|
|
|
2012-07-04 18:18:09 +00:00
|
|
|
<title>reveal.js - Slide Notes</title>
|
2012-06-08 03:21:14 +00:00
|
|
|
|
2012-07-01 22:34:07 +00:00
|
|
|
<style>
|
2012-07-04 19:09:58 +00:00
|
|
|
body {
|
2012-07-01 22:34:07 +00:00
|
|
|
font-family: Helvetica;
|
2012-07-04 19:09:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#notes {
|
2012-07-01 22:34:07 +00:00
|
|
|
font-size: 24px;
|
|
|
|
width: 640px;
|
2012-07-04 19:09:58 +00:00
|
|
|
margin-top: 5px;
|
2012-07-01 22:34:07 +00:00
|
|
|
}
|
2012-06-08 03:21:14 +00:00
|
|
|
|
2012-07-04 19:09:58 +00:00
|
|
|
#wrap-current-slide {
|
2012-07-01 22:34:07 +00:00
|
|
|
width: 640px;
|
|
|
|
height: 512px;
|
|
|
|
float: left;
|
2012-07-04 19:09:58 +00:00
|
|
|
overflow: hidden;
|
2012-07-01 22:34:07 +00:00
|
|
|
}
|
2012-06-08 03:21:14 +00:00
|
|
|
|
2012-07-04 19:09:58 +00:00
|
|
|
#current-slide {
|
2012-07-01 22:34:07 +00:00
|
|
|
width: 1280px;
|
|
|
|
height: 1024px;
|
2012-07-04 19:09:58 +00:00
|
|
|
border: none;
|
2012-09-28 04:23:34 +00:00
|
|
|
|
2012-07-01 22:34:07 +00:00
|
|
|
-webkit-transform-origin: 0 0;
|
2012-09-28 04:23:34 +00:00
|
|
|
-moz-transform-origin: 0 0;
|
|
|
|
-ms-transform-origin: 0 0;
|
|
|
|
-o-transform-origin: 0 0;
|
|
|
|
transform-origin: 0 0;
|
|
|
|
|
|
|
|
-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-01 22:34:07 +00:00
|
|
|
}
|
2012-06-08 03:21:14 +00:00
|
|
|
|
2012-07-01 22:34:07 +00:00
|
|
|
#wrap-next-slide {
|
2012-09-28 04:23:34 +00:00
|
|
|
width: 448px;
|
|
|
|
height: 358px;
|
2012-07-01 22:34:07 +00:00
|
|
|
float: left;
|
2012-07-04 19:09:58 +00:00
|
|
|
margin: 0 0 0 10px;
|
|
|
|
overflow: hidden;
|
2012-07-01 22:34:07 +00:00
|
|
|
}
|
2012-06-08 03:21:14 +00:00
|
|
|
|
2012-07-01 22:34:07 +00:00
|
|
|
#next-slide {
|
|
|
|
width: 1280px;
|
|
|
|
height: 1024px;
|
2012-07-04 19:09:58 +00:00
|
|
|
border: none;
|
2012-09-28 04:23:34 +00:00
|
|
|
|
2012-07-01 22:34:07 +00:00
|
|
|
-webkit-transform-origin: 0 0;
|
2012-09-28 04:23:34 +00: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-01 22:34:07 +00:00
|
|
|
}
|
2012-07-04 19:09:58 +00: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-01 22:34:07 +00:00
|
|
|
</style>
|
|
|
|
</head>
|
2012-06-08 03:21:14 +00:00
|
|
|
|
2012-07-01 22:34:07 +00:00
|
|
|
<body>
|
2012-06-08 03:21:14 +00:00
|
|
|
|
2012-07-04 19:09:58 +00:00
|
|
|
<div id="wrap-current-slide" class="slides">
|
|
|
|
<iframe src="/?receiver" width="1280" height="1024" id="current-slide"></iframe>
|
2012-07-01 22:34:07 +00:00
|
|
|
</div>
|
2012-06-08 03:21:14 +00:00
|
|
|
|
2012-07-04 19:09:58 +00:00
|
|
|
<div id="wrap-next-slide" class="slides">
|
2012-07-01 22:34:07 +00:00
|
|
|
<iframe src="/?receiver" width="640" height="512" id="next-slide"></iframe>
|
2012-07-04 19:10:10 +00:00
|
|
|
<span>UPCOMING:</span>
|
2012-07-01 22:34:07 +00:00
|
|
|
</div>
|
|
|
|
<div id="notes"></div>
|
2012-06-08 03:21:14 +00:00
|
|
|
|
2012-07-01 22:34:07 +00:00
|
|
|
<script src="/socket.io/socket.io.js"></script>
|
2012-09-09 02:05:19 +00:00
|
|
|
<script src="/lib/js/showdown.js"></script>
|
2012-06-08 03:21:14 +00:00
|
|
|
|
2012-07-01 22:34:07 +00:00
|
|
|
<script>
|
|
|
|
var socketId = '{{socketId}}';
|
|
|
|
var socket = io.connect(window.location.origin);
|
|
|
|
var notes = document.getElementById('notes');
|
2012-07-04 19:09:58 +00:00
|
|
|
var currentSlide = document.getElementById('current-slide');
|
2012-07-01 22:34:07 +00:00
|
|
|
var nextSlide = document.getElementById('next-slide');
|
2012-06-08 03:21:14 +00:00
|
|
|
|
2012-07-01 22:34:07 +00:00
|
|
|
socket.on('slidedata', function(data) {
|
|
|
|
// ignore data from sockets that aren't ours
|
|
|
|
if (data.socketId !== socketId) { return; }
|
2012-06-17 22:45:00 +00:00
|
|
|
|
2012-09-09 02:05:19 +00:00
|
|
|
if (data.markdown) {
|
|
|
|
notes.innerHTML = (new Showdown.converter()).makeHtml(data.notes);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
notes.innerHTML = data.notes;
|
|
|
|
}
|
|
|
|
|
2012-10-15 01:02:32 +00:00
|
|
|
currentSlide.contentWindow.Reveal.slide(data.indexh, data.indexv);
|
|
|
|
nextSlide.contentWindow.Reveal.slide(data.nextindexh, data.nextindexv);
|
2012-07-01 22:34:07 +00:00
|
|
|
});
|
|
|
|
</script>
|
2012-06-08 03:21:14 +00:00
|
|
|
|
2012-07-01 22:34:07 +00:00
|
|
|
</body>
|
2012-06-08 03:21:14 +00:00
|
|
|
</html>
|