forked from webduinoio/webduino-blockly
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpir-1.html
More file actions
33 lines (30 loc) · 774 Bytes
/
pir-1.html
File metadata and controls
33 lines (30 loc) · 774 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
<template id="head">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title data-translation="title">Webduino Blockly - 偵測人體紅外線</title>
<!-- webduino -->
<script src="/lib/webduino-all.min.js"></script>
<script src="/lib/webduino-blockly.js"></script>
<script src="/lib/runtime.min.js"></script>
</template>
<template id="body">
<div id="light" class="off">
<img src="/media/off.png"></img>
<img src="/media/on.png"></img>
</div>
</template>
<template id="css">
#light {
width: 60%;
}
#light img {
width: 100%;
display: none;
}
#light.off img:first-child {
display: inline-block;
}
#light.on img:last-child {
display: inline-block;
}
</template>