mirror of
https://github.com/tiennm99/sokoban.git
synced 2026-05-23 08:25:45 +00:00
bb720327a0
Add on-screen D-pad (bottom-right) and action stack (UNDO / RESET / LVLS, bottom-left), shown only on coarse-pointer devices. Hide the duplicated header actions on touch. Block iOS/Android browser quirks: pull-to-refresh, double-tap zoom, long-press selection and callout. Game stays inside the viewport via overscroll-behavior and per-element touch-action rules; viewport zoom is left enabled for accessibility. Add navigator.vibrate wrapper (haptics.pulse) and fire short pulses on box push and longer pulse on level solve. Silent no-op where the API is missing. Reserve room for the bottom controls in computeTileSize on coarse pointer; raise minTile to 16 for legibility on small phones.
16 lines
498 B
HTML
16 lines
498 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<link rel="icon" type="image/png" href="./favicon.png" />
|
|
<link rel="apple-touch-icon" href="./apple-touch-icon.png" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
|
|
<meta name="theme-color" content="#5e81ac" />
|
|
<title>Sokoban — 155 Puzzles</title>
|
|
</head>
|
|
<body>
|
|
<div id="app"></div>
|
|
<script type="module" src="/src/main.js"></script>
|
|
</body>
|
|
</html>
|