Skip to content

Instantly share code, notes, and snippets.

@seven-lh
Created June 28, 2017 15:15
Show Gist options
  • Select an option

  • Save seven-lh/65af132a4b3a02e0c8e57c768e4a2817 to your computer and use it in GitHub Desktop.

Select an option

Save seven-lh/65af132a4b3a02e0c8e57c768e4a2817 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/zanabos
<!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>
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)
@seven-lh
Copy link
Copy Markdown
Author

type coding demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment