merubah sedikit logika game
This commit is contained in:
parent
2f275d83b7
commit
d36cd0393e
@ -366,7 +366,13 @@ function showEnd(title, msg, result){
|
||||
const div = document.createElement("div");
|
||||
div.id = "endPopup";
|
||||
div.style = `position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.75);display:flex;justify-content:center;align-items:center;z-index:999999999;pointer-events:auto;`;
|
||||
div.innerHTML = `<div style="background:#1e293b;padding:24px;border-radius:12px;width:310px;text-align:center;color:white;"><h2 style="margin:0 0 8px">${title}</h2><p style="margin:0 0 16px">${msg}</p><div style="display:flex;gap:8px;justify-content:center;"><button id="popupNew" style="background:#0ea5a4;color:white;border:none;padding:10px 18px;border-radius:8px;">New Game</button><button id="popupClose" style="background:#64748b;color:white;border:none;padding:10px 18px;border-radius:8px;">Close</button></div></div>`;
|
||||
div.innerHTML = `<div style="background:#1e293b;padding:24px;border-radius:12px;width:310px;text-align:center;color:white;">
|
||||
<h2 style="margin:0 0 8px">${title}</h2>
|
||||
<p style="margin:0 0 16px">${msg}</p><div style="display:flex;gap:8px;justify-content:center;">
|
||||
<button id="popupNew" style="background:#0ea5a4;color:white;border:none;padding:10px 18px;border-radius:8px;">New Game</button>
|
||||
<button id="popupClose" style="background:#64748b;color:white;border:none;padding:10px 18px;border-radius:8px;">Close</button>
|
||||
</div>
|
||||
</div>`;
|
||||
document.body.appendChild(div);
|
||||
// save result async
|
||||
saveResult(result).catch(()=>{});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user