add files
This commit is contained in:
27
vendor/akdelf/akdmin/themes/office/pub/js/speller/spell.css
vendored
Executable file
27
vendor/akdelf/akdmin/themes/office/pub/js/speller/spell.css
vendored
Executable file
@@ -0,0 +1,27 @@
|
||||
* {
|
||||
font-family: Tahoma, Verdana, Arial;
|
||||
font-size: 11px;
|
||||
}
|
||||
body {
|
||||
background: threedface;
|
||||
border-style: none;
|
||||
padding: 0px;
|
||||
margin: 10px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.lbutton {
|
||||
width: 100%;
|
||||
padding-left: 0px;
|
||||
padding-right: 0px;
|
||||
}
|
||||
.button {
|
||||
width: 90px;
|
||||
}
|
||||
.fragment {
|
||||
height: 46px;
|
||||
background-color: #ffffe1;
|
||||
border: 1px solid gray;
|
||||
margin: 2px 0px 0px 0px;
|
||||
overflow: hidden;
|
||||
padding: 0px 2px;
|
||||
}
|
||||
57
vendor/akdelf/akdmin/themes/office/pub/js/speller/spell.js
vendored
Executable file
57
vendor/akdelf/akdmin/themes/office/pub/js/speller/spell.js
vendored
Executable file
@@ -0,0 +1,57 @@
|
||||
function Speller(args) {
|
||||
args = args || new Object;
|
||||
this.url = args.url || ".";
|
||||
this.args = {
|
||||
defLang: args.lang || "ru",
|
||||
defOptions: args.options || 0x0004,
|
||||
spellDlg: args.spellDlg || { width: 440, height: 265 },
|
||||
optDlg: args.optDlg || { width: 330, height: 275 },
|
||||
userDicDlg: args.userDicDlg || { width: 270, height: 350 }
|
||||
};
|
||||
}
|
||||
|
||||
Speller.IGNORE_UPPERCASE = 0x0001;
|
||||
Speller.IGNORE_DIGITS = 0x0002;
|
||||
Speller.IGNORE_URLS = 0x0004;
|
||||
Speller.FIND_REPEAT = 0x0008;
|
||||
Speller.IGNORE_LATIN = 0x0010;
|
||||
Speller.FLAG_LATIN = 0x0080;
|
||||
|
||||
Speller.prototype.check = function(ctrls) {
|
||||
this.showDialog(this.url + "/spelldlg.html", this.args.spellDlg, ctrls);
|
||||
}
|
||||
|
||||
Speller.prototype.optionsDialog = function() {
|
||||
this.showDialog(this.url + "/spellopt.html", this.args.optDlg);
|
||||
}
|
||||
|
||||
Speller.prototype.showDialog = function(url, size, ctrls) {
|
||||
var a = this.args;
|
||||
var args = { ctrls: ctrls, lang: a.lang, options: a.options,
|
||||
defLang: a.defLang, defOptions: a.defOptions,
|
||||
optDlg: a.optDlg, userDicDlg: a.userDicDlg
|
||||
};
|
||||
var left = 0, top = 0;
|
||||
if (window.outerWidth) {
|
||||
left = window.screenX + ((window.outerWidth - size.width) >> 1);
|
||||
top = window.screenY + ((window.outerHeight - size.height) >> 1);
|
||||
}
|
||||
if (window.showModalDialog && navigator.userAgent.indexOf("Opera") < 0) {
|
||||
var features = "dialogWidth:" + size.width + "px;dialogHeight:" + size.height + "px;scroll:no;help:no;status:no;";
|
||||
if (navigator.userAgent.indexOf("Firefox") >= 0)
|
||||
features += "dialogLeft:" + left + "px;dialogTop:" + top + "px;";
|
||||
window.showModalDialog(url, args, features);
|
||||
a.lang = args.lang; a.options = args.options;
|
||||
}
|
||||
else {
|
||||
var name = url.replace(/[\/\.]/g, "");
|
||||
var features = "width=" + size.width + ",height=" + size.height + ",toolbar=no,status=no,menubar=no,directories=no,resizable=no";
|
||||
if (left || top)
|
||||
features += ",left=" + left + ",top=" + top;
|
||||
window.theDlgArgs = args;
|
||||
var dlg = window.open(url, name, features);
|
||||
dlg.onunload = function() {
|
||||
a.lang = args.lang; a.options = args.options;
|
||||
}
|
||||
}
|
||||
}
|
||||
73
vendor/akdelf/akdmin/themes/office/pub/js/speller/spelldlg.html
vendored
Executable file
73
vendor/akdelf/akdmin/themes/office/pub/js/speller/spelldlg.html
vendored
Executable file
@@ -0,0 +1,73 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Правописание:</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="spell.css"/>
|
||||
<script type="text/javascript" src="http://speller.yandex.net/speller/1.0/lib.js"></script>
|
||||
<script type="text/javascript" src="http://speller.yandex.net/speller/1.0/speller.js"></script>
|
||||
<script type="text/javascript" src="http://speller.yandex.net/speller/1.0/spelldlg.js"></script>
|
||||
<script type="text/javascript" src="http://speller.yandex.net/speller/1.0/spelldic.js"></script>
|
||||
</head>
|
||||
<body onload="new SpellDialog().init()">
|
||||
<div style="display:none">
|
||||
<p id="checkComplete">Проверка правописания завершена.</p>
|
||||
<p id="wordNotFound">Слово "{0}" не найдено в словаре. Вы хотите его использовать?</p>
|
||||
<p id="timeoutError">Не удалось выполнить запрос. Время ожидания истекло.</p>
|
||||
<p id="changeError">Не удалось заменить слово.</p>
|
||||
<p id="spellErrors">Ошибка:Нет в словаре:Повтор слова:Ошибка капитализации</p>
|
||||
</div>
|
||||
<form id="form" action="">
|
||||
<table cellspacing="2" align="center">
|
||||
<tr>
|
||||
<td><span id="reason"></span></td>
|
||||
<td style="width:105px"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">
|
||||
<input name="word" type="text" maxlength="100" style="width:300px;padding:1px;"/>
|
||||
<div id="fragment" class="fragment" style="width:300px"></div></td>
|
||||
<td valign="top">
|
||||
<button type="button" name="ignoreOnce" class="lbutton" style="margin-bottom: 3px">Пропустить</button>
|
||||
<button type="button" name="ignoreAll" class="lbutton" style="margin-bottom: 3px">Пропустить все</button>
|
||||
<button type="button" name="addToDic" class="lbutton" style="visibility:hidden">Добавить</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><span>Варианты:</span></td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><select name="suggest" size="5" style="width:306px"><option>(варианты отсутствуют)</option></select></td>
|
||||
<td valign="top">
|
||||
<button type="button" name="change" class="lbutton" style="margin-bottom: 3px">Заменить</button>
|
||||
<button type="button" name="changeAll" class="lbutton" style="margin-bottom: 3px">Заменить все</button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td align="right">
|
||||
Язык словаря:
|
||||
<select name="langList" style="width:160px">
|
||||
<option value="en">Английский</option>
|
||||
<option value="ru">Русский</option>
|
||||
<option value="uk">Украинский</option>
|
||||
</select>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" align="right">
|
||||
<div style="position:relative">
|
||||
<img src="yandex.png" width="52" height="22" style="position:absolute;right:254px;bottom:0;" alt="Яндекс"/>
|
||||
<button type="button" name="options" class="button">Параметры...</button> 
|
||||
<button type="button" name="undo" class="button">Вернуть</button>
|
||||
</div>
|
||||
</td>
|
||||
<td valign="top">
|
||||
<button type="button" name="cancel" class="lbutton">Закрыть</button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
58
vendor/akdelf/akdmin/themes/office/pub/js/speller/spellopt.html
vendored
Executable file
58
vendor/akdelf/akdmin/themes/office/pub/js/speller/spellopt.html
vendored
Executable file
@@ -0,0 +1,58 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" >
|
||||
<head>
|
||||
<title>Правописание</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="spell.css"/>
|
||||
<script type="text/javascript" src="http://speller.yandex.net/speller/1.0/lib.js"></script>
|
||||
<script type="text/javascript" src="http://speller.yandex.net/speller/1.0/spellopt.js"></script>
|
||||
</head>
|
||||
<body onload="new SpellOptDialog().init()">
|
||||
<form id="form" action="">
|
||||
<div>Параметры:
|
||||
<ul style="list-style-type:none;padding-left:15px;margin:0px;">
|
||||
<li><input type="checkbox" id="ignoreUppercase"/> <label for="ignoreUppercase">Пропускать слова из ПРОПИСНЫХ букв</label></li>
|
||||
<li><input type="checkbox" id="ignoreDigits"/> <label for="ignoreDigits">Пропускать слова с цифрами</label></li>
|
||||
<li><input type="checkbox" id="ignoreUrls"/> <label for="ignoreUrls">Пропускать URL'и и имена файлов</label></li>
|
||||
<li><input type="checkbox" id="findRepeat"/> <label for="findRepeat">Подсвечивать повторяющиеся слова</label></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div style="position:relative;margin:7px 0px;"> 
|
||||
<span style="position:absolute;right:165px;">Язык словаря:</span>
|
||||
<span style="position:absolute;right:0px;"><select name="langList" style="width:160px;">
|
||||
<option value="en">Английский</option>
|
||||
<option value="ru">Русский</option>
|
||||
<option value="uk">Украинский</option>
|
||||
</select></span>
|
||||
</div>
|
||||
<div style="position:relative;margin:7px 0px;"> 
|
||||
<span style="position:absolute;right:165px;">Словарь пользователя:</span>
|
||||
<button type="button" name="userDic" style="width:120px;position:absolute;right:40px;top:0px;">Редактировать...</button>
|
||||
</div>
|
||||
<div id="groupLatin" style="margin-bottom:5px;">Слова, написанные латиницей:
|
||||
<ul style="list-style-type:none;padding-left:15px;margin:0px;">
|
||||
<li><input type="radio" id="ignoreLatin" name="latin" value="ignore"/> <label for="ignoreLatin">Пропускать</label></li>
|
||||
<li><input type="radio" id="flagLatin" name="latin" value="flag"/> <label for="flagLatin">Подсвечивать</label></li>
|
||||
<li>
|
||||
<div style="position:relative;">
|
||||
<input type="radio" id="checkLatin" name="latin" value="check"/> <label for="checkLatin">Проверять</label>
|
||||
<span style="position:absolute;right:0px;"><select name="latinLang" style="width:160px;">
|
||||
<option value="en" selected="selected">Английский</option>
|
||||
</select></span>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div style="position:relative;">
|
||||
<span>
|
||||
<input type="checkbox" id="recheck"/>
|
||||
<label for="recheck" id="labelRecheck">Проверить с начала</label>
|
||||
</span>
|
||||
<span style="position:absolute;right:0px;">
|
||||
<input type="button" name="ok" class="button" value="OK"/>
|
||||
<input type="button" name="cancel" class="button" value="Отмена"/>
|
||||
</span>
|
||||
</div>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
23
vendor/akdelf/akdmin/themes/office/pub/js/speller/test.html
vendored
Executable file
23
vendor/akdelf/akdmin/themes/office/pub/js/speller/test.html
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>Проверка правописания</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
|
||||
<script type="text/javascript" src="spell.js"></script>
|
||||
<script type="text/javascript">
|
||||
var speller = new Speller({ url: ".", lang: "ru", options: Speller.IGNORE_URLS });
|
||||
|
||||
function spellCheck() {
|
||||
speller.check([ document.forms[0].edit ]);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h3>Проверка правописания</h3>
|
||||
<form action="">
|
||||
<p><textarea name="edit" rows="10" cols="60"></textarea></p>
|
||||
<button name="cmdSpell" type="button" onclick="spellCheck()">Проверить</button> 
|
||||
<button name="cmdOptions" type="button" onclick="speller.optionsDialog()">Параметры...</button>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
26
vendor/akdelf/akdmin/themes/office/pub/js/speller/userdic.html
vendored
Executable file
26
vendor/akdelf/akdmin/themes/office/pub/js/speller/userdic.html
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Словарь пользователя</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<link rel="stylesheet" type="text/css" href="spell.css">
|
||||
<script type="text/javascript" src="http://speller.yandex.net/speller/1.0/lib.js"></script>
|
||||
<script type="text/javascript" src="http://speller.yandex.net/speller/1.0/spelldic.js"></script>
|
||||
<script type="text/javascript" src="http://speller.yandex.net/speller/1.0/userdic.js"></script>
|
||||
</head>
|
||||
<body onload="new UserDicDialog().init()" style="margin:0;background:threedface;overflow:hidden;">
|
||||
<div style="display:none">
|
||||
<p id="saveDic">Сохранить изменения в словаре пользователя?</p>
|
||||
</div>
|
||||
<form id="form" action="">
|
||||
<table cellpadding="0" cellspacing="0" style="height:100%;width:100%;">
|
||||
<tr>
|
||||
<td><textarea name="dic" rows="10" cols="20" style="width:100%;height:100%;margin:0;padding:1px;overflow:auto;"></textarea></td>
|
||||
</tr>
|
||||
<tr align="right" style="height:30px">
|
||||
<td><button type="button" name="ok" class="button">Закрыть</button></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
1
vendor/akdelf/akdmin/themes/office/pub/js/speller/version.txt
vendored
Executable file
1
vendor/akdelf/akdmin/themes/office/pub/js/speller/version.txt
vendored
Executable file
@@ -0,0 +1 @@
|
||||
version: 1.0.7
|
||||
BIN
vendor/akdelf/akdmin/themes/office/pub/js/speller/yandex.png
vendored
Executable file
BIN
vendor/akdelf/akdmin/themes/office/pub/js/speller/yandex.png
vendored
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 923 B |
Reference in New Issue
Block a user