je veux les image reel qui correspond au vehicule - Initial Deployment
Browse files- README.md +6 -4
- index.html +751 -19
README.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
colorFrom: green
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: drive-sim
|
| 3 |
+
emoji: 🐳
|
| 4 |
colorFrom: green
|
| 5 |
+
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite
|
| 10 |
---
|
| 11 |
|
| 12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
|
@@ -1,19 +1,751 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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fr">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Simulateur de Conduite Immersif</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 9 |
+
<style>
|
| 10 |
+
.vehicle-view {
|
| 11 |
+
transition: all 0.5s ease;
|
| 12 |
+
transform-style: preserve-3d;
|
| 13 |
+
}
|
| 14 |
+
.view-btn.active {
|
| 15 |
+
background-color: #3b82f6;
|
| 16 |
+
color: white;
|
| 17 |
+
}
|
| 18 |
+
.sound-wave {
|
| 19 |
+
animation: wave 1.5s infinite ease-in-out;
|
| 20 |
+
}
|
| 21 |
+
@keyframes wave {
|
| 22 |
+
0%, 100% { height: 20px; }
|
| 23 |
+
50% { height: 40px; }
|
| 24 |
+
}
|
| 25 |
+
#dashboard-view {
|
| 26 |
+
perspective: 1000px;
|
| 27 |
+
}
|
| 28 |
+
.dashboard-element {
|
| 29 |
+
transform: rotateX(20deg);
|
| 30 |
+
}
|
| 31 |
+
.first-person-view {
|
| 32 |
+
background: radial-gradient(circle, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.8) 100%);
|
| 33 |
+
}
|
| 34 |
+
.vehicle-selection:hover .vehicle-overlay {
|
| 35 |
+
opacity: 1;
|
| 36 |
+
}
|
| 37 |
+
.vehicle-overlay {
|
| 38 |
+
transition: opacity 0.3s ease;
|
| 39 |
+
}
|
| 40 |
+
</style>
|
| 41 |
+
</head>
|
| 42 |
+
<body class="bg-gray-900 text-white font-sans overflow-x-hidden">
|
| 43 |
+
<!-- Header -->
|
| 44 |
+
<header class="bg-black py-4 px-6 shadow-lg">
|
| 45 |
+
<div class="container mx-auto flex justify-between items-center">
|
| 46 |
+
<div class="flex items-center space-x-2">
|
| 47 |
+
<i class="fas fa-car text-blue-500 text-2xl"></i>
|
| 48 |
+
<h1 class="text-2xl font-bold">Drive<span class="text-blue-500">Sim</span></h1>
|
| 49 |
+
</div>
|
| 50 |
+
<nav class="hidden md:flex space-x-6">
|
| 51 |
+
<a href="#" class="hover:text-blue-400">Accueil</a>
|
| 52 |
+
<a href="#" class="hover:text-blue-400">Véhicules</a>
|
| 53 |
+
<a href="#" class="hover:text-blue-400">Circuits</a>
|
| 54 |
+
<a href="#" class="hover:text-blue-400">Multijoueur</a>
|
| 55 |
+
<a href="#" class="hover:text-blue-400">Galerie</a>
|
| 56 |
+
</nav>
|
| 57 |
+
<div class="flex items-center space-x-4">
|
| 58 |
+
<button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-md">
|
| 59 |
+
<i class="fas fa-user mr-2"></i>Connexion
|
| 60 |
+
</button>
|
| 61 |
+
<button class="md:hidden text-xl">
|
| 62 |
+
<i class="fas fa-bars"></i>
|
| 63 |
+
</button>
|
| 64 |
+
</div>
|
| 65 |
+
</div>
|
| 66 |
+
</header>
|
| 67 |
+
|
| 68 |
+
<!-- Main Content -->
|
| 69 |
+
<main class="container mx-auto px-4 py-8">
|
| 70 |
+
<!-- Vehicle Selection -->
|
| 71 |
+
<section class="mb-12">
|
| 72 |
+
<h2 class="text-3xl font-bold mb-6 text-center">Choisissez votre véhicule</h2>
|
| 73 |
+
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4">
|
| 74 |
+
<!-- Audi RS6 -->
|
| 75 |
+
<div class="vehicle-selection relative bg-gray-800 rounded-lg overflow-hidden cursor-pointer transition-transform hover:scale-105" onclick="selectVehicle('audi-rs6')">
|
| 76 |
+
<img src="https://www.audi.fr/content/dam/nemo/models/rs/rs6-avant/audi-rs6-avant-c8-2020/1920x1080/1920x1080-rs6-avant-c8-2020_1.jpg" alt="Audi RS6" class="w-full h-40 object-cover">
|
| 77 |
+
<div class="p-4">
|
| 78 |
+
<h3 class="font-bold">Audi RS6</h4>
|
| 79 |
+
<p class="text-gray-400 text-sm">4.0L V8 Twin-Turbo - 600ch</p>
|
| 80 |
+
</div>
|
| 81 |
+
<div class="vehicle-overlay absolute inset-0 bg-black bg-opacity-60 opacity-0 flex items-center justify-center">
|
| 82 |
+
<span class="bg-blue-600 px-4 py-2 rounded-md">Sélectionner</span>
|
| 83 |
+
</div>
|
| 84 |
+
</div>
|
| 85 |
+
|
| 86 |
+
<!-- Audi RS3 -->
|
| 87 |
+
<div class="vehicle-selection relative bg-gray-800 rounded-lg overflow-hidden cursor-pointer transition-transform hover:scale-105" onclick="selectVehicle('audi-rs3')">
|
| 88 |
+
<img src="https://www.audi.fr/content/dam/nemo/models/rs/rs3-sportback/audi-rs3-sportback-8y-2021/1920x1080/1920x1080-rs3-sportback-8y-2021_1.jpg" alt="Audi RS3" class="w-full h-40 object-cover">
|
| 89 |
+
<div class="p-4">
|
| 90 |
+
<h3 class="font-bold">Audi RS3</h4>
|
| 91 |
+
<p class="text-gray-400 text-sm">2.5L 5cyl Turbo - 400ch</p>
|
| 92 |
+
</div>
|
| 93 |
+
<div class="vehicle-overlay absolute inset-0 bg-black bg-opacity-60 opacity-0 flex items-center justify-center">
|
| 94 |
+
<span class="bg-blue-600 px-4 py-2 rounded-md">Sélectionner</span>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
|
| 98 |
+
<!-- Renault R5 -->
|
| 99 |
+
<div class="vehicle-selection relative bg-gray-800 rounded-lg overflow-hidden cursor-pointer transition-transform hover:scale-105" onclick="selectVehicle('renault-r5')">
|
| 100 |
+
<img src="https://www.largus.fr/images/images/renault-5-turbo-2-01.jpg" alt="Renault R5" class="w-full h-40 object-cover">
|
| 101 |
+
<div class="p-4">
|
| 102 |
+
<h3 class="font-bold">Renault R5 Turbo</h4>
|
| 103 |
+
<p class="text-gray-400 text-sm">1.4L Turbo - 160ch</p>
|
| 104 |
+
</div>
|
| 105 |
+
<div class="vehicle-overlay absolute inset-0 bg-black bg-opacity-60 opacity-0 flex items-center justify-center">
|
| 106 |
+
<span class="bg-blue-600 px-4 py-2 rounded-md">Sélectionner</span>
|
| 107 |
+
</div>
|
| 108 |
+
</div>
|
| 109 |
+
|
| 110 |
+
<!-- Renault Mégane RS -->
|
| 111 |
+
<div class="vehicle-selection relative bg-gray-800 rounded-lg overflow-hidden cursor-pointer transition-transform hover:scale-105" onclick="selectVehicle('renault-megane-rs')">
|
| 112 |
+
<img src="https://www.renault.fr/content/dam/renault/fr/vehicules-particuliers/megane/megane-rs-ultime/renault-megane-rs-ultime-gris-nacardo.jpg" alt="Renault Mégane RS" class="w-full h-40 object-cover">
|
| 113 |
+
<div class="p-4">
|
| 114 |
+
<h3 class="font-bold">Renault Mégane RS</h4>
|
| 115 |
+
<p class="text-gray-400 text-sm">1.8L Turbo - 300ch</p>
|
| 116 |
+
</div>
|
| 117 |
+
<div class="vehicle-overlay absolute inset-0 bg-black bg-opacity-60 opacity-0 flex items-center justify-center">
|
| 118 |
+
<span class="bg-blue-600 px-4 py-2 rounded-md">Sélectionner</span>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
|
| 122 |
+
<!-- Subaru WRX STI -->
|
| 123 |
+
<div class="vehicle-selection relative bg-gray-800 rounded-lg overflow-hidden cursor-pointer transition-transform hover:scale-105" onclick="selectVehicle('subaru-wrx-sti')">
|
| 124 |
+
<img src="https://www.subaru.fr/content/dam/subaru_new/france/vehicles/wrx-sti/overview/Subaru_WRX_STI_hero.jpg" alt="Subaru WRX STI" class="w-full h-40 object-cover">
|
| 125 |
+
<div class="p-4">
|
| 126 |
+
<h3 class="font-bold">Subaru WRX STI</h4>
|
| 127 |
+
<p class="text-gray-400 text-sm">2.5L Turbo - 310ch</p>
|
| 128 |
+
</div>
|
| 129 |
+
<div class="vehicle-overlay absolute inset-0 bg-black bg-opacity-60 opacity-0 flex items-center justify-center">
|
| 130 |
+
<span class="bg-blue-600 px-4 py-2 rounded-md">Sélectionner</span>
|
| 131 |
+
</div>
|
| 132 |
+
</div>
|
| 133 |
+
|
| 134 |
+
<!-- Mercedes AMG GT -->
|
| 135 |
+
<div class="vehicle-selection relative bg-gray-800 rounded-lg overflow-hidden cursor-pointer transition-transform hover:scale-105" onclick="selectVehicle('mercedes-amg-gt')">
|
| 136 |
+
<img src="https://www.mercedes-benz.fr/content/dam/global-vehicles/mb-passenger-cars/fr_FR/amg-gt/amg-gt-coupe-c190/overview/amg-gt-coupe-c190-overview-01.jpg" alt="Mercedes AMG GT" class="w-full h-40 object-cover">
|
| 137 |
+
<div class="p-4">
|
| 138 |
+
<h3 class="font-bold">Mercedes AMG GT</h4>
|
| 139 |
+
<p class="text-gray-400 text-sm">4.0L V8 Biturbo - 523ch</p>
|
| 140 |
+
</div>
|
| 141 |
+
<div class="vehicle-overlay absolute inset-0 bg-black bg-opacity-60 opacity-0 flex items-center justify-center">
|
| 142 |
+
<span class="bg-blue-600 px-4 py-2 rounded-md">Sélectionner</span>
|
| 143 |
+
</div>
|
| 144 |
+
</div>
|
| 145 |
+
|
| 146 |
+
<!-- Yamaha YZF-R6 -->
|
| 147 |
+
<div class="vehicle-selection relative bg-gray-800 rounded-lg overflow-hidden cursor-pointer transition-transform hover:scale-105" onclick="selectVehicle('yamaha-r6')">
|
| 148 |
+
<img src="https://www.yamaha-motor.eu/fr/products/motos/supersport/yzf-r6/images/gallery/yzf-r6-2020-gallery-01.jpg" alt="Yamaha YZF-R6" class="w-full h-40 object-cover">
|
| 149 |
+
<div class="p-4">
|
| 150 |
+
<h3 class="font-bold">Yamaha YZF-R6</h4>
|
| 151 |
+
<p class="text-gray-400 text-sm">600cc - 118ch</p>
|
| 152 |
+
</div>
|
| 153 |
+
<div class="vehicle-overlay absolute inset-0 bg-black bg-opacity-60 opacity-0 flex items-center justify-center">
|
| 154 |
+
<span class="bg-blue-600 px-4 py-2 rounded-md">Sélectionner</span>
|
| 155 |
+
</div>
|
| 156 |
+
</div>
|
| 157 |
+
|
| 158 |
+
<!-- Scania R770 -->
|
| 159 |
+
<div class="vehicle-selection relative bg-gray-800 rounded-lg overflow-hidden cursor-pointer transition-transform hover:scale-105" onclick="selectVehicle('scania-r770')">
|
| 160 |
+
<img src="https://www.scania.com/content/dam/scanianoe/market/master/homepage/scania-r-series/scania-r-series-770-s-5-series-16-litre-v8-engine.jpg" alt="Scania R770" class="w-full h-40 object-cover">
|
| 161 |
+
<div class="p-4">
|
| 162 |
+
<h3 class="font-bold">Scania R770</h4>
|
| 163 |
+
<p class="text-gray-400 text-sm">16.4L V8 - 770ch</p>
|
| 164 |
+
</div>
|
| 165 |
+
<div class="vehicle-overlay absolute inset-0 bg-black bg-opacity-60 opacity-0 flex items-center justify-center">
|
| 166 |
+
<span class="bg-blue-600 px-4 py-2 rounded-md">Sélectionner</span>
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
|
| 170 |
+
<!-- Volvo B8RLE -->
|
| 171 |
+
<div class="vehicle-selection relative bg-gray-800 rounded-lg overflow-hidden cursor-pointer transition-transform hover:scale-105" onclick="selectVehicle('volvo-b8rle')">
|
| 172 |
+
<img src="https://www.volvobuses.com/content/dam/volvo/volvo-buses/markets/global/en-en/news/2019/volvo-7900-electric/volvo-7900-electric-1920x1080.jpg" alt="Volvo B8RLE" class="w-full h-40 object-cover">
|
| 173 |
+
<div class="p-4">
|
| 174 |
+
<h3 class="font-bold">Volvo B8RLE</h4>
|
| 175 |
+
<p class="text-gray-400 text-sm">7.7L I6 - 350ch</p>
|
| 176 |
+
</div>
|
| 177 |
+
<div class="vehicle-overlay absolute inset-0 bg-black bg-opacity-60 opacity-0 flex items-center justify-center">
|
| 178 |
+
<span class="bg-blue-600 px-4 py-2 rounded-md">Sélectionner</span>
|
| 179 |
+
</div>
|
| 180 |
+
</div>
|
| 181 |
+
</div>
|
| 182 |
+
</section>
|
| 183 |
+
|
| 184 |
+
<!-- Simulation Area -->
|
| 185 |
+
<section class="bg-gray-800 rounded-xl p-6 mb-8">
|
| 186 |
+
<div class="flex flex-col md:flex-row justify-between items-center mb-6">
|
| 187 |
+
<h2 class="text-2xl font-bold" id="selected-vehicle-name">Aucun véhicule sélectionné</h2>
|
| 188 |
+
<div class="flex space-x-2 mt-4 md:mt-0">
|
| 189 |
+
<button class="bg-gray-700 hover:bg-gray-600 px-4 py-2 rounded-md">
|
| 190 |
+
<i class="fas fa-sliders-h mr-2"></i>Paramètres
|
| 191 |
+
</button>
|
| 192 |
+
<button class="bg-blue-600 hover:bg-blue-700 px-4 py-2 rounded-md">
|
| 193 |
+
<i class="fas fa-play mr-2"></i>Démarrer
|
| 194 |
+
</button>
|
| 195 |
+
</div>
|
| 196 |
+
</div>
|
| 197 |
+
|
| 198 |
+
<!-- View Selector -->
|
| 199 |
+
<div class="flex justify-center space-x-2 mb-6">
|
| 200 |
+
<button class="view-btn px-4 py-2 rounded-md bg-gray-700 hover:bg-gray-600" onclick="changeView('exterior')">
|
| 201 |
+
<i class="fas fa-car mr-2"></i>Extérieur
|
| 202 |
+
</button>
|
| 203 |
+
<button class="view-btn px-4 py-2 rounded-md bg-gray-700 hover:bg-gray-600" onclick="changeView('interior')">
|
| 204 |
+
<i class="fas fa-chair mr-2"></i>Intérieur
|
| 205 |
+
</button>
|
| 206 |
+
<button class="view-btn px-4 py-2 rounded-md bg-gray-700 hover:bg-gray-600" onclick="changeView('dashboard')">
|
| 207 |
+
<i class="fas fa-tachometer-alt mr-2"></i>Tableau de bord
|
| 208 |
+
</button>
|
| 209 |
+
<button class="view-btn px-4 py-2 rounded-md bg-gray-700 hover:bg-gray-600" onclick="changeView('first-person')">
|
| 210 |
+
<i class="fas fa-eye mr-2"></i>1ère personne
|
| 211 |
+
</button>
|
| 212 |
+
</div>
|
| 213 |
+
|
| 214 |
+
<!-- Vehicle Display -->
|
| 215 |
+
<div class="relative bg-gray-900 rounded-lg overflow-hidden h-96 flex items-center justify-center">
|
| 216 |
+
<!-- Exterior View -->
|
| 217 |
+
<div id="exterior-view" class="vehicle-view absolute inset-0 flex items-center justify-center p-8">
|
| 218 |
+
<div class="text-center">
|
| 219 |
+
<i class="fas fa-car text-8xl text-gray-600 mb-4"></i>
|
| 220 |
+
<p class="text-gray-400">Vue extérieure du véhicule</p>
|
| 221 |
+
</div>
|
| 222 |
+
</div>
|
| 223 |
+
|
| 224 |
+
<!-- Interior View -->
|
| 225 |
+
<div id="interior-view" class="vehicle-view absolute inset-0 hidden">
|
| 226 |
+
<div class="text-center w-full h-full flex items-center justify-center">
|
| 227 |
+
<div>
|
| 228 |
+
<i class="fas fa-chair text-8xl text-gray-600 mb-4"></i>
|
| 229 |
+
<p class="text-gray-400">Vue intérieure du véhicule</p>
|
| 230 |
+
</div>
|
| 231 |
+
</div>
|
| 232 |
+
</div>
|
| 233 |
+
|
| 234 |
+
<!-- Dashboard View -->
|
| 235 |
+
<div id="dashboard-view" class="vehicle-view absolute inset-0 hidden">
|
| 236 |
+
<div class="dashboard-element bg-gray-800 rounded-xl p-6 w-3/4 mx-auto h-64 mt-12 shadow-lg">
|
| 237 |
+
<div class="flex h-full">
|
| 238 |
+
<div class="w-1/2 border-r border-gray-700 pr-4">
|
| 239 |
+
<div class="bg-blue-900 rounded-full w-24 h-24 mx-auto mb-4 flex items-center justify-center">
|
| 240 |
+
<span class="text-2xl font-bold" id="speed-display">0</span>
|
| 241 |
+
</div>
|
| 242 |
+
<div class="text-center text-sm text-gray-400">km/h</div>
|
| 243 |
+
</div>
|
| 244 |
+
<div class="w-1/2 pl-4">
|
| 245 |
+
<div class="grid grid-cols-2 gap-4">
|
| 246 |
+
<div class="bg-gray-700 rounded p-2 text-center">
|
| 247 |
+
<div class="text-xs text-gray-400">RPM</div>
|
| 248 |
+
<div class="font-bold" id="rpm-display">0</div>
|
| 249 |
+
</div>
|
| 250 |
+
<div class="bg-gray-700 rounded p-2 text-center">
|
| 251 |
+
<div class="text-xs text-gray-400">Temp</div>
|
| 252 |
+
<div class="font-bold">90°C</div>
|
| 253 |
+
</div>
|
| 254 |
+
<div class="bg-gray-700 rounded p-2 text-center">
|
| 255 |
+
<div class="text-xs text-gray-400">Essence</div>
|
| 256 |
+
<div class="font-bold">85%</div>
|
| 257 |
+
</div>
|
| 258 |
+
<div class="bg-gray-700 rounded p-2 text-center">
|
| 259 |
+
<div class="text-xs text-gray-400">Mode</div>
|
| 260 |
+
<div class="font-bold text-blue-400">Sport</div>
|
| 261 |
+
</div>
|
| 262 |
+
</div>
|
| 263 |
+
</div>
|
| 264 |
+
</div>
|
| 265 |
+
</div>
|
| 266 |
+
</div>
|
| 267 |
+
|
| 268 |
+
<!-- First Person View -->
|
| 269 |
+
<div id="first-person-view" class="vehicle-view absolute inset-0 hidden first-person-view">
|
| 270 |
+
<div class="w-full h-full flex flex-col justify-between p-6">
|
| 271 |
+
<div class="flex justify-between">
|
| 272 |
+
<div class="bg-black bg-opacity-50 rounded-full w-16 h-16 flex items-center justify-center">
|
| 273 |
+
<span class="text-xl font-bold" id="fp-speed">0</span>
|
| 274 |
+
</div>
|
| 275 |
+
<div class="bg-black bg-opacity-50 rounded-full w-16 h-16 flex items-center justify-center">
|
| 276 |
+
<span class="text-xl font-bold" id="fp-rpm">0</span>
|
| 277 |
+
</div>
|
| 278 |
+
</div>
|
| 279 |
+
<div class="flex justify-center mb-8">
|
| 280 |
+
<div class="bg-black bg-opacity-50 rounded-lg p-2">
|
| 281 |
+
<div class="w-64 h-1 bg-gray-600 mb-1"></div>
|
| 282 |
+
<div class="w-64 h-1 bg-gray-600 mb-1"></div>
|
| 283 |
+
<div class="w-64 h-1 bg-gray-600"></div>
|
| 284 |
+
</div>
|
| 285 |
+
</div>
|
| 286 |
+
</div>
|
| 287 |
+
</div>
|
| 288 |
+
|
| 289 |
+
<!-- No Vehicle Selected -->
|
| 290 |
+
<div id="no-vehicle" class="text-center">
|
| 291 |
+
<i class="fas fa-car text-8xl text-gray-600 mb-4"></i>
|
| 292 |
+
<p class="text-gray-400">Sélectionnez un véhicule pour commencer</p>
|
| 293 |
+
</div>
|
| 294 |
+
</div>
|
| 295 |
+
|
| 296 |
+
<!-- Sound and Controls -->
|
| 297 |
+
<div class="mt-6 grid grid-cols-1 md:grid-cols-2 gap-6">
|
| 298 |
+
<div class="bg-gray-700 rounded-lg p-4">
|
| 299 |
+
<h3 class="font-bold mb-2">Son du moteur</h3>
|
| 300 |
+
<div class="flex items-center space-x-2">
|
| 301 |
+
<div class="sound-wave w-2 h-6 bg-blue-500 rounded"></div>
|
| 302 |
+
<div class="sound-wave w-2 h-8 bg-blue-500 rounded"></div>
|
| 303 |
+
<div class="sound-wave w-2 h-10 bg-blue-500 rounded"></div>
|
| 304 |
+
<div class="sound-wave w-2 h-8 bg-blue-500 rounded"></div>
|
| 305 |
+
<div class="sound-wave w-2 h-6 bg-blue-500 rounded"></div>
|
| 306 |
+
</div>
|
| 307 |
+
<div class="mt-4 flex justify-between">
|
| 308 |
+
<span class="text-sm text-gray-400">Silencieux</span>
|
| 309 |
+
<span class="text-sm text-gray-400">Sport</span>
|
| 310 |
+
</div>
|
| 311 |
+
<input type="range" class="w-full mt-2" id="engine-sound">
|
| 312 |
+
</div>
|
| 313 |
+
|
| 314 |
+
<div class="bg-gray-700 rounded-lg p-4">
|
| 315 |
+
<h3 class="font-bold mb-2">Contrôles</h3>
|
| 316 |
+
<div class="grid grid-cols-3 gap-2">
|
| 317 |
+
<button class="bg-gray-600 hover:bg-gray-500 p-2 rounded">
|
| 318 |
+
<i class="fas fa-arrow-up"></i>
|
| 319 |
+
</button>
|
| 320 |
+
<button class="bg-gray-600 hover:bg-gray-500 p-2 rounded">
|
| 321 |
+
<i class="fas fa-arrow-down"></i>
|
| 322 |
+
</button>
|
| 323 |
+
<button class="bg-gray-600 hover:bg-gray-500 p-2 rounded">
|
| 324 |
+
<i class="fas fa-hand-paper"></i>
|
| 325 |
+
</button>
|
| 326 |
+
<button class="bg-gray-600 hover:bg-gray-500 p-2 rounded">
|
| 327 |
+
<i class="fas fa-arrow-left"></i>
|
| 328 |
+
</button>
|
| 329 |
+
<button class="bg-gray-600 hover:bg-gray-500 p-2 rounded">
|
| 330 |
+
<i class="fas fa-arrow-right"></i>
|
| 331 |
+
</button>
|
| 332 |
+
<button class="bg-gray-600 hover:bg-gray-500 p-2 rounded">
|
| 333 |
+
<i class="fas fa-undo"></i>
|
| 334 |
+
</button>
|
| 335 |
+
</div>
|
| 336 |
+
</div>
|
| 337 |
+
</div>
|
| 338 |
+
</section>
|
| 339 |
+
|
| 340 |
+
<!-- Vehicle Specs -->
|
| 341 |
+
<section id="vehicle-specs" class="hidden">
|
| 342 |
+
<h2 class="text-2xl font-bold mb-4">Caractéristiques techniques</h2>
|
| 343 |
+
<div class="bg-gray-800 rounded-lg p-6">
|
| 344 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 345 |
+
<div>
|
| 346 |
+
<h3 class="font-bold text-lg mb-2">Performances</h3>
|
| 347 |
+
<ul class="space-y-2">
|
| 348 |
+
<li class="flex justify-between border-b border-gray-700 pb-1">
|
| 349 |
+
<span class="text-gray-400">Puissance</span>
|
| 350 |
+
<span class="font-bold" id="spec-power">-</span>
|
| 351 |
+
</li>
|
| 352 |
+
<li class="flex justify-between border-b border-gray-700 pb-1">
|
| 353 |
+
<span class="text-gray-400">Couple</span>
|
| 354 |
+
<span class="font-bold" id="spec-torque">-</span>
|
| 355 |
+
</li>
|
| 356 |
+
<li class="flex justify-between border-b border-gray-700 pb-1">
|
| 357 |
+
<span class="text-gray-400">0-100 km/h</span>
|
| 358 |
+
<span class="font-bold" id="spec-acceleration">-</span>
|
| 359 |
+
</li>
|
| 360 |
+
<li class="flex justify-between border-b border-gray-700 pb-1">
|
| 361 |
+
<span class="text-gray-400">Vitesse max</span>
|
| 362 |
+
<span class="font-bold" id="spec-top-speed">-</span>
|
| 363 |
+
</li>
|
| 364 |
+
</ul>
|
| 365 |
+
</div>
|
| 366 |
+
<div>
|
| 367 |
+
<h3 class="font-bold text-lg mb-2">Mécanique</h3>
|
| 368 |
+
<ul class="space-y-2">
|
| 369 |
+
<li class="flex justify-between border-b border-gray-700 pb-1">
|
| 370 |
+
<span class="text-gray-400">Moteur</span>
|
| 371 |
+
<span class="font-bold" id="spec-engine">-</span>
|
| 372 |
+
</li>
|
| 373 |
+
<li class="flex justify-between border-b border-gray-700 pb-1">
|
| 374 |
+
<span class="text-gray-400">Transmission</span>
|
| 375 |
+
<span class="font-bold" id="spec-transmission">-</span>
|
| 376 |
+
</li>
|
| 377 |
+
<li class="flex justify-between border-b border-gray-700 pb-1">
|
| 378 |
+
<span class="text-gray-400">Traction</span>
|
| 379 |
+
<span class="font-bold" id="spec-drive">-</span>
|
| 380 |
+
</li>
|
| 381 |
+
<li class="flex justify-between border-b border-gray-700 pb-1">
|
| 382 |
+
<span class="text-gray-400">Poids</span>
|
| 383 |
+
<span class="font-bold" id="spec-weight">-</span>
|
| 384 |
+
</li>
|
| 385 |
+
</ul>
|
| 386 |
+
</div>
|
| 387 |
+
<div>
|
| 388 |
+
<h3 class="font-bold text-lg mb-2">Dimensions</h3>
|
| 389 |
+
<ul class="space-y-2">
|
| 390 |
+
<li class="flex justify-between border-b border-gray-700 pb-1">
|
| 391 |
+
<span class="text-gray-400">Longueur</span>
|
| 392 |
+
<span class="font-bold" id="spec-length">-</span>
|
| 393 |
+
</li>
|
| 394 |
+
<li class="flex justify-between border-b border-gray-700 pb-1">
|
| 395 |
+
<span class="text-gray-400">Largeur</span>
|
| 396 |
+
<span class="font-bold" id="spec-width">-</span>
|
| 397 |
+
</li>
|
| 398 |
+
<li class="flex justify-between border-b border-gray-700 pb-1">
|
| 399 |
+
<span class="text-gray-400">Hauteur</span>
|
| 400 |
+
<span class="font-bold" id="spec-height">-</span>
|
| 401 |
+
</li>
|
| 402 |
+
<li class="flex justify-between border-b border-gray-700 pb-1">
|
| 403 |
+
<span class="text-gray-400">Empattement</span>
|
| 404 |
+
<span class="font-bold" id="spec-wheelbase">-</span>
|
| 405 |
+
</li>
|
| 406 |
+
</ul>
|
| 407 |
+
</div>
|
| 408 |
+
</div>
|
| 409 |
+
</div>
|
| 410 |
+
</section>
|
| 411 |
+
|
| 412 |
+
<!-- Driving Options -->
|
| 413 |
+
<section class="mt-12">
|
| 414 |
+
<h2 class="text-2xl font-bold mb-6">Options de conduite</h2>
|
| 415 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-6">
|
| 416 |
+
<div class="bg-gray-800 rounded-lg p-6 hover:bg-gray-700 transition-colors cursor-pointer">
|
| 417 |
+
<div class="flex items-center mb-4">
|
| 418 |
+
<div class="bg-blue-600 rounded-full w-10 h-10 flex items-center justify-center mr-4">
|
| 419 |
+
<i class="fas fa-road"></i>
|
| 420 |
+
</div>
|
| 421 |
+
<h3 class="font-bold text-lg">Mode Route</h3>
|
| 422 |
+
</div>
|
| 423 |
+
<p class="text-gray-400">Conduite urbaine et autoroutière avec trafic réaliste et conditions variables.</p>
|
| 424 |
+
</div>
|
| 425 |
+
<div class="bg-gray-800 rounded-lg p-6 hover:bg-gray-700 transition-colors cursor-pointer">
|
| 426 |
+
<div class="flex items-center mb-4">
|
| 427 |
+
<div class="bg-red-600 rounded-full w-10 h-10 flex items-center justify-center mr-4">
|
| 428 |
+
<i class="fas fa-flag-checkered"></i>
|
| 429 |
+
</div>
|
| 430 |
+
<h3 class="font-bold text-lg">Mode Course</h3>
|
| 431 |
+
</div>
|
| 432 |
+
<p class="text-gray-400">Circuit fermé avec chronométrage, meilleurs tours et adversaires IA.</p>
|
| 433 |
+
</div>
|
| 434 |
+
<div class="bg-gray-800 rounded-lg p-6 hover:bg-gray-700 transition-colors cursor-pointer">
|
| 435 |
+
<div class="flex items-center mb-4">
|
| 436 |
+
<div class="bg-yellow-600 rounded-full w-10 h-10 flex items-center justify-center mr-4">
|
| 437 |
+
<i class="fas fa-car-crash"></i>
|
| 438 |
+
</div>
|
| 439 |
+
<h3 class="font-bold text-lg">Mode Drift</h3>
|
| 440 |
+
</div>
|
| 441 |
+
<p class="text-gray-400">Parcours spécial drift avec système de notation des dérapages.</p>
|
| 442 |
+
</div>
|
| 443 |
+
</div>
|
| 444 |
+
</section>
|
| 445 |
+
</main>
|
| 446 |
+
|
| 447 |
+
<!-- Footer -->
|
| 448 |
+
<footer class="bg-black py-8 px-6 mt-12">
|
| 449 |
+
<div class="container mx-auto">
|
| 450 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
| 451 |
+
<div>
|
| 452 |
+
<h3 class="font-bold text-lg mb-4">DriveSim</h3>
|
| 453 |
+
<p class="text-gray-400">Le simulateur de conduite le plus immersif et réaliste.</p>
|
| 454 |
+
</div>
|
| 455 |
+
<div>
|
| 456 |
+
<h3 class="font-bold text-lg mb-4">Navigation</h3>
|
| 457 |
+
<ul class="space-y-2">
|
| 458 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Accueil</a></li>
|
| 459 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Véhicules</a></li>
|
| 460 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Circuits</a></li>
|
| 461 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Multijoueur</a></li>
|
| 462 |
+
</ul>
|
| 463 |
+
</div>
|
| 464 |
+
<div>
|
| 465 |
+
<h3 class="font-bold text-lg mb-4">Support</h3>
|
| 466 |
+
<ul class="space-y-2">
|
| 467 |
+
<li><a href="#" class="text-gray-400 hover:text-white">FAQ</a></li>
|
| 468 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Tutoriels</a></li>
|
| 469 |
+
<li><a href="#" class="text-gray-400 hover:text-white">Contact</a></li>
|
| 470 |
+
</ul>
|
| 471 |
+
</div>
|
| 472 |
+
<div>
|
| 473 |
+
<h3 class="font-bold text-lg mb-4">Réseaux sociaux</h3>
|
| 474 |
+
<div class="flex space-x-4">
|
| 475 |
+
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-facebook"></i></a>
|
| 476 |
+
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-twitter"></i></a>
|
| 477 |
+
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-instagram"></i></a>
|
| 478 |
+
<a href="#" class="text-gray-400 hover:text-white text-xl"><i class="fab fa-youtube"></i></a>
|
| 479 |
+
</div>
|
| 480 |
+
</div>
|
| 481 |
+
</div>
|
| 482 |
+
<div class="border-t border-gray-800 mt-8 pt-8 text-center text-gray-400">
|
| 483 |
+
<p>© 2023 DriveSim. Tous droits réservés.</p>
|
| 484 |
+
</div>
|
| 485 |
+
</div>
|
| 486 |
+
</footer>
|
| 487 |
+
|
| 488 |
+
<script>
|
| 489 |
+
// Vehicle data
|
| 490 |
+
const vehicles = {
|
| 491 |
+
'audi-rs6': {
|
| 492 |
+
name: 'Audi RS6 Avant',
|
| 493 |
+
power: '600 ch',
|
| 494 |
+
torque: '800 Nm',
|
| 495 |
+
acceleration: '3.6 s',
|
| 496 |
+
topSpeed: '305 km/h',
|
| 497 |
+
engine: '4.0L V8 Twin-Turbo',
|
| 498 |
+
transmission: '8 rapports Tiptronic',
|
| 499 |
+
drive: 'Intégrale Quattro',
|
| 500 |
+
weight: '2075 kg',
|
| 501 |
+
length: '4.99 m',
|
| 502 |
+
width: '1.95 m',
|
| 503 |
+
height: '1.46 m',
|
| 504 |
+
wheelbase: '2.93 m'
|
| 505 |
+
},
|
| 506 |
+
'audi-rs3': {
|
| 507 |
+
name: 'Audi RS3 Sportback',
|
| 508 |
+
power: '400 ch',
|
| 509 |
+
torque: '500 Nm',
|
| 510 |
+
acceleration: '3.8 s',
|
| 511 |
+
topSpeed: '290 km/h',
|
| 512 |
+
engine: '2.5L 5cyl Turbo',
|
| 513 |
+
transmission: '7 rapports S-Tronic',
|
| 514 |
+
drive: 'Intégrale Quattro',
|
| 515 |
+
weight: '1595 kg',
|
| 516 |
+
length: '4.34 m',
|
| 517 |
+
width: '1.82 m',
|
| 518 |
+
height: '1.43 m',
|
| 519 |
+
wheelbase: '2.63 m'
|
| 520 |
+
},
|
| 521 |
+
'renault-r5': {
|
| 522 |
+
name: 'Renault R5 Turbo',
|
| 523 |
+
power: '160 ch',
|
| 524 |
+
torque: '221 Nm',
|
| 525 |
+
acceleration: '6.9 s',
|
| 526 |
+
topSpeed: '220 km/h',
|
| 527 |
+
engine: '1.4L Turbo',
|
| 528 |
+
transmission: '5 rapports manuelle',
|
| 529 |
+
drive: 'Propulsion',
|
| 530 |
+
weight: '970 kg',
|
| 531 |
+
length: '3.62 m',
|
| 532 |
+
width: '1.75 m',
|
| 533 |
+
height: '1.32 m',
|
| 534 |
+
wheelbase: '2.43 m'
|
| 535 |
+
},
|
| 536 |
+
'renault-megane-rs': {
|
| 537 |
+
name: 'Renault Mégane RS Trophy',
|
| 538 |
+
power: '300 ch',
|
| 539 |
+
torque: '420 Nm',
|
| 540 |
+
acceleration: '5.7 s',
|
| 541 |
+
topSpeed: '260 km/h',
|
| 542 |
+
engine: '1.8L Turbo',
|
| 543 |
+
transmission: '6 rapports EDC',
|
| 544 |
+
drive: 'Traction',
|
| 545 |
+
weight: '1432 kg',
|
| 546 |
+
length: '4.36 m',
|
| 547 |
+
width: '1.87 m',
|
| 548 |
+
height: '1.44 m',
|
| 549 |
+
wheelbase: '2.69 m'
|
| 550 |
+
},
|
| 551 |
+
'subaru-wrx-sti': {
|
| 552 |
+
name: 'Subaru WRX STI',
|
| 553 |
+
power: '310 ch',
|
| 554 |
+
torque: '422 Nm',
|
| 555 |
+
acceleration: '5.2 s',
|
| 556 |
+
topSpeed: '255 km/h',
|
| 557 |
+
engine: '2.5L Turbo Boxer',
|
| 558 |
+
transmission: '6 rapports manuelle',
|
| 559 |
+
drive: 'Intégrale',
|
| 560 |
+
weight: '1575 kg',
|
| 561 |
+
length: '4.59 m',
|
| 562 |
+
width: '1.80 m',
|
| 563 |
+
height: '1.47 m',
|
| 564 |
+
wheelbase: '2.65 m'
|
| 565 |
+
},
|
| 566 |
+
'mercedes-amg-gt': {
|
| 567 |
+
name: 'Mercedes-AMG GT R',
|
| 568 |
+
power: '585 ch',
|
| 569 |
+
torque: '700 Nm',
|
| 570 |
+
acceleration: '3.5 s',
|
| 571 |
+
topSpeed: '318 km/h',
|
| 572 |
+
engine: '4.0L V8 Biturbo',
|
| 573 |
+
transmission: '7 rapports DCT',
|
| 574 |
+
drive: 'Propulsion',
|
| 575 |
+
weight: '1555 kg',
|
| 576 |
+
length: '4.55 m',
|
| 577 |
+
width: '2.07 m',
|
| 578 |
+
height: '1.28 m',
|
| 579 |
+
wheelbase: '2.63 m'
|
| 580 |
+
},
|
| 581 |
+
'yamaha-r6': {
|
| 582 |
+
name: 'Yamaha YZF-R6',
|
| 583 |
+
power: '118 ch',
|
| 584 |
+
torque: '61.7 Nm',
|
| 585 |
+
acceleration: '3.2 s',
|
| 586 |
+
topSpeed: '262 km/h',
|
| 587 |
+
engine: '600cc 4cyl',
|
| 588 |
+
transmission: '6 rapports',
|
| 589 |
+
drive: 'Arrière',
|
| 590 |
+
weight: '190 kg',
|
| 591 |
+
length: '2.04 m',
|
| 592 |
+
width: '0.70 m',
|
| 593 |
+
height: '1.10 m',
|
| 594 |
+
wheelbase: '1.38 m'
|
| 595 |
+
},
|
| 596 |
+
'scania-r770': {
|
| 597 |
+
name: 'Scania R770 V8',
|
| 598 |
+
power: '770 ch',
|
| 599 |
+
torque: '3700 Nm',
|
| 600 |
+
acceleration: 'N/A',
|
| 601 |
+
topSpeed: '90 km/h',
|
| 602 |
+
engine: '16.4L V8',
|
| 603 |
+
transmission: '12 rapports',
|
| 604 |
+
drive: '6x4',
|
| 605 |
+
weight: '8800 kg',
|
| 606 |
+
length: '7.30 m',
|
| 607 |
+
width: '2.55 m',
|
| 608 |
+
height: '3.90 m',
|
| 609 |
+
wheelbase: '3.60 m'
|
| 610 |
+
},
|
| 611 |
+
'volvo-b8rle': {
|
| 612 |
+
name: 'Volvo B8RLE',
|
| 613 |
+
power: '350 ch',
|
| 614 |
+
torque: '1600 Nm',
|
| 615 |
+
acceleration: 'N/A',
|
| 616 |
+
topSpeed: '100 km/h',
|
| 617 |
+
engine: '7.7L I6',
|
| 618 |
+
transmission: 'Automatique',
|
| 619 |
+
drive: 'Arrière',
|
| 620 |
+
weight: '12500 kg',
|
| 621 |
+
length: '12.1 m',
|
| 622 |
+
width: '2.55 m',
|
| 623 |
+
height: '3.2 m',
|
| 624 |
+
wheelbase: '6.0 m'
|
| 625 |
+
}
|
| 626 |
+
};
|
| 627 |
+
|
| 628 |
+
// Current selected vehicle
|
| 629 |
+
let currentVehicle = null;
|
| 630 |
+
let currentView = 'exterior';
|
| 631 |
+
let speed = 0;
|
| 632 |
+
let rpm = 0;
|
| 633 |
+
let engineRunning = false;
|
| 634 |
+
|
| 635 |
+
// Select vehicle
|
| 636 |
+
function selectVehicle(vehicleId) {
|
| 637 |
+
currentVehicle = vehicleId;
|
| 638 |
+
document.getElementById('selected-vehicle-name').textContent = vehicles[vehicleId].name;
|
| 639 |
+
document.getElementById('no-vehicle').style.display = 'none';
|
| 640 |
+
document.getElementById('exterior-view').style.display = 'flex';
|
| 641 |
+
document.getElementById('interior-view').style.display = 'none';
|
| 642 |
+
document.getElementById('dashboard-view').style.display = 'none';
|
| 643 |
+
document.getElementById('first-person-view').style.display = 'none';
|
| 644 |
+
document.getElementById('vehicle-specs').style.display = 'block';
|
| 645 |
+
|
| 646 |
+
// Update specs
|
| 647 |
+
const vehicle = vehicles[vehicleId];
|
| 648 |
+
document.getElementById('spec-power').textContent = vehicle.power;
|
| 649 |
+
document.getElementById('spec-torque').textContent = vehicle.torque;
|
| 650 |
+
document.getElementById('spec-acceleration').textContent = vehicle.acceleration;
|
| 651 |
+
document.getElementById('spec-top-speed').textContent = vehicle.topSpeed;
|
| 652 |
+
document.getElementById('spec-engine').textContent = vehicle.engine;
|
| 653 |
+
document.getElementById('spec-transmission').textContent = vehicle.transmission;
|
| 654 |
+
document.getElementById('spec-drive').textContent = vehicle.drive;
|
| 655 |
+
document.getElementById('spec-weight').textContent = vehicle.weight;
|
| 656 |
+
document.getElementById('spec-length').textContent = vehicle.length;
|
| 657 |
+
document.getElementById('spec-width').textContent = vehicle.width;
|
| 658 |
+
document.getElementById('spec-height').textContent = vehicle.height;
|
| 659 |
+
document.getElementById('spec-wheelbase').textContent = vehicle.wheelbase;
|
| 660 |
+
|
| 661 |
+
// Reset view buttons
|
| 662 |
+
const viewButtons = document.querySelectorAll('.view-btn');
|
| 663 |
+
viewButtons.forEach(btn => {
|
| 664 |
+
btn.classList.remove('active');
|
| 665 |
+
if (btn.getAttribute('onclick').includes("'exterior'")) {
|
| 666 |
+
btn.classList.add('active');
|
| 667 |
+
}
|
| 668 |
+
});
|
| 669 |
+
|
| 670 |
+
currentView = 'exterior';
|
| 671 |
+
}
|
| 672 |
+
|
| 673 |
+
// Change view
|
| 674 |
+
function changeView(view) {
|
| 675 |
+
// Hide all views
|
| 676 |
+
document.getElementById('exterior-view').style.display = 'none';
|
| 677 |
+
document.getElementById('interior-view').style.display = 'none';
|
| 678 |
+
document.getElementById('dashboard-view').style.display = 'none';
|
| 679 |
+
document.getElementById('first-person-view').style.display = 'none';
|
| 680 |
+
|
| 681 |
+
// Show selected view
|
| 682 |
+
document.getElementById(`${view}-view`).style.display = 'flex';
|
| 683 |
+
|
| 684 |
+
// Update active button
|
| 685 |
+
const viewButtons = document.querySelectorAll('.view-btn');
|
| 686 |
+
viewButtons.forEach(btn => {
|
| 687 |
+
btn.classList.remove('active');
|
| 688 |
+
if (btn.getAttribute('onclick').includes(`'${view}'`)) {
|
| 689 |
+
btn.classList.add('active');
|
| 690 |
+
}
|
| 691 |
+
});
|
| 692 |
+
|
| 693 |
+
currentView = view;
|
| 694 |
+
|
| 695 |
+
// Start engine animation if dashboard or first person view
|
| 696 |
+
if ((view === 'dashboard' || view === 'first-person') && !engineRunning) {
|
| 697 |
+
startEngine();
|
| 698 |
+
}
|
| 699 |
+
}
|
| 700 |
+
|
| 701 |
+
// Engine simulation
|
| 702 |
+
function startEngine() {
|
| 703 |
+
engineRunning = true;
|
| 704 |
+
const engineSound = document.getElementById('engine-sound');
|
| 705 |
+
engineSound.value = 30;
|
| 706 |
+
|
| 707 |
+
// RPM and speed animation
|
| 708 |
+
const animate = () => {
|
| 709 |
+
if (!engineRunning) return;
|
| 710 |
+
|
| 711 |
+
// Random fluctuations
|
| 712 |
+
rpm = Math.min(8000, Math.max(1000, rpm + (Math.random() * 200 - 100)));
|
| 713 |
+
speed = Math.min(parseInt(vehicles[currentVehicle].topSpeed),
|
| 714 |
+
Math.max(0, speed + (Math.random() * 5 - 2.5)));
|
| 715 |
+
|
| 716 |
+
// Update displays
|
| 717 |
+
document.getElementById('speed-display').textContent = Math.floor(speed);
|
| 718 |
+
document.getElementById('rpm-display').textContent = Math.floor(rpm);
|
| 719 |
+
document.getElementById('fp-speed').textContent = Math.floor(speed);
|
| 720 |
+
document.getElementById('fp-rpm').textContent = Math.floor(rpm/1000).toFixed(1);
|
| 721 |
+
|
| 722 |
+
// Sound wave animation based on RPM
|
| 723 |
+
const waves = document.querySelectorAll('.sound-wave');
|
| 724 |
+
waves.forEach((wave, index) => {
|
| 725 |
+
const waveHeight = 20 + (rpm / 8000 * 30) + (Math.random() * 10);
|
| 726 |
+
wave.style.height = `${waveHeight}px`;
|
| 727 |
+
wave.style.backgroundColor = rpm > 7000 ? '#ef4444' : '#3b82f6';
|
| 728 |
+
});
|
| 729 |
+
|
| 730 |
+
requestAnimationFrame(animate);
|
| 731 |
+
};
|
| 732 |
+
|
| 733 |
+
animate();
|
| 734 |
+
}
|
| 735 |
+
|
| 736 |
+
// Event listeners
|
| 737 |
+
document.getElementById('engine-sound').addEventListener('input', function() {
|
| 738 |
+
const waves = document.querySelectorAll('.sound-wave');
|
| 739 |
+
waves.forEach(wave => {
|
| 740 |
+
wave.style.height = `${20 + (this.value / 100 * 30)}px`;
|
| 741 |
+
});
|
| 742 |
+
});
|
| 743 |
+
|
| 744 |
+
// Initialize
|
| 745 |
+
document.querySelectorAll('.vehicle-view').forEach(view => {
|
| 746 |
+
view.style.display = 'none';
|
| 747 |
+
});
|
| 748 |
+
document.getElementById('no-vehicle').style.display = 'block';
|
| 749 |
+
</script>
|
| 750 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=BVK2/drive-sim" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
| 751 |
+
</html>
|