forked from cccbook/web
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy patheditable.html
More file actions
32 lines (26 loc) · 769 Bytes
/
editable.html
File metadata and controls
32 lines (26 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div id="example-one" contenteditable="true">
<style scoped>
#example-one { margin-bottom: 10px; }
[contenteditable="true"] { padding: 10px; outline: 2px dashed #CCC; }
[contenteditable="true"]:hover { outline: 2px dashed #0090D2; }
</style>
<p>
Everything contained within this div is editable in browsers that support <code>HTML5</code>. Go on, give it a try: click it and start typing.
</p>
</div>
<pre contenteditable="true">
var R = require("../source/R");
var x = rnorm(25, 5, 2);
C.log("x=%s\nmean(x)=%d sd(x)=%d", str(x), mean(x), sd(x,1));
var t = ttest(5.2, x, 2);
C.log("t=%j", t);
C.log("qnorm(0.5, 5, 2)="+qnorm(0.5, 5, 2));
C.log("qunif(0.5, 3, 5)="+qunif(0.5, 3, 5));
</pre>
</body>
</html>