Move mouse
This commit is contained in:
@@ -1,59 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Mouse Speedometer</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h2>Mouse Speedometer</h2>
|
||||
<div id="toolBar">
|
||||
<!-- ON/OFF (Gray OFF/ Orange ON) -->
|
||||
<i class="fa-solid fa-power-off"></i>
|
||||
<!-- display DCCID or '-' if Analogique or Marklin -->
|
||||
<i class="fa-solid fa-train"></i><span id="DCCID">34</span>
|
||||
<!-- display mode (Analogique or Marklin or DCC) -->
|
||||
<i class="fa-solid fa-wave-square"></i><span id="Mode">Analogique</span>
|
||||
<!-- display direction (Forward or Reverse) -->
|
||||
<i class="fa-solid fa-forward"></i>
|
||||
<!-- Program CV -->
|
||||
<i class="fa-solid fa-cogs"></i>
|
||||
<!-- Accessories switch to accessories page -->
|
||||
<i class="fa-solid fa-traffic-light"></i>
|
||||
</div>
|
||||
<div id="SelectLoco">
|
||||
<!-- display a view of scale model -->
|
||||
<img src="img/locos/loco.png" alt="Loco" width="300" height="50" onClick="SelectLoco();" style="cursor:pointer; margin-right:20px;">
|
||||
</div>
|
||||
<div id="speedometer">
|
||||
<!-- Inline SVG for speedometer -->
|
||||
<svg width="300" height="200" viewBox="0 0 300 200" xmlns="http://www.w3.org/2000/svg">
|
||||
<image href="img/Speed.png" x="0" y="0" width="300" height="200"/>
|
||||
<line id="needle" x1="150" y1="120" x2="150" y2="70" stroke="#e74c3c" stroke-width="6" stroke-linecap="round" />
|
||||
<text id="kmText" x="280" y="160" font-size="20" text-anchor="end" fill="#333">
|
||||
0
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
<div style="text-align:center; margin-top:20px;">
|
||||
<!-- slider-->
|
||||
<input type="range" id="speedSlider" min="0" max="128" value="0" oninput="updateSpeedometer(this.value);" style="width:80%;">
|
||||
</div>
|
||||
<div id="Functions">
|
||||
<!-- Display F0 to F7 -->
|
||||
<div class="function" id="F0">F0</div>
|
||||
<div class="function" id="F1">F1</div>
|
||||
<div class="function" id="F2">F2</div>
|
||||
<div class="function" id="F3">F3</div>
|
||||
<div class="function" id="F4">F4</div>
|
||||
<div class="function" id="F5">F5</div>
|
||||
<div class="function" id="F6">F6</div>
|
||||
<div class="function" id="F7">F7</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="js/mouse.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user