-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
60 lines (54 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
<!DOCTYPE html>
<html lang="en">
<head>
<!--title-->
<title>Document</title>
<!--links-->
<!--styles-->
<link rel="stylesheet" href="styles/index_styles.css">
<!--scripts-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!--meta-->
<!--viewport-->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--char-->
<meta charset="UTF-8">
<!--favicon-->
<link rel="icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<div class="container">
<div class="content">
<div spellcheck="false" name="text" id="text" class="text">
<div id="rowC1" class="rowCount" style="color: hsl(259, 100%, 95%); font-size: .9rem; align-content: center; display: flex; justify-content: center; align-items: center; height: 1.6rem">1</div>
<div id="row1" class="row">
<span id="thin0" class="caret"> </span>
</div>
</div>
</div>
</div>
<div class="footer">
<div class="right">
<span id="poshint"></span>
<span class="encoding">UTF-8</span>
<span class="tabs">Spaces: 4</span>
</div>
</div>
<script src="scripts/editor.js"> </script>
<script type="text/javascript">
// load text
function loadText() {
if (!localStorage.getItem('text')) {
return;
} else {
var text = localStorage.getItem('text');
document.getElementById('text').insertAdjacentHTML('beforeend', text);
}
}
loadText();
// change textarea height on load
document.getElementById('text').style.height = document.getElementById('text').scrollHeight + 'px';
</script>
<script src="scripts/syntax-highlighting.js"> </script>
</body>
</html>