add blocks
This commit is contained in:
3
static/blocks/pages/fManager/content.md
Normal file
3
static/blocks/pages/fManager/content.md
Normal file
@@ -0,0 +1,3 @@
|
||||
<input type="text" id="messageInput" placeholder="Введите сообщение">
|
||||
<button id="showPopupBtn">Показать Popup</button></br>
|
||||
<button id="showfManagerBtn">Открыть файл-менеджер</button>
|
||||
23
static/blocks/pages/fManager/script.js
Normal file
23
static/blocks/pages/fManager/script.js
Normal file
@@ -0,0 +1,23 @@
|
||||
//loadBlock("plugin/fManager", "content");
|
||||
|
||||
showPopupBtn.addEventListener('click', () => {
|
||||
popup(messageInput.value || 'Пустое сообщение');});
|
||||
|
||||
showfManagerBtn.addEventListener('click', () => {
|
||||
const div = document.createElement("div");
|
||||
div.id = "fManager";
|
||||
|
||||
document.body.appendChild(div);
|
||||
|
||||
// const testW = document.createElement('div');
|
||||
// testW.id = 'test_W'
|
||||
// testW.className = 'testWW';
|
||||
|
||||
loadBlock("plugin/fManager", "fManager");
|
||||
|
||||
});
|
||||
|
||||
/*
|
||||
const overlay = document.createElement('div');
|
||||
|
||||
*/
|
||||
0
static/blocks/pages/fManager/style.css
Normal file
0
static/blocks/pages/fManager/style.css
Normal file
Reference in New Issue
Block a user