МУРОМ является долговечным игровым редактором, работающим в браузере | MUROM is a durable game editor working in a browser http://opengamestudio.org/murom
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.

45 lines
935B

  1. function добавитьЭкранЗаставки()
  2. {
  3. var заставка = document.createElement("div");
  4. document.body.appendChild(заставка);
  5. заставка.id = "заставка";
  6. заставка.style.cssText = "position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none;";
  7. заставка.innerHTML =
  8. `
  9. <h1 id = "заголовок">МУРОМ</h1>
  10. `;
  11. var вид = document.createElement("style");
  12. document.head.appendChild(вид);
  13. вид.innerHTML =
  14. `
  15. #заголовок
  16. {
  17. position: absolute;
  18. left: 50%;
  19. top: 50%;
  20. }
  21. #заставка
  22. {
  23. opacity: 1;
  24. background-color: grey;
  25. animation: fadeOut 2s ease;
  26. animation-fill-mode: forwards;
  27. }
  28. @keyframes fadeOut
  29. {
  30. from
  31. {
  32. opacity: 1;
  33. }
  34. to
  35. {
  36. opacity: 0;
  37. }
  38. }
  39. `;
  40. };
  41. муром.старт.подписать(добавитьЭкранЗаставки);