Browse Source

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

master
Главред | Glavred 3 years ago
parent
commit
f2a70f7bb2
6 changed files with 82 additions and 5 deletions
  1. +5
    -0
      0000
  2. +43
    -0
      загрузка|loading.css
  3. +9
    -0
      загрузка|loading.html
  4. +17
    -4
      пуск|run.js
  5. +1
    -1
      пуск|run.череда
  6. +7
    -0
      📦

+ 5
- 0
0000 View File

@@ -1,4 +1,9 @@
МАОН
0.2.0
https://git.opengamestudio.org/KH/MAOH

/загрузка|loading.css
/загрузка|loading.html
x /пуск|run.js
/пуск|run.череда
/📦

+ 43
- 0
загрузка|loading.css View File

@@ -0,0 +1,43 @@
.центрирование-на-экране
{
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
}

.фон-экрана
{
background-color: white;
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
}

.анимированное-название-маджонга
{
animation: кадрыАнимацииНазванияМаджонга 2s infinite;
}

@keyframes кадрыАнимацииНазванияМаджонга {
0% {
text-shadow: 0 0 0 white;
}
30% {
text-shadow: 0 0 1em black;
}
45% {
text-shadow: 0 0 0 white;
}
60% {
text-shadow: 0 0 1em black;
}
70% {
text-shadow: 0 0 0 white;
}
100% {
text-shadow: 0 0 0 white;
}
}

+ 9
- 0
загрузка|loading.html View File

@@ -0,0 +1,9 @@
<div class="фон-экрана">
<center class="центрирование-на-экране">
<span>Маджонг</span> ⚬ <span class="uk-text-bold">麻将</span> ⚬ <span>Mahjong</span>
<h1 class="uk-heading-line uk-text-center">
<span class="анимированное-название-маджонга">МАОН</span>
</h1>
<p>${версия}</p>
</center>
</div>

+ 17
- 4
пуск|run.js View File

@@ -1,5 +1,18 @@
ПриветИзШаблона = мир =>
const ИМЯ = "МАОН";


// // // //


ОтобразитьАнимациюЗагрузкиМаджонга = мир =>
{
console.log("Привет из шаблона!");
console.log("Hello from the template!");
};
var м = мир.модули.модульПоИмени(ИМЯ);

var структура = м.содержимое["/загрузка|loading.html"]
.replace(/\${версия}/g, м.версия);
document.body.innerHTML = структура;
var вид = document.createElement("style");
document.head.appendChild(вид);
вид.innerHTML = м.содержимое["/загрузка|loading.css"];
};

+ 1
- 1
пуск|run.череда View File

@@ -1,2 +1,2 @@
пуск
привет из шаблона
отобразить анимацию загрузки маджонга

+ 7
- 0
📦 View File

@@ -0,0 +1,7 @@
# Список указателей на модули для загрузки во время пуска
# List of module pointers to load at startup

https://bitbucket.org/gitjs/jquery/raw/3.5.1/0000
https://bitbucket.org/gitjs/uikit/raw/3.2.0/0000
https://git.opengamestudio.org/mahjong/base64/raw/branch/master/0000
https://git.opengamestudio.org/mahjong/mahjong-raskladka-layout/raw/branch/master/0000

Loading…
Cancel
Save