-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathhover.php
50 lines (45 loc) · 1.83 KB
/
hover.php
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
<?php
/**
* User: Fritz
* Date: 28/08/12
* Time: 14:54
*/
$active_tab = "hover";
include_once("header.php");
?>
<div class="row-fluid">
<div class="span12">
<div class="page-header"><h1>Hover example</h1>
<p>Hover over the different colors to turn the leds on. A simple AJAX call is made to a PHP page that sends
the right command
to the Arduino.<br/>Look at the html source, every button has a value property that corresponds with the
port number on the Arduino.</p></div>
<div class="row-fluid">
<div class="span4">
<h3>Led 1</h3>
<div class="hover-light">
<button class="btn btn-primary btn-large" value="2">Blue</button>
<button class="btn btn-success btn-large" value="3">Green</button>
<button class="btn btn-danger btn-large" value="4">Red</button>
</div>
</div>
<div class="span4">
<h3>Led 2</h3>
<div class="hover-light">
<button class="btn btn-primary btn-large" value="5">Blue</button>
<button class="btn btn-success btn-large" value="6">Green</button>
<button class="btn btn-danger btn-large" value="7">Red</button>
</div>
</div>
<div class="span4">
<h3>Led 3</h3>
<div class="hover-light">
<button class="btn btn-primary btn-large" value="8">Blue</button>
<button class="btn btn-success btn-large" value="9">Green</button>
<button class="btn btn-danger btn-large" value="10">Red</button>
</div>
</div>
</div>
</div>
</div>
<?php include_once("footer.php"); ?>