Изменения от Главреда ГитЖС | Changes of GitJS Glavred

This commit is contained in:
Главред | Glavred
2020-12-08 15:42:32 +03:00
parent 622bbe977f
commit 1bc30f3b89
8 changed files with 82 additions and 6 deletions

22
⨐.js Normal file
View File

@@ -0,0 +1,22 @@
создатьОкноСОтступами = (id) =>
{
var окно = document.createElement("div");
окно.id = id;
окно.style.display = "none";
окно.classList.add("окно-с-отступами");
document.body.appendChild(окно);
окно.плавно = new ПлавноОтобразитьСкрыть(окно);
return окно;
};
// // // //
добавитьCSS = содержимое =>
{
var вид = document.createElement("style");
document.head.appendChild(вид);
вид.innerHTML = содержимое;
return вид;
};