Created
June 28, 2017 15:15
-
-
Save seven-lh/65af132a4b3a02e0c8e57c768e4a2817 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/zanabos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <div id="content"> | |
| </div> | |
| <style id="style"></style> | |
| <script id="jsbin-javascript"> | |
| var code =` | |
| body { | |
| background: red; | |
| color: #fff; | |
| } | |
| ` | |
| var n =0 | |
| setInterval(function(){ | |
| content.innerHTML = code.substring(0,n) | |
| style.innerHTML = code.substring(0,n) | |
| n = n +1 | |
| },100) | |
| </script> | |
| <script id="jsbin-source-javascript" type="text/javascript">var code =` | |
| body { | |
| background: red; | |
| color: #fff; | |
| } | |
| ` | |
| var n =0 | |
| setInterval(function(){ | |
| content.innerHTML = code.substring(0,n) | |
| style.innerHTML = code.substring(0,n) | |
| n = n +1 | |
| },100)</script></body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var code =` | |
| body { | |
| background: red; | |
| color: #fff; | |
| } | |
| ` | |
| var n =0 | |
| setInterval(function(){ | |
| content.innerHTML = code.substring(0,n) | |
| style.innerHTML = code.substring(0,n) | |
| n = n +1 | |
| },100) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
type coding demo