This repository was archived by the owner on Sep 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.html
More file actions
107 lines (104 loc) · 3.77 KB
/
index.html
File metadata and controls
107 lines (104 loc) · 3.77 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
<!--
(c) Copyright Ascensio System SIA 2020
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>synonim</title>
<script type="text/javascript" src="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.js"></script>
<script type="text/javascript" src="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins-ui.js"></script>
<link rel="stylesheet" href="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.css">
<script src="vendor/jQuery-2.2.2-min/jquery-v2.2.2-min.js"></script>
<script src="scripts/d2md.js"></script>
</head>
<style>
html, body {
width: 100%;
height: 100%;
}
.button_wrapper {
display: flex;
justify-content: space-between;
}
.btn-text-default {
display: flex;
align-items: center;
justify-content: center;
}
#btn-markwodn {
width:40%;
margin: 16px 0 16px 12px;
text-align: center;
}
#btn-html {
float: right;
width:40%;
margin: 16px 12px 16px 0;
text-align: center;
}
#btn-copy {
width : calc( 100% - 24px);
margin: 16px 12px 16px 12px;
}
#text-area {
margin: 16px 12px 0 12px;
}
#settings {
margin: 16px 12px 0 12px;
}
.checkbox {
margin-top: 1px;
margin-left: 5px;
}
.input-container {
display: flex;
margin-bottom: 8px;
}
#hide-show-settings {
width: 130px;
margin-left: 12px;
}
#hide-settings, #show-settings {
cursor:pointer;
border-bottom: 1px dashed #333;
}
#text-area {
height: 100%;
}
</style>
<body class='body' style="margin: 0; display: flex; flex-direction: column;">
<div class="button_wrapper">
<div onсlick="" id="btn-markwodn" class="btn-text-default">Markdown</div>
<div onсlick="" id="btn-html" class="btn-text-default">HTML</div>
</div>
<div id="hide-show-settings"><label style="display:none;" id="hide-settings" class="i18n">Hide settings</label><label id="show-settings" class="i18n">Show settings</label></div>
<div id="settings" style="display: none;">
<div class="input-container">
<input type="checkbox" id="demote_headings" data-id="d2md_demote_headings" class="form-control"><label class="checkbox i18n" for="demote_headings">Demote headings (H1 → H2, etc.)</label>
</div>
<div class="input-container">
<input type="checkbox" id="html_headings" data-id="d2md_html_headings" class="form-control"><label class="checkbox i18n" for="html_headings">HTML headings/IDs</label>
</div>
<div class="input-container">
<input type="checkbox" id="base64img" data-id="d2md_base64img" class="form-control"><label class="checkbox i18n" for="base64img">Create base64 images</label>
</div>
<div class="input-container">
<input type="checkbox" id="render_html_tags" data-id="d2md_render_html_tags" class="form-control"><label class="checkbox i18n" for="render_html_tags">Render HTML tags</label>
</div>
</div>
<textarea id="text-area" name="" class="form-control"></textarea>
<div class="button_wrapper">
<div onсlick="" id="btn-copy" class="btn-text-default i18n" onclick="html()">Copy</div>
</div>
</body>
</html>