-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2dplanner.html
More file actions
112 lines (97 loc) · 4.74 KB
/
2dplanner.html
File metadata and controls
112 lines (97 loc) · 4.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>2D Planner</title>
<link rel="stylesheet" href="assets/css/planner.css">
<link rel="icon" type="image/png" href="assets/img/logo.png">
<meta name="description" content="LiftIt is a lightweight web application designed to help you quickly build and estimate the cost of your perfect simracing setup (bundles, cockpits, seats, and accessories).">
<meta name="keywords" content="simracing, simulator, racing simulator, cockpit, seat, accessories, bundle, configuration, estimate, cost">
<meta name="author" content="Cyrex">
<meta property="og:title" content="LiftIt - Simracing Setup Configurator">
<meta property="og:description" content="LiftIt is a lightweight web application designed to help you quickly build and estimate the cost of your perfect simracing setup (bundles, cockpits, seats, and accessories).">
<meta property="og:image" content="assets/img/logo.png">
<meta property="og:type" content="website">
</head>
<body>
<div class="main-content">
<aside id="menu-gauche" class="control-panel">
<h2>Room Dimensions</h2>
<div class="input-group">
<label for="room-width">Width (cm):</label>
<input type="number" id="room-width" value="400" min="100">
</div>
<div class="input-group">
<label for="room-height">Length (cm):</label>
<input type="number" id="room-height" value="300" min="100">
</div>
<button id="set-room-size">Set Room Size</button>
<hr>
<h2>Add a Cockpit</h2>
<select id="cockpit-selector" class="selector">
<option value="">Select a Cockpit</option>
</select>
<button id="add-cockpit-btn" disabled>Add Cockpit</button>
</aside>
<main id="planner-area">
<canvas id="room-canvas"></canvas>
<div id="controls-section">
<div id="scale-info">Scale: 1 cm = <span id="scale-value">?</span> pixels</div>
<div id="rotation-control" style="display: none;">
<h3>Rotation of selected object (<span id="selected-object-name"></span>)</h3>
<div class="input-group-vertical">
<label>Angle: <span id="rotation-value">180</span>°</label>
<input type="range" id="rotation-slider" min="0" max="360" value="180" step="1">
</div>
</div>
</div>
</main>
<aside id="menu-droite" class="control-panel">
<h2>Add an Object</h2>
<div class="input-group">
<label for="object-name">Name:</label>
<input type="text" id="object-name" value="Desk">
</div>
<div class="input-group">
<label for="object-width">Width (cm):</label>
<input type="number" id="object-width" value="150" min="10">
</div>
<div class="input-group">
<label for="object-height">Length (cm):</label>
<input type="number" id="object-height" value="70" min="10">
</div>
<button id="add-object-btn">Add Object</button>
<hr>
<h2>Tools</h2>
<button id="delete-object-btn" class="danger-button" disabled>Delete selected object</button>
<button id="clear-all-btn" class="danger-button">Clear All</button>
<hr>
<h2>Import/Export</h2>
<button id="export-plan-btn">Export (JSON)</button>
<label for="import-file" class="button-label">
Import (JSON)
</label>
<input type="file" id="import-file" accept=".json" style="display: none;">
</aside>
</div>
<footer class="site-footer">
<div class="footer-inner">
<div class="footer-brand">
<h3>LiftIt</h3>
<p class="footer-tagline">Configure your simracing setup quickly and easily.</p>
</div>
<nav class="footer-nav" aria-label="Footer">
<a href="index.html" class="footer-link">Home</a>
<a href="2dplanner.html" class="footer-link">2D Planner</a>
<a href="mailto:contact@cyrex.fr" class="footer-link">Contact</a>
<a href="terms.html" class="footer-link">Terms</a>
</nav>
<div class="footer-legal">
<p class="copyright">© 2025 Cyrex — Tous droits réservés</p>
</div>
</div>
</footer>
<script src="assets/js/planner.js"></script>
</body>
</html>