add blocks
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<input type="text" id="messageInput" placeholder="Введите сообщение">
|
||||
<button id="showPopupBtn">Показать Popup</button></br>
|
||||
<button id="showfManagerBtn">Открыть файл-менеджер</button>
|
||||
@@ -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');
|
||||
|
||||
*/
|
||||
Reference in New Issue
Block a user