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:18]
admin
ctd:slides:test [2018/12/25 12:47]
admin 이전 판으로 되돌림 (2018/12/25 12:39)
Line 55: Line 55:
     </​select>​     </​select>​
     <button class="​playpause">​Play Pause</​button>​     <button class="​playpause">​Play Pause</​button>​
-    <​label><​input type="​checkbox"​ id="​voiceEnabledCheckBox"​ name="​voiceEnabledCheckBox"​ checked onclick="​onVoiceCheckBoxChange();">​음성출력</​label>​ +    <​label><​input type="​checkbox"​ id="​voiceEnabledCheckBox"​ name="​voiceEnabledCheckBox"​ checked onclick="​onVoiceCheckBoxChange();">​음성출력&​nbsp;&​nbsp;&​nbsp;​&​nbsp;&​nbsp;&​nbsp;&​nbsp;</​label>
-    <p>&​nbsp;&​nbsp;&​nbsp;&​nbsp;</​p>+
     <button class="​goto">​Goto:</​button>​     <button class="​goto">​Goto:</​button>​
     <input type="​number"​ min="​1"​ max="​99"​ style="​width:​ 3em;" pattern="​\d*"​ id="​chapter"​ />     <input type="​number"​ min="​1"​ max="​99"​ style="​width:​ 3em;" pattern="​\d*"​ id="​chapter"​ />
Line 112: 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)