aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorhakimel <hakim.elhattab@gmail.com>2013-01-21 13:05:09 -0500
committerhakimel <hakim.elhattab@gmail.com>2013-01-21 13:05:09 -0500
commit63a53e9dd1ef8805acd065c7faa2440673b15f92 (patch)
tree7a574f3cc91c0b1535786b5bfb434e817f9cfec3 /plugin
parentd489ec2f9ddddb9e502c3cccbfe277f84c22963b (diff)
downloadfosdem-2018-presentation-63a53e9dd1ef8805acd065c7faa2440673b15f92.tar
fosdem-2018-presentation-63a53e9dd1ef8805acd065c7faa2440673b15f92.tar.gz
notes window now displays correct slides when origin is different than index.html (closes #278)
Diffstat (limited to 'plugin')
-rw-r--r--plugin/notes/notes.html11
1 files changed, 9 insertions, 2 deletions
diff --git a/plugin/notes/notes.html b/plugin/notes/notes.html
index 64b921c..aecef7c 100644
--- a/plugin/notes/notes.html
+++ b/plugin/notes/notes.html
@@ -89,11 +89,11 @@
<body>
<div id="wrap-current-slide" class="slides">
- <iframe src="../../index.html" width="1280" height="1024" id="current-slide"></iframe>
+ <iframe width="1280" height="1024" id="current-slide"></iframe>
</div>
<div id="wrap-next-slide" class="slides">
- <iframe src="../../index.html" width="640" height="512" id="next-slide"></iframe>
+ <iframe width="640" height="512" id="next-slide"></iframe>
<span>UPCOMING:</span>
</div>
<div id="notes"></div>
@@ -102,6 +102,13 @@
<script>
window.addEventListener( 'load', function() {
+ // ASEEMK: fix for calling talk may not be at index.html.
+ var iframes = document.querySelectorAll( '.slides iframe' );
+ [].slice.call(iframes).forEach(function (iframe) {
+ console.log(window.opener);
+ iframe.src = window.opener ? window.opener.location.href : '/';
+ });
+
(function( window, undefined ) {
var notes = document.getElementById( 'notes' ),
currentSlide = document.getElementById( 'current-slide' ),