notes.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Slide Notes</title>
  6. <meta name="description" content="">
  7. <meta name="author" content="Rebecca Murphey">
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
  10. <style>
  11. #notes {
  12. font-family: Helvetica;
  13. font-size: 24px;
  14. width: 640px;
  15. }
  16. #wrap-slides {
  17. width: 640px;
  18. height: 512px;
  19. float: left;
  20. }
  21. #slides {
  22. width: 1280px;
  23. height: 1024px;
  24. border: 1px solid black;
  25. -moz-transform: scale(0.5);
  26. -moz-transform-origin: 0 0;
  27. -o-transform: scale(0.5);
  28. -o-transform-origin: 0 0;
  29. -webkit-transform: scale(0.5);
  30. -webkit-transform-origin: 0 0;
  31. }
  32. #wrap-next-slide {
  33. width: 320px;
  34. height: 256px;
  35. float: left;
  36. margin: 0 0 0 50px;
  37. }
  38. #next-slide {
  39. width: 1280px;
  40. height: 1024px;
  41. border: 1px solid black;
  42. -moz-transform: scale(0.25);
  43. -moz-transform-origin: 0 0;
  44. -o-transform: scale(0.25);
  45. -o-transform-origin: 0 0;
  46. -webkit-transform: scale(0.25);
  47. -webkit-transform-origin: 0 0;
  48. }
  49. </style>
  50. </head>
  51. <body>
  52. <div id="wrap-slides">
  53. <iframe src="/?receiver" width="1280" height="1024" id="slides"></iframe>
  54. </div>
  55. <div id="wrap-next-slide">
  56. <iframe src="/?receiver" width="640" height="512" id="next-slide"></iframe>
  57. </div>
  58. <div id="notes"></div>
  59. <script src="socket.io/socket.io.js"></script>
  60. <script>
  61. var socket = io.connect('http://localhost:1947');
  62. var notes = document.getElementById('notes');
  63. var slides = document.getElementById('slides');
  64. var nextSlide = document.getElementById('next-slide');
  65. socket.on('slidedata', function(data) {
  66. notes.innerHTML = data.notes;
  67. slides.contentWindow.Reveal.navigateTo(data.indexh, data.indexv);
  68. nextSlide.contentWindow.Reveal.navigateTo(data.nextindexh, data.nextindexv);
  69. });
  70. </script>
  71. </body>
  72. </html>