This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
ctd:slides:test [2018/12/25 12:26] admin |
ctd:slides:test [2018/12/25 12:47] admin 이전 판으로 되돌림 (2018/12/25 12:39) |
||
---|---|---|---|
Line 111: | Line 111: | ||
} | } | ||
} | } | ||
+ | | ||
+ | /** | ||
+ | * Example of sending messages into the presentation frame. | ||
+ | * https://github.com/hakimel/reveal.js#api | ||
+ | */ | ||
+ | document.querySelector( '.goto' ).addEventListener( 'click', function( event ) { | ||
+ | event.preventDefault(); | ||
+ | // Find our presentation iframe | ||
+ | var frame = document.querySelector( 'iframe' ); | ||
+ | // Post a message into the frame | ||
+ | frame.contentWindow.postMessage( JSON.stringify( | ||
+ | { | ||
+ | method: 'slide', | ||
+ | args: [ document.getElementById("chapter").value - 1, | ||
+ | document.getElementById("page").value - 1 ] | ||
+ | }), '*' ); | ||
+ | } ); | ||
| | ||
</script> | </script> |