Skip to content

Instantly share code, notes, and snippets.

@GeertVL-zz
Created May 8, 2013 20:16
Show Gist options
  • Save GeertVL-zz/5543315 to your computer and use it in GitHub Desktop.
Save GeertVL-zz/5543315 to your computer and use it in GitHub Desktop.
Research for scriptor.io
<!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