-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
94 lines (83 loc) · 1.87 KB
/
index.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
88
89
90
91
92
93
94
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Text Editor</title>
<style>
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
*, *::before, *::after {
box-sizing: none;
}
.container, .backdrop, textarea {
width: 94vw;
height: 94vh;
}
.highlights, textarea {
font: 20px/28px 'Open Sans', sans-serif;
letter-spacing: 1px;
}
.container {
display: block;
transform: translateZ(0);
-webkit-text-size-adjust: none;
}
.backdrop {
position: absolute;
z-index: 1;
border: none;
background-color: #fff;
overflow: auto;
pointer-events: none;
transition: transform 1s;
}
.highlights {
white-space: pre-wrap;
word-wrap: break-word;
color: transparent;
}
textarea {
outline: none;
background-color: #f0f0f0;
display: block;
position: absolute;
z-index: 2;
height: 94vh;
width: 94vw;
margin: 0;
border: none;
border-radius: 0;
color: #444;
background-color: transparent;
overflow: auto;
resize: none;
transition: transform 1s;
}
mark {
border-radius: 3px;
color: transparent;
background-color: #E07E7E;
}
</style>
</head>
<body>
<header class="head">
</header>
<div class="container">
<div class="backdrop">
<div class="highlights"></div>
</div>
<textarea id="textarea"></textarea>
</div>
</body>
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script type="text/javascript" src="data.json"></script>
<script type="text/javascript" src="lib/spelling.js"></script>
<script type="text/javascript" src="mine.js"></script>
<script>
// You can also require other files to run in this process
require('./renderer.js');
$(".head").empty();
</script>
<script>if (window.module) module = window.module;</script>
</html>