File tree Expand file tree Collapse file tree 4 files changed +34
-10
lines changed
coder-apps/tests/gpio_test Expand file tree Collapse file tree 4 files changed +34
-10
lines changed Original file line number Diff line number Diff line change 1
1
2
2
.pagecontent {
3
3
padding : 24px ;
4
+ min-width : 880px ;
5
+ }
6
+
7
+ .buttons {
8
+ float : left;
9
+ width : 240px ;
10
+ }
11
+ .diagram {
12
+ width : 640px ;
13
+ float : left;
14
+ padding-bottom : 100px ;
15
+ }
16
+ .clear {
17
+ clear : both;
4
18
}
5
19
6
20
# buttonval {
7
- width : 100px ;
8
- height : 100px ;
21
+ width : 200px ;
22
+ height : 150px ;
23
+ margin : 24px 0 ;
24
+ color : # fff ;
9
25
background-color : # 000000 ;
26
+ text-align : center;
27
+ font-weight : bold;
28
+ line-height : 150px ;
10
29
}
11
30
# buttonval .on {
12
31
background-color : # F03050 ;
31
50
32
51
33
52
# output {
34
- position : absolute ;
53
+ position : fixed ;
35
54
left : 0 ;
36
55
right : 0 ;
37
56
bottom : 0 ;
38
- height : 150 px ;
57
+ height : 100 px ;
39
58
color : # fff ;
40
59
background-color : # 000 ;
41
60
overflow : hidden;
Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ $(document).ready( function() {
31
31
32
32
// Each connection gets a unique ID.
33
33
addOutputMessage ( "Connected with ID: " + Coder . socketConnection . socketID ) ;
34
- addOutputMessage ( "Click ON or OFF to enable blinking" ) ;
35
34
36
35
// Send a "connect" message to our Node page when we first connect.
37
36
Coder . socketConnection . sendData ( 'connect' , { } ) ;
Original file line number Diff line number Diff line change 26
26
< body class ="">
27
27
< div class ="pagecontent ">
28
28
< h1 > GPIO Test</ h1 >
29
- < div id ="blinkon " class ="button "> BLINK</ div >
30
- < div id ="blinkoff " class ="button " style ="display:none; "> STOP BLINK</ div >
31
- < div id ="toggle " class ="button "> TOGGLE</ div >
32
- < div id ="push " class ="button "> PUSH</ div >
33
- < div id ="buttonval "> </ div >
29
+ < div class ="buttons ">
30
+ < div id ="blinkon " class ="button "> BLINK</ div >
31
+ < div id ="blinkoff " class ="button " style ="display:none; "> STOP BLINK</ div >
32
+ < div id ="toggle " class ="button "> TOGGLE</ div >
33
+ < div id ="push " class ="button "> PUSH</ div >
34
+ < div id ="buttonval "> HARDWARE PRESS</ div >
35
+ </ div >
36
+ < div class ="diagram ">
37
+ < img src ="/static/apps/gpio_test/media/wiring_diagram.jpg " />
38
+ </ div >
39
+ < div class ="clear "> </ div >
34
40
< div id ="output ">
35
41
36
42
</ div >
You can’t perform that action at this time.
0 commit comments