This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathindex.html
152 lines (148 loc) · 5.22 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
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
<!--
(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 src="vendor/jQuery-2.2.2-min/jquery-v2.2.2-min.js"></script>
<link rel="stylesheet" href="vendor/select2-4.0.6-rc.1/dist/css/select2.css"/>
<script src="vendor/select2-4.0.6-rc.1/dist/js/select2.js"></script>
<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="scripts/langTool.js"></script>
<link rel="stylesheet" href="resources/css/plugin_style.css">
</head>
<style>
.details {
display:none;
margin: 8px 12px 0 12px;
width: calc(100% - 24px) !important;
}
.arrow_container {
display:flex;
margin-right: 8px;
}
.arrow {
align-self: center;
}
.caption_text {
width: 90%;
margin: 0 4px 17px 4px;
}
.dismiss_buttons {
margin: 14px 0 16px 0;
display: flex;
justify-content: center;
}
.display-none {
display: none;
}
.separator {
margin-bottom: 4px;
width: calc(100% - 24px) !important;
margin: 0 12px 0 12px;
}
#button_wrapper {
display: flex;
justify-content: space-between;
}
.btn-text-default {
display: flex;
align-items: center;
justify-content: center;
}
#check {
width:40%;
margin-left: 12px;
margin-top: 16px;
text-align: center;
}
#replace {
float: right;
width:40%;
margin-right: 12px;
margin-top: 16px;
text-align: center;
}
.replacment {
border-color: #009900 !important;
}
i {
border: solid black;
border-width: 0 1px 1px 0;
display: inline-block;
padding: 2px;
}
.down {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
margin-top: -20px;
}
.up {
transform: rotate(-135deg);
-webkit-transform: rotate(-135deg);
margin-top: -14px;
}
.ps__rail-y {
cursor: default !important;
}
.miniText {
margin: 0 4px 17px 4px;
width: 90%;
}
.unselectable {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Chrome/Safari/Opera */
-khtml-user-select: none; /* Konqueror */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
not supported by any browser */
}
#textarea:empty:not(:focus):before{
content:attr(data-text);
color: gray;
}
</style>
<body class='body' style="margin: 0; display: flex; flex-direction: column;">
<div id="loader-container" class="asc-plugin-loader display-none">
<div class="asc-loader-image">
<div class="asc-loader-title"></div>
</div>
<div class="asc-loader-title i18n">
Checking...
</div>
</div>
<div id="div_language" style="margin: 0px 12px 0px 12px;">
<div style="margin: 16px 0 4px 0; font-weight: normal !important;">
<label class="i18n">Language</label>
</div>
<select id="language_id" style="width: 100%;" class="select_example"></select>
</div>
<div id="hide_show" style="margin: 12px 14px 4px 0px;">
<label id="clear" class="unselectable i18n" style="float: right; border-bottom: var(--scaled-one-pixel, 1px) dotted rgba(255, 255, 255, 0.8); cursor: pointer;">Clear</label>
</div>
<div id="enter_container" class="form-control" style="cursor: text; position: relative; margin: 0px 12px 0px 12px; min-height: 100px; max-height: 45%; height: fit-content;">
<div id="textarea" contenteditable="true" data-text="Select the text to check in the document or enter it manually" style="white-space: pre-wrap !important; min-width: 95%; max-width: 95%; height: fit-content; padding: 0px 15px 5px 3px; outline: none; white-space: normal; float: left; word-wrap: break-word;" ></div>
</div>
<div id="button_wrapper">
<div onсlick="" id="check" class="noselect btn-text-default i18n" style="height: auto; min-height: 20px;">Check</div>
<div onсlick="" id="replace" class="noselect btn-text-default i18n" style="height: fit-content; min-height: 20px;">Insert to document</div>
</div>
<div id="scrollable-container-id" style="position: relative; width: 100%; height: 70%; overflow: hidden ">
<div id="result" style="width: calc(100% - 24px); margin: 0px 12px 0px 12px; word-break: break-word; display: flex; flex-flow: column;"></div>
</div>
</body>
</html>