-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathattempt2.html
87 lines (86 loc) · 1.96 KB
/
attempt2.html
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<!DOCTYPE html>
<html>
<head>
<title>Words go here 2</title>
<meta charset="UTF-8">
<meta name="description" content="in which you type and things appear maybe"/>
<style>
html, body {
height: 100%;
}
body {
margin: 0;
background: #333;
}
editor {
display: block;
background: #222;
color: white;
font-family: monospace;
counter-reset: linenumberthing;
font-size: 0;
position: relative;
margin-left: 20px;
min-height: 100%;
}
line {
width: 100%;
display: block;
font-size: 15px;
height: 15px;
padding-bottom: 5px;
white-space: pre;
}
line:focus {
background: #333;
}
line:before {
counter-increment: linenumberthing;
content: counter(linenumberthing);
font-size: 10px;
padding: 0 5px;
display: inline-block;
box-sizing: border-box;
position: absolute;
right: 100%;
}
.input {
position: fixed;
top: 100%;
}
cursor {
background: rgba(255,255,255,0.8);
display: block;
position: absolute;
height: 15px;
width: 1px;
animation: cursorlikeness .6s infinite alternate cubic-bezier(1,0,0,1);
}
cursor.moving {
animation: none;
}
canvas.selection {
position: absolute;
top: 0;
left: 0;
image-rendering: -moz-crisp-edges;
image-rendering: -webkit-crisp-edges;
image-rendering: pixelated;
image-rendering: crisp-edges;
}
@keyframes cursorlikeness {
from {opacity:0;}
to {opacity:1;}
}
.getTextLength {
white-space: pre;
}
</style>
</head>
<body>
<editor></editor>
<script src="../sheep.js"></script>
<script src='a2.js'></script>
</body>
<!-- MADE BY SEAN -->
</html>