Skip to content

Commit 070357a

Browse files
committed
add tutorials link
1 parent 932c7ff commit 070357a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

blockly/blocks.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
var mainUrl = 'https://tutorials.webduino.io/zh-tw/docs/';
2+
var utmUrl = '?utm_source=cloud-blockly&utm_campaign=help_url';
3+
14
Blockly.Blocks['gps_new'] = {
25
init: function () {
36
this.appendDummyInput()
@@ -34,7 +37,7 @@ Blockly.Blocks['gps_new'] = {
3437
this.setOutput(true);
3538
this.setColour(230);
3639
this.setTooltip('');
37-
this.setHelpUrl('https://webduino.io');
40+
this.setHelpUrl(mainUrl + 'basic/index.html' + utmUrl);
3841
}
3942
};
4043

@@ -56,7 +59,7 @@ Blockly.Blocks['gps_read'] = {
5659
this.setNextStatement(true, null);
5760
this.setColour(65);
5861
this.setTooltip('');
59-
this.setHelpUrl('https://webduino.io');
62+
this.setHelpUrl(mainUrl + 'basic/index.html' + utmUrl);
6063
}
6164
};
6265

@@ -74,6 +77,6 @@ Blockly.Blocks['gps_get_data'] = {
7477
this.setOutput(true, null);
7578
this.setColour(35);
7679
this.setTooltip('');
77-
this.setHelpUrl('https://webduino.io');
80+
this.setHelpUrl(mainUrl + 'basic/index.html' + utmUrl);
7881
}
7982
};

0 commit comments

Comments
 (0)