Игра Маджонг | Mahjong game
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.

59 lines
979B

  1. function showSplash()
  2. {
  3. var html =
  4. `
  5. <div id="mj-splash-body">
  6. <center>
  7. <h1 id="mj-splash-title">Маджонг</h1>
  8. <strong>2.0.0</strong>
  9. <p>Среда разработки</p>
  10. </center>
  11. </div>
  12. `;
  13. var css =
  14. `
  15. #mj-splash-title
  16. {
  17. font: bold 4em serif;
  18. }
  19. #mj-splash-body
  20. {
  21. position: absolute;
  22. left: 50%;
  23. top: 50%;
  24. transform: translateX(-50%) translateY(-50%);
  25. pointer-events: none;
  26. }
  27. #mj-splash
  28. {
  29. opacity: 1;
  30. background-color: white;
  31. animation: mj-splash-fade-out 1s ease;
  32. animation-fill-mode: forwards;
  33. }
  34. @keyframes mj-splash-fade-out
  35. {
  36. 0%
  37. {
  38. opacity: 1;
  39. }
  40. 60%
  41. {
  42. opacity: 1;
  43. }
  44. 100%
  45. {
  46. opacity: 0;
  47. }
  48. }
  49. `;
  50. var screen = addScreen("mj-splash", html, css);
  51. screen.onanimationend = function(){
  52. document.body.removeChild(screen);
  53. };
  54. }
  55. var показатьЗаставку = showSplash;
  56. when(murom.modeEditor, showSplash);