From 224b4fc783d53f197e99010ff4ce727db10e8d69 Mon Sep 17 00:00:00 2001 From: "Satur@it-depot.ru" Date: Wed, 5 Mar 2025 18:20:11 +0300 Subject: [PATCH] 1 --- templates/index.html | 1020 +++++++++++++++++++++++------------------- 1 file changed, 568 insertions(+), 452 deletions(-) diff --git a/templates/index.html b/templates/index.html index b88d009..49ede2c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,325 +1,403 @@ - + + + + + + +
+

Папки

+
+ +
+
+

+ АйТи-Депо логотип + Органайзер АйТи-Депо +

+
+ + + +
+ + +
+
+
+

Добавить запись

+ + + + + + +
Пример: 2025-03-05 14:30:00
+
+
+
Имя компьютера
+
ID подключения
+
Время установки
+
Действия
+
+
+
+
+

Заметка

+
+
- const protocolIcons = { - 'rustdesk': '', - 'anydesk': '', - 'ammyy': '', - 'teamviewer': '', - 'vnc': '', - 'rdp': '' - }; + + +
+

Редактировать заметку

+
+ + + +
+ + + +
- const protocolLinks = { - 'rustdesk': 'rustdesk://', - 'anydesk': 'anydesk://', - 'ammyy': 'ammyy://', - 'teamviewer': 'teamviewer://remote-control/', - 'vnc': 'vnc://', - 'rdp': 'rdp://' - }; + \ No newline at end of file + + function formatItalic() { + const textarea = $('#note-textarea'); + const start = textarea[0].selectionStart; + const end = textarea[0].selectionEnd; + const text = textarea.val(); + const selected = text.substring(start, end); + const newText = `*${selected}*`; + textarea.val(text.substring(0, start) + newText + text.substring(end)); + textarea[0].selectionStart = start; + textarea[0].selectionEnd = start + newText.length - 2; + } + + function formatLink() { + const textarea = $('#note-textarea'); + const start = textarea[0].selectionStart; + const end = textarea[0].selectionEnd; + const text = textarea.val(); + const selected = text.substring(start, end) || 'текст'; + const url = prompt('Введите URL ссылки:', 'https://example.com'); + if (url) { + const newText = `[${selected}](${url})`; + textarea.val(text.substring(0, start) + newText + text.substring(end)); + textarea[0].selectionStart = start; + textarea[0].selectionEnd = start + newText.length - (selected ? 0 : '[текст]'.length); + } + } + + + \ No newline at end of file