-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathiframe.html
39 lines (32 loc) · 1.2 KB
/
iframe.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
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Presenter View</title>
<meta name="viewport" content="width=1024, user-scalable=no">
<!-- presenterview styling -->
<link rel="stylesheet" href="deck.presenterview.css">
<!-- preview styling, added via js on run -->
</head>
<body class="deck-container" style="zoom: 0.5; width: 600px;">
<section class="slide" id="nextSlide">
</section>
</body>
<script type="text/javascript">
// UNBELIEVABLE IMPERFORMANT, NEEDS TO BE REPLACED WITH... IDKY
window.setInterval("update()", 2000);
// retrieve links to the stylesheets
var stylesheets = JSON.parse(localStorage.getItem('stylesheets'));
for (var i = 0; i <= stylesheets.length - 1; i++) {
var linkElement = document.createElement('link');
linkElement.setAttribute('rel', 'stylesheet');
linkElement.setAttribute('href', stylesheets[i]);
document.head.appendChild(linkElement);
}
var nextSlideDisplay = document.getElementById('nextSlide');
function update() {
nextSlideDisplay.innerHTML = localStorage.getItem('next_slide');
}
update();
</script>
</html>