Correction speedometer
This commit is contained in:
@@ -35,26 +35,39 @@
|
||||
|
||||
<!-- <image href="img/Speed.png" x="0" y="0" width="300" height="200"/> -->
|
||||
<g id="ticks" stroke="white" stroke-width="3" stroke-linecap="round" transform="rotate(-90 150 120)">
|
||||
<line x1="120" y1="68.038" x2="110" y2="50.718" />
|
||||
<line x1="143.728" y1="60.329" x2="141.638" y2="40.438" />
|
||||
<line x1="168.541" y1="62.936" x2="174.721" y2="43.915" />
|
||||
<line x1="190.148" y1="75.411" x2="203.531" y2="60.548" />
|
||||
<line x1="204.813" y1="95.596" x2="223.084" y2="87.461" />
|
||||
<line x1="210" y1="120" x2="230" y2="120" />
|
||||
<line x1="204.813" y1="144.404" x2="223.084" y2="152.539" />
|
||||
<line x1="190.148" y1="164.589" x2="203.531" y2="179.452" />
|
||||
<line x1="168.541" y1="177.064" x2="174.721" y2="196.085" />
|
||||
<line x1="143.728" y1="179.671" x2="141.638" y2="199.562" />
|
||||
<line x1="120" y1="171.962" x2="110" y2="189.282" />
|
||||
</g>
|
||||
<line x1="102.500" y1="37.728" x2="92.500" y2="20.407" />
|
||||
|
||||
<line x1="140.070" y1="25.520" x2="137.979" y2="5.630" />
|
||||
<line x1="179.357" y1="29.650" x2="185.537" y2="10.629" />
|
||||
<line x1="213.567" y1="49.401" x2="226.950" y2="34.538" />
|
||||
<line x1="236.787" y1="81.360" x2="255.058" y2="73.225" />
|
||||
<line x1="245.000" y1="120.000" x2="265.000" y2="120.000" />
|
||||
<line x1="236.787" y1="158.640" x2="255.058" y2="166.775" />
|
||||
<line x1="213.567" y1="190.599" x2="226.950" y2="205.462" />
|
||||
<line x1="179.357" y1="210.350" x2="185.537" y2="229.371" />
|
||||
<line x1="140.070" y1="214.480" x2="137.979" y2="234.370" />
|
||||
<line x1="102.500" y1="202.272" x2="92.500" y2="219.593" />
|
||||
</g>
|
||||
<g id="speedLabels" transform="rotate(-90 150 120)">
|
||||
<text x="111.000" y="52.450" font-size="14" text-anchor="middle" dominant-baseline="middle" fill="#FFF" transform="rotate(90 111.000 52.450)">0</text>
|
||||
<text x="141.847" y="42.427" font-size="14" text-anchor="middle" dominant-baseline="middle" fill="#FFF" transform="rotate(90 141.847 42.427)">20</text>
|
||||
<text x="174.103" y="45.818" font-size="14" text-anchor="middle" dominant-baseline="middle" fill="#FFF" transform="rotate(90 174.103 45.818)">40</text>
|
||||
<text x="202.192" y="62.035" font-size="14" text-anchor="middle" dominant-baseline="middle" fill="#FFF" transform="rotate(90 202.192 62.035)">60</text>
|
||||
<text x="221.257" y="88.275" font-size="14" text-anchor="middle" dominant-baseline="middle" fill="#FFF" transform="rotate(90 221.257 88.275)">80</text>
|
||||
<text x="228.000" y="120.000" font-size="14" text-anchor="middle" dominant-baseline="middle" fill="#FFF" transform="rotate(90 228.000 120.000)">100</text>
|
||||
<text x="221.257" y="151.725" font-size="14" text-anchor="middle" dominant-baseline="middle" fill="#FFF" transform="rotate(90 221.257 151.725)">120</text>
|
||||
<text x="202.192" y="177.965" font-size="14" text-anchor="middle" dominant-baseline="middle" fill="#FFF" transform="rotate(90 202.192 177.965)">140</text>
|
||||
<text x="174.103" y="194.182" font-size="14" text-anchor="middle" dominant-baseline="middle" fill="#FFF" transform="rotate(90 174.103 194.182)">160</text>
|
||||
<text x="141.847" y="197.573" font-size="14" text-anchor="middle" dominant-baseline="middle" fill="#FFF" transform="rotate(90 141.847 197.573)">180</text>
|
||||
<text x="111.000" y="187.550" font-size="14" text-anchor="middle" dominant-baseline="middle" fill="#FFF" transform="rotate(90 111.000 187.550)">200</text>
|
||||
</g>
|
||||
<line id="needle" x1="150" y1="120" x2="150" y2="70" stroke="#e74c3c" stroke-width="6" stroke-linecap="round" />
|
||||
<text id="TotalKm" x="190" y="190" font-size="20" text-anchor="end" fill="#AAA">0.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%;">
|
||||
<input type="range" id="speedSlider" min="0" max="200" value="0" oninput="updateSpeedometer(this.value);" style="width:80%;">
|
||||
</div>
|
||||
<div id="Functions">
|
||||
<!-- Display F0 to F7 -->
|
||||
|
||||
Reference in New Issue
Block a user