forked from jonferreira/node-red-contrib-alexa-remote
-
Notifications
You must be signed in to change notification settings - Fork 0
/
alexa.html
52 lines (47 loc) · 2.02 KB
/
alexa.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
46
47
48
49
50
51
<!-- CREDENTIALS -->
<script type="text/x-red" data-template-name="Alexa-credentials">
<div class="form-row">
<label for="node-config-input-name"><i class="fa fa-user"></i> Name</label>
<input type="text" id="node-config-input-name">
</div>
<div class="form-row">
<label for="node-config-input-email"><i class="fa fa-user"></i> Email</label>
<input type="text" id="node-config-input-email">
</div>
<div class="form-row">
<label for="node-config-input-password"><i class="fa fa-user"></i> Password</label>
<input type="password" id="node-config-input-password">
</div>
<div class="form-row">
<label for="node-config-input-alexaServiceHost"><i class="fa fa-globe"></i> Service Host</label>
<input type="text" id="node-config-input-alexaServiceHost">
</div>
<div class="form-row">
<label for="node-config-input-acceptLanguage"><i class="fa fa-globe"></i> Language</label>
<input type="text" id="node-config-input-acceptLanguage">
</div>
<div class="form-row">
<label for="node-config-input-amazonPage"><i class="fa fa-globe"></i> Amazon Page</label>
<input type="text" id="node-config-input-amazonPage">
</div>
<div class="form-row">
<label for="node-config-input-cookie"><i class="fa fa-globe"></i> Cookie</label>
<textarea rows="4" cols="60" id="node-config-input-cookie"></textarea>
</div>
</script>
<script type="text/javascript">
RED.nodes.registerType('Alexa-credentials',{
category: 'config',
defaults: {
email: { value:"" },
password: { value:"" },
alexaServiceHost: { value:"pitangui.amazon.com", required: true },
acceptLanguage: { value:"en-UK", required: true },
amazonPage: { value:"amazon.com", required: true },
cookie: { value:"", required: true },
},
label: function() {
return this.email+" - "+this.amazonPage || "";
}
});
</script>