Connecting The Dots

아빠의 우주연구

User Tools

Site Tools


ctd:slides:test

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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>​
ctd/slides/test.txt · Last modified: 2019/06/15 23:00 (external edit)