54 lines
1.2 KiB
HTML
54 lines
1.2 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
"http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
<html lang="en">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<title>Editor</title>
|
|
<meta name="author" content="Fabian Jakobs">
|
|
|
|
<style type="text/css" media="screen">
|
|
|
|
html {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body {
|
|
overflow: hidden;
|
|
margin: 0;
|
|
padding: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
font-family: Arial, Helvetica, sans-serif, Tahoma, Verdana, sans-serif;
|
|
font-size: 12px;
|
|
background: rgb(14, 98, 165);
|
|
color: white;
|
|
}
|
|
|
|
#editor {
|
|
top: 0px;
|
|
left: 0px;
|
|
height: 100%;
|
|
width: 100%;
|
|
background: white;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="editor">function foo(items) {
|
|
for (var i=0; i<items.length; i++) {
|
|
alert(items[i] + "juhu");
|
|
}
|
|
}</div>
|
|
|
|
<script src="ace-uncompressed.js" type="text/javascript" charset="utf-8"></script>
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
ace.edit("editor");
|
|
}, false);
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|