Основа Маджонга | Mahjong's base
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

функции|functions.js 350B

1234567891011121314151617
  1. // // // //
  2. добавитьОкно = (id, html, css) =>
  3. {
  4. var окно = document.createElement("div");
  5. окно.id = id;
  6. окно.innerHTML = html;
  7. var вид = document.createElement("style");
  8. вид.innerHTML = css;
  9. document.body.appendChild(окно);
  10. document.head.appendChild(вид);
  11. return окно;
  12. };