Created
July 3, 2017 15:55
-
-
Save seven-lh/ddb8b3aa926c34c114ea9b9c7f409224 to your computer and use it in GitHub Desktop.
JS Bin // source http://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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment