-
Notifications
You must be signed in to change notification settings - Fork 3
/
rf_ir_remote_learn.html
45 lines (37 loc) · 1.03 KB
/
rf_ir_remote_learn.html
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
<style type="text/css">
#rf-ir-remote-learn-wrap {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
padding: 10%;
box-sizing: border-box;
}
#rf-ir-remote-learn-image {
display: block;
width: 80vw;
height: 80vw;
margin: 2em auto;
background: url(image.svg) no-repeat center center;
background-size: contain;
}
#rf-ir-remote-learn-instruction {
display: block;
text-align: center;
font-weight: 400;
}
</style>
<div id="rf-ir-remote-learn-wrap">
<div id="rf-ir-remote-learn-image"></div>
<p id="rf-ir-remote-learn-instruction"></p>
</div>
<script type="text/javascript">
(function () {
const $instruction = document.getElementById('rf-ir-remote-learn-instruction');
Homey.getOptions((err, options) => {
if (err) return Homey.error(err);
if (options && options.title) Homey.setTitle(Homey.__(options.title));
if (options && options.instruction) $instruction.innerHTML = Homey.__(options.instruction);
});
})();
</script>