Sfoglia il codice sorgente

нормальное меню

tags/4.1
parent
commit
8ff04414eb
1 ha cambiato i file con 10 aggiunte e 14 eliminazioni
  1. +10
    -14
      4.1/игра/280.Меню.js

+ 10
- 14
4.1/игра/280.Меню.js Vedi File

@@ -23,34 +23,30 @@ function Меню(события, подсказки)

this.отобразитьМеню = function(имя)
{
UIkit.modal("#меню").show();
/*
let подсказка = подсказки.задано[имя];
let html = `
`;
UIkit.modal.dialog(html);
*/
document.getElementById("меню-заголовок").innerHTML = подсказка.текст;
UIkit.modal("#меню").show();
};

this.установитьМеню = function()
{
let html = `
<div id="меню" uk-modal>
<button class="uk-modal-close-default" type="button" uk-close></button>
<div class="uk-modal-body">
<h2 class="uk-modal-title">Заголовок</h2>
<div class="uk-child-width-1-4@s uk-text-center" uk-grid>
<div class="uk-modal-dialog uk-modal-body">
<button class="uk-modal-close-default" type="button" uk-close></button>
<h2 id="меню-заголовок" class="uk-modal-title">Заголовок</h2>
<div class="uk-child-width-1-4 uk-text-center" uk-grid>
<div>
<div class="uk-card uk-card-default uk-card-body">👁️</div>
<div class="uk-card uk-card-small uk-card-hover uk-card-default uk-card-body">👁️</div>
</div>
<div>
<div class="uk-card uk-card-default uk-card-body">🤚</div>
<div class="uk-card uk-card-small uk-card-hover uk-card-default uk-card-body">🤚</div>
</div>
<div>
<div class="uk-card uk-card-default uk-card-body">🗣</div>
<div class="uk-card uk-card-small uk-card-hover uk-card-default uk-card-body">🗣</div>
</div>
<div>
<div class="uk-card uk-card-default uk-card-body">🥾</div>
<div class="uk-card uk-card-small uk-card-hover uk-card-default uk-card-body">🥾</div>
</div>
</div>
</div>


Loading…
Annulla
Salva