-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
185 lines (175 loc) · 10.7 KB
/
Copy pathindex.html
File metadata and controls
185 lines (175 loc) · 10.7 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-97902571-5"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-97902571-5');
</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width">
<meta name="description"
content="HTML Online Viewer. A fast HTML viewer/editor with live rendering. The HTML can be edited, formatted, and highlighted.">
<meta name="keywords"
content="HTML Online Viewer,Online HTML Viewer,HTML Viewer,HTML Editor,Highlight HTML,HTML live">
<title>HTML Online Viewer</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/css/bootstrap.min.css"
integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="//www.onlineviewer.net/onlineviewer.min.css">
<link rel="icon" href="//www.onlineviewer.net/favicon.ico" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.1/beautify.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.1/beautify-css.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.15.1/beautify-html.min.js"></script>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.37.1/ace.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.4.1/dist/js/bootstrap.min.js"
integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd"
crossorigin="anonymous"></script>
</head>
<body>
<div class="modal fade" id="aboutModal" tabindex="-1" role="dialog" aria-labelledby="aboutModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
<h4 class="modal-title" id="aboutModalLabel">About</h4>
</div>
<div class="modal-body">
With <strong>HTML Online Viewer</strong> you can preview and edit your HTML at the same time.
The viewer highlights the HTML for better readability using the high
performance editor: <a href="https://ace.c9.io/" target="_blank"><strong>Ace</strong></a> (<a
href="https://github.com/ajaxorg/ace/blob/master/LICENSE" target="_blank">license</a>).
<p>
<p>
You can see the live preview of the HTML on the same page, but you can also show the preview in
a new separate tab where it would be more stable.
<p>
<p>
<strong>The highlighted code</strong> can also be shown in a separate tab where it would be
rendered at once (not in the editor), so the browser's native search function can be used
(Ctrl+F). This highlighting is done using a reliable third-party library: <a
href="https://highlightjs.org/" target="_blank"><strong>highlight.js</strong></a> (<a
href="https://github.com/isagalaev/highlight.js/blob/master/LICENSE"
target="_blank">license</a>).
<p>
<p>
<strong>The formatting</strong> function can be useful too. It is done using an efficient
third-party library: <a href="http://jsbeautifier.org/" target="_blank"><strong>JS
Beautifier</strong></a> (<a
href="https://github.com/beautify-web/js-beautify/blob/master/LICENSE"
target="_blank">license</a>).
<p>
<p>
Available functions:
<ul>
<li><strong>Preview (Alt+1)</strong> button renders the HTML code in a new tab.</li>
<li><strong>Highlight (Alt+2)</strong> button shows the entire highlighted code in a new tab.
</li>
<li><strong>Format (Alt+3)</strong> button beautifies the HTML text.</li>
<li><strong>Expand all (Alt+4)</strong> button expands all elements.</li>
<li><strong>Collapse all (Alt+5)</strong> button collapses all elements.</li>
<li><strong>Sample (Alt+6)</strong> button puts a sample HTML text into the editor.</li>
<li><strong>Clear (Alt+7)</strong> button erases the editor text.</li>
</ul>
<p>
<p>
<strong>This website uses cookies for Google Analytics.</strong> If you don't want to allow
this, you can disable cookies in your browser.
<p>
<p>
<strong>All input is processed locally (not by a server)</strong> and it is thus 100% safe and
private.
<p>
<p>
Internal libraries used:
<ul>
<li><a href="https://jquery.com/" target="_blank">jQuery</a> (<a
href="https://github.com/jquery/jquery/blob/master/LICENSE.txt"
target="_blank">license</a>)</li>
<li><a href="https://getbootstrap.com/" target="_blank">Bootstrap</a> (<a
href="https://github.com/twbs/bootstrap/blob/master/LICENSE"
target="_blank">license</a>)</li>
<li><a href="https://web.archive.org/web/20170729144500/http://fontawesome.io/"
target="_blank">Font Awesome</a> (<a
href="https://web.archive.org/web/20170730011910/http://fontawesome.io/license"
target="_blank">license</a>)</li>
</ul>
<p>
<p>
Check other viewers:
<ul>
<li><a href="https://text.onlineviewer.net" target="_blank">Text Online Viewer</a></li>
<li><a href="https://json.onlineviewer.net" target="_blank">JSON Online Viewer</a></li>
<li><a href="https://xml.onlineviewer.net" target="_blank">XML Online Viewer</a></li>
</ul>
<p>
<p>
<strong>The favicon</strong> is from the <a href="https://github.com/KDE/oxygen-icons"
target="_blank">Oxygen Icons</a> set made by <a href="https://www.kde.org/"
target="_blank">KDE</a> (<a href="https://github.com/KDE/oxygen-icons/blob/master/COPYING"
target="_blank">license</a>)
<p>
<p>
If you have any suggestions, please use the following contact email address:
<br><img src="//www.onlineviewer.net/email_address.png" alt="contact email address" />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="sidebar">
<h1 class="header">HTML Online Viewer</h1>
<div class="separator"></div>
<div id="textViewButtons">
<button onclick="openHtmlPreview()" class="btn btn-default btn-sm btn-block"><i
class="fa fa-eye fa-lg fa-fw"></i> Preview (Full page)</button>
<button onclick="openHighlightedSyntax()" class="btn btn-default btn-sm btn-block"><i
class="fa fa-edit fa-lg fa-fw"></i> Highlight (Full page)</button>
<button onclick="formatHtml();" class="btn btn-default btn-sm btn-block"><i
class="fa fa-indent fa-lg fa-fw"></i> Format</button>
<button onclick="unfoldAll()" class="btn btn-default btn-sm btn-block"><i
class="fa fa-plus-square fa-lg fa-fw"></i> Expand all</button>
<button onclick="foldAll();" class="btn btn-default btn-sm btn-block"><i
class="fa fa-minus-square fa-lg fa-fw"></i> Collapse all</button>
<button id="btnSample" onclick="insertSample()" class="btn btn-default btn-sm btn-block"><i
class="fa fa-file-text-o fa-lg fa-fw"></i> Sample</button>
<button id="btnClear" onclick="clearTextInput()" class="btn btn-default btn-sm btn-block"><i
class="fa fa-file-o fa-lg fa-fw"></i> Clear</button>
<button id="btnImport" onclick="importText()" class="btn btn-default btn-sm btn-block"><i
class="fa fa-upload fa-lg fa-fw"></i> Import</button>
<button id="btnExport" onclick="exportText()" class="btn btn-default btn-sm btn-block"><i
class="fa fa-download fa-lg fa-fw"></i> Export</button>
<input type="file" id="inpImport" accept="text/*" style="display:none">
</div>
<div class="bottomSeparator">
</div>
<div id="aboutButton" data-toggle="modal" data-target="#aboutModal">
<button id="btnAbout" class="btn btn-default btn-sm btn-block"><i
class="fa fa-question-circle-o fa-lg fa-fw"></i> About</button>
</div>
<div class="copyrightText">
<span id="copyright"></span> <a id="copyrightName" href="https://www.onlineviewer.net">OnlineViewer.net</a>
</div>
</div>
<div id="content">
<div id="textView" class="textView">
<div id="editor">Put your HTML text here</div>
</div>
<div id="livePreview">
<iframe id="liveFrame" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts"
frameborder="1"></iframe>
</div>
</div>
<script>
var pageType = 'HTML';
</script>
<script src="//www.onlineviewer.net/onlineviewer.min.js"></script>
</body>
</html>