-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlamp_sample.html
More file actions
44 lines (32 loc) · 848 Bytes
/
Copy pathlamp_sample.html
File metadata and controls
44 lines (32 loc) · 848 Bytes
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
<!DOCTYPE html>
<!-- Sample for using a lamp to take status from garagemhacker.org -->
<html>
<head>
<title>Garagem Status API</title>
<script src="lamp.js" type="text/javascript"></script>
<style>
.lampon{
width:113px;
height:291px;
background-image:url('img/lampon.png');
//background-size: 150px 100px;//just for change the size of images
//background-repeat: no-repeat;
//background-attachment: fixed;
//background-position: -85px 85px;//lamp off
//background-position: 10px 85px;//lamp on
}
.lampoff{
width:80px;
height:290px;
background-image:url('img/lampoff.png');
background-repeat: no-repeat;
}
</style>
</head>
<body>
<h1>Garagem Hacker - Teste de Status</h1>
</br>
<!-- Mudar imagem da lampada aqui -->
<div id="lamp" class="none"></div>
</body>
</html>