SHOW:
|
|
- or go back to the newest paste.
| 1 | <!DOCTYPE html> | |
| 2 | <html> | |
| 3 | <head> | |
| 4 | <title>Page Title</title> | |
| 5 | </head> | |
| 6 | <body> | |
| 7 | ||
| 8 | <div onclick="playPause()"> | |
| 9 | <video controls style="width:100%" id="cc1"> | |
| 10 | <source src="" type="video/mp4"> | |
| 11 | ||
| 12 | ||
| 13 | ||
| 14 | ||
| 15 | ||
| 16 | ||
| 17 | http://www.w3schools.com/html/tryit.asp?filename=tryhtml_intro | |
| 18 | </video> | |
| 19 | </div> | |
| 20 | <h1>Heading</h1> | |
| 21 | <p>https://www.youtube.com/feed/trending</p> | |
| 22 | <input type="text" id="cc2" value="1.5"> | |
| 23 | <button onclick="myFunction()">Click me</button> | |
| 24 | <button onclick="myFunction(1)"><--</button> | |
| 25 | <br> | |
| 26 | <script> | |
| 27 | function myFunction(cc3) {
| |
| 28 | var cc2v = cc3?1:document.getElementById("cc2").value;
| |
| 29 | document.getElementById("cc1").playbackRate = cc2v;
| |
| 30 | } | |
| 31 | function playPause() {
| |
| 32 | var pp2s = document.getElementById("cc1");
| |
| 33 | pp2s.paused ? pp2s.play() : pp2s.pause(); | |
| 34 | } | |
| 35 | top.iframeResult.setAttribute('allowfullscreen', '');
| |
| 36 | </script> | |
| 37 | ||
| 38 | </body> | |
| 39 | </html> |