11//https://blockly-demo.appspot.com/static/demos/blockfactory_old/index.html#5ag74x
2+ var mainUrl = 'https://tutorials.webduino.io/zh-tw/docs/' ;
3+ var utmUrl = '?utm_source=cloud-blockly&utm_medium=help&utm_campaign=help_url' ;
4+
25Blockly . Blocks [ 'lora_new' ] = {
36 init : function ( ) {
47 this . appendDummyInput ( )
@@ -9,7 +12,7 @@ Blockly.Blocks['lora_new'] = {
912 this . setOutput ( true , null ) ;
1013 this . setColour ( 230 ) ;
1114 this . setTooltip ( '' ) ;
12- this . setHelpUrl ( 'http://webduino.io/' ) ;
15+ this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
1316 }
1417} ;
1518
@@ -23,7 +26,7 @@ Blockly.Blocks['lora_send'] = {
2326 this . setNextStatement ( true , null ) ;
2427 this . setColour ( 65 ) ;
2528 this . setTooltip ( '' ) ;
26- this . setHelpUrl ( 'http://webduino.io/' ) ;
29+ this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
2730 }
2831} ;
2932
@@ -46,7 +49,7 @@ Blockly.Blocks['lora_send_ack'] = {
4649 this . setNextStatement ( true , null ) ;
4750 this . setColour ( 65 ) ;
4851 this . setTooltip ( '' ) ;
49- this . setHelpUrl ( 'http://webduino.io/' ) ;
52+ this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
5053 }
5154} ;
5255
@@ -61,7 +64,7 @@ Blockly.Blocks['lora_recv_ack'] = {
6164 this . setNextStatement ( true , null ) ;
6265 this . setColour ( 65 ) ;
6366 this . setTooltip ( '' ) ;
64- this . setHelpUrl ( 'http://webduino.io/' ) ;
67+ this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
6568 }
6669} ;
6770
@@ -74,6 +77,6 @@ Blockly.Blocks['lora_recv_data'] = {
7477 this . setOutput ( true , null ) ;
7578 this . setColour ( 35 ) ;
7679 this . setTooltip ( '' ) ;
77- this . setHelpUrl ( 'http://webduino.io/' ) ;
80+ this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
7881 }
7982} ;
0 commit comments