mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-01-23 02:34:42 +00:00
Hide sys info in the frontend
This commit is contained in:
parent
d7e7112e25
commit
992b6e06da
2 changed files with 9 additions and 6 deletions
|
|
@ -502,9 +502,9 @@ body {
|
|||
|
||||
.menu-item__info {
|
||||
color: white;
|
||||
font-size: 50%;
|
||||
font-size: 30%;
|
||||
position: absolute;
|
||||
right: 15px;
|
||||
left: 15px;
|
||||
}
|
||||
|
||||
.text-move {
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ const gameList = (() => {
|
|||
|
||||
const clear = () => {
|
||||
_title.reset()
|
||||
_desc.hide()
|
||||
// _desc.hide()
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
@ -130,13 +130,16 @@ const gameList = (() => {
|
|||
rootEl.innerHTML = games.list.map(game =>
|
||||
`<div class="menu-item">` +
|
||||
`<div><span>${game.title}</span></div>` +
|
||||
`<div class="menu-item__info hidden">${game.system}</div>` +
|
||||
//`<div class="menu-item__info">${game.system}</div>` +
|
||||
`</div>`)
|
||||
.join('')
|
||||
items = [...rootEl.querySelectorAll('.menu-item')].map(x => item(x))
|
||||
}
|
||||
|
||||
return {
|
||||
get items() {
|
||||
return items
|
||||
},
|
||||
get selected() {
|
||||
return items[games.index]
|
||||
},
|
||||
|
|
@ -179,7 +182,7 @@ const gameList = (() => {
|
|||
}
|
||||
|
||||
const select = (index) => {
|
||||
ui.selected && ui.selected.clear()
|
||||
ui.items.forEach(i => i.clear()) // !to rewrite
|
||||
games.index = index
|
||||
ui.pos = games.index
|
||||
}
|
||||
|
|
@ -193,7 +196,7 @@ const gameList = (() => {
|
|||
if (item) {
|
||||
item.title.pick()
|
||||
item.title.animate()
|
||||
hasTransition ? (ui.onTransitionEnd = item.description.show) : item.description.show()
|
||||
// hasTransition ? (ui.onTransitionEnd = item.description.show) : item.description.show()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue