game html dan DIO

This commit is contained in:
='fauz
2025-07-07 17:31:26 +07:00
parent a211b0675d
commit 9bff9c7fc2
12 changed files with 157 additions and 23 deletions
+2 -3
View File
@@ -82,7 +82,7 @@
shuffled.forEach((img, i) => {
const card = document.createElement('div');
card.className = 'card hidden';
card.style.backgroundImage = 'url("freekake.png")';
card.style.backgroundImage = 'url("../freekake.png")';
card.style.backgroundSize = 'contain';
card.style.backgroundRepeat = 'no-repeat';
card.style.backgroundPosition = 'center';
@@ -111,7 +111,7 @@
function hideCard(i) {
const el = board.children[i];
el.classList.add('hidden');
el.style.backgroundImage = 'url("freekake.png")';
el.style.backgroundImage = 'url("../freekake.png")';
el.style.backgroundSize = 'contain';
el.style.backgroundRepeat = 'no-repeat';
el.style.backgroundPosition = 'center';
@@ -156,7 +156,6 @@
if (selected.length === 2) checkMatch();
});
// 🔍 Expose render and notify Flutter
window.render = render;
if (window.flutter_inappwebview) {