Created
May 8, 2013 20:16
-
-
Save GeertVL-zz/5543315 to your computer and use it in GitHub Desktop.
Research for scriptor.io
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 lang="en"> | |
<head> | |
<style> | |
.blocks { | |
display: inline; | |
} | |
p { | |
padding: 0; | |
margin: 0; | |
} | |
</style> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
</head> | |
<body> | |
<section id="editor" contenteditable="true"> | |
<p id="firstline">Dit is de eerste lijn.</p> | |
<p>Dit is de tweede lijn.</p> | |
</section> | |
<div id="status"> | |
status: | |
</div> | |
<script> | |
// var first = document.getElementById("editor"); | |
// var status = document.getElementById("status"); | |
// first.addEventListener("input", function () { | |
// alert("input"); | |
// }, false); | |
// first.addEventListener("keyup", function (e) { | |
// status.innerHTML += "keyup"; | |
// }, false); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment