-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathionopi.html
32 lines (29 loc) · 1.17 KB
/
ionopi.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
<script type="text/javascript">
$.getScript("resources/node-red-contrib-sfera-labs-commons/slcommons-client.js",
function() {
slDefineNode('ionopi', 'Iono Pi', '#E6E0F8', 'sferalabs-iono-pi.png');
}
);
</script>
<script id="sl-commons-template" type="text/javascript" data-template-name="ionopi">
$(function(){
$("#sl-commons-template").load("resources/node-red-contrib-sfera-labs-commons/slcommons-client-template.html");
});
</script>
<script id="sl-commons-help" type="text/javascript" data-help-name="ionopi">
$(function() {
var product = "Iono Pi"
var githubK = "https://github.com/sfera-labs/iono-pi-kernel-module"
var githubNR = "https://github.com/sfera-labs/node-red-contrib-sfera-labs-iono-pi"
var help = $("#sl-commons-help");
help.load("resources/node-red-contrib-sfera-labs-commons/slcommons-client-help.html",
function() {
var helpHtml = help.html()
.replaceAll("[[sl-commons-help-product]]", product)
.replaceAll("[[sl-commons-help-github-kernel]]", githubK)
.replaceAll("[[sl-commons-help-github-nodered]]", githubNR);
help.html(helpHtml);
}
);
});
</script>