Created
May 6, 2016 06:59
-
-
Save viller239/416f39a4491fb6108de4572549e02c1b to your computer and use it in GitHub Desktop.
This file contains 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> | |
<style> | |
body { | |
padding: 20px; | |
background: white; | |
} | |
#sync, #async { | |
float: left; | |
width: 50%; | |
} | |
label { | |
display: block; | |
padding: 5px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id="sync"> | |
<label> | |
[text] <input type="text" value="text value" /> | |
</label> | |
<label> | |
[search] <input type="search" value="search value" /> | |
</label> | |
</div> | |
<div id="async"></div> | |
<script> | |
setTimeout(function () { | |
document.getElementById('async').innerHTML = document.getElementById('sync').innerHTML; | |
}, 2000); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment