Skip to content

Instantly share code, notes, and snippets.

@seven-lh
Created July 3, 2017 15:55
Show Gist options
  • Select an option

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

Select an option

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