20
20
< html lang ="en ">
21
21
< head >
22
22
< title > OR: Cab Controls</ title >
23
- < meta charset ="utf-8 "/>
23
+ < meta charset ="utf-8 " />
24
24
< meta name ="viewport " content ="width=device-width, initial-scale=1 "> <!-- adds zooming for mobiles -->
25
25
< link rel ="shortcut icon " type ="image/png " href ="/or_logo.png "> <!-- This icon appears in the page's tab and its bookmark. -->
26
26
< link rel ="stylesheet " type ="text/css " href ="/index.css "> <!-- share styles with home page -->
30
30
31
31
< body onload ="setInterval (ApiCabControls, 500) ">
32
32
< div id ="menu "> < a href ="/ "> Back to Menu</ a > </ div >
33
- < br > < h2 > Cab Controls, Instruments, Dials, Meters and Gauges</ h2 >
34
- < table >
35
- < thead >
36
- < tr >
37
- < th > Control</ th >
38
- < th > Min</ th >
39
- < th > Value</ th >
40
- < th > Max</ th >
41
- < th > Scale</ th >
42
- </ tr >
43
- </ thead >
44
- < tbody id ="markup ">
45
- </ tbody >
46
- </ table >
33
+ < br />
34
+ < div class ="row ">
35
+ < div class ="column ">
36
+ < h2 > Cab Instruments, Dials, Meters and Gauges</ h2 >
37
+ < table >
38
+ < thead >
39
+ < tr >
40
+ < th > Control</ th >
41
+ < th > Min</ th >
42
+ < th > Value</ th >
43
+ < th > Max</ th >
44
+ < th > Scale</ th >
45
+ </ tr >
46
+ </ thead >
47
+ < tbody id ="markup ">
48
+ </ tbody >
49
+ </ table >
50
+ </ div >
51
+ < div class ="column ">
52
+ < h2 > Basic Controls</ h2 >
53
+ < br />
54
+ < br />
55
+ < div class ="control ">
56
+ < input id ="train_brake " type ="range " step ="any " value ="0 " min ="0 " max ="100 " onchange ="sendValue(this.value/100, 'TRAIN_BRAKE') " />
57
+ < label for ="train_brake "> Train Brake (0 - 100)</ label >
58
+ </ div >
59
+ < div class ="control ">
60
+ < input id ="direction " type ="range " value ="0 " min ="-1 " max ="1 " onchange ="sendValue(this.value, 'DIRECTION') " />
61
+ < label for ="direction "> Direction/Reverser (-1 - +1)</ label >
62
+ </ div >
63
+ < div class ="control ">
64
+ < input id ="train_brake " type ="range " step ="10 " value ="0 " min ="0 " max ="100 " onchange ="sendValue(this.value/100, 'THROTTLE') " />
65
+ < label for ="train_brake "> Throttle/Regulator (0 - 100)</ label >
66
+ </ div >
67
+ < div class ="control ">
68
+ < input id ="train_brake " type ="range " step ="1 " value ="0 " min ="0 " max ="1 " onchange ="sendValue(this.value, 'HORN') " />
69
+ < label for ="train_brake "> Horn (0 - 1)</ label >
70
+ </ div >
71
+ < div class ="control ">
72
+ < input id ="train_brake " type ="range " step ="1 " value ="0 " min ="0 " max ="1 " onchange ="sendValue(this.value, 'BELL') " />
73
+ < label for ="train_brake "> Bell (0 - 1)</ label >
74
+ </ div >
75
+ < div class ="control ">
76
+ < input id ="train_brake " type ="range " step ="1 " value ="0 " min ="0 " max ="3 " onchange ="sendValue(this.value, 'FRONT_HLIGHT') " />
77
+ < label for ="train_brake "> Front Headlight (0 - 3)</ label >
78
+ </ div >
79
+ < div class ="control ">
80
+ < input id ="train_brake " type ="range " step ="1 " value ="0 " min ="0 " max ="1 " onchange ="sendValue(this.value, 'PANTOGRAPH') " />
81
+ < label for ="train_brake "> Pantograph (0 - 1)</ label >
82
+ </ div >
83
+ </ div >
84
+ </ div >
47
85
</ body >
48
86
</ html >
0 commit comments