forked from guidone/node-red-contrib-quotes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquotes.html
More file actions
43 lines (37 loc) · 1.09 KB
/
quotes.html
File metadata and controls
43 lines (37 loc) · 1.09 KB
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
<script type="text/javascript">
RED.nodes.registerType('quotes', {
category: 'social',
color: '#FFCC66',
defaults: {
source: {
value: 'quotzzy'
},
markdown: {
value: true
}
},
inputs: 1,
outputs: 1,
paletteLabel: 'Random Quotes',
icon: 'icon-quote.png',
label: 'Random Quote'
});
</script>
<script type="text/x-red" data-template-name="quotes">
<div class="form-row">
<label for="node-input-name"><i class="icon-cog"></i> Source</label>
<select id="node-input-source" placeholder="Select source of quotes">
<option value="quotzzy">Quotzzy</option>
</select>
</div>
<div class="form-row">
<label for="node-input-markdown"><i class="icon-share-alt"></i> Markdown</label>
<input type="checkbox" value="true" id="node-input-markdown">
<span style="max-width: 460px;font-size: 12px;color: #999999;line-height: 14px;">Quote in Markdown format</span>
</div>
</script>
<script type="text/x-red" data-help-name="quotes">
<p>
Fetch a random quote (for the moment the only external service is <b>Quozzy</b>)
</p>
</script>