File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1+ var mainUrl = 'https://tutorials.webduino.io/zh-tw/docs/' ;
2+ var utmUrl = '?utm_source=cloud-blockly&utm_campaign=help_url' ;
3+
14Blockly . 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} ;
You can’t perform that action at this time.
0 commit comments