-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (52 loc) · 1.99 KB
/
index.html
File metadata and controls
62 lines (52 loc) · 1.99 KB
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
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>HTML Editor</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<textarea id=data><!doctype html>
<html>
<body>
<style>
body {
padding: 50px;
}
span {
display: inline-block;
background: #a0ffa0;
padding: 20px;
}
</style>
<span>
Edit the page on top, see
the result on the bottom.
</span>
</body>
</html></textarea>
<div class=controls>
<label>
<input type=checkbox id=realtime onclick="update()" checked>
Realtime
</label> |
<select id="layout" onchange="updateLayout()">
<option value="vertical">Vertical</option>
<option value="horizontal">Horizontal</option>
<option value="edit only">Edit Only</option>
</select> | <label>Font Size: <input type="number" id="fontSize" value="14" onchange="changeFontSize()" style="width:50px;"></label> |
<span onClick="update()">Update</span> |
<span onClick="goFullscreen()" >Fullscreen</span> |
<span onClick="render()" >Render</span> |
<span onClick="printFrame()" >Print</span> |
<span onClick="clearData()" >Clear</span> |
<a href="https://github.com/no-gravity/html_editor"
target=_blank>Github</a> |
<a href="https://www.gibney.org" target="_blank">Made by MG</a></span>
</div>
<iframe id=resultframe></iframe>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dom-to-image/2.6.0/dom-to-image.min.js" integrity="sha512-01CJ9/g7e8cUmY0DFTMcUw/ikS799FHiOA0eyHsUWfOetgbx/t6oV4otQ5zXKQyIrQGTHSmRVPIgrgLcZi/WMA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="index.js"></script>
</body>
</html>