MatteoScript commited on
Commit
6e41dc2
·
verified ·
1 Parent(s): 3b53259

Update play.html

Browse files
Files changed (1) hide show
  1. play.html +18 -1
play.html CHANGED
@@ -8,7 +8,7 @@
8
  <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&display=swap" rel="stylesheet">
9
  <style>
10
  :root { --neon-green: #00ff41; --legacy-gold: #ffb700; --error-red: #ff0055; --bg-dark: #0a0a0a; }
11
- body { background: #0a0a0a; color: #e0e0e0; font-family: 'JetBrains Mono', monospace; overflow: hidden; user-select: none; }
12
  canvas { display: block; width: 100%; height: 100%; }
13
 
14
  .scanlines { background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1)); background-size: 100% 4px; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 10; }
@@ -118,6 +118,23 @@
118
  </div>
119
 
120
  <script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
  /**
122
  * ==========================================================================================
123
  * ⚙️ CONFIGURAZIONE DI GIOCO - MATTEO INNOVATION LAB EDITION
 
8
  <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&display=swap" rel="stylesheet">
9
  <style>
10
  :root { --neon-green: #00ff41; --legacy-gold: #ffb700; --error-red: #ff0055; --bg-dark: #0a0a0a; }
11
+ body { background: #0a0a0a; color: #e0e0e0; font-family: 'JetBrains Mono', monospace; overflow: hidden; user-select: none; touch-action: none; -webkit-touch-callout: none;}
12
  canvas { display: block; width: 100%; height: 100%; }
13
 
14
  .scanlines { background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1)); background-size: 100% 4px; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; z-index: 10; }
 
118
  </div>
119
 
120
  <script>
121
+ document.addEventListener('DOMContentLoaded', () => {
122
+ document.addEventListener('touchmove', function(event) {
123
+ if (event.scale !== 1) { event.preventDefault(); }
124
+ }, { passive: false });
125
+
126
+ let lastTouchEnd = 0;
127
+ document.addEventListener('touchend', function(event) {
128
+ const now = (new Date()).getTime();
129
+ if (now - lastTouchEnd <= 300) {
130
+ event.preventDefault();
131
+ }
132
+ lastTouchEnd = now;
133
+ }, false);
134
+
135
+ document.body.addEventListener('gesturestart', function(e) { e.preventDefault(); });
136
+ });
137
+
138
  /**
139
  * ==========================================================================================
140
  * ⚙️ CONFIGURAZIONE DI GIOCO - MATTEO INNOVATION LAB EDITION