1
1
//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_campaign=help_url' ;
4
+
2
5
Blockly . Blocks [ 'lora_new' ] = {
3
6
init : function ( ) {
4
7
this . appendDummyInput ( )
@@ -9,7 +12,7 @@ Blockly.Blocks['lora_new'] = {
9
12
this . setOutput ( true , null ) ;
10
13
this . setColour ( 230 ) ;
11
14
this . setTooltip ( '' ) ;
12
- this . setHelpUrl ( 'http://webduino.io/' ) ;
15
+ this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
13
16
}
14
17
} ;
15
18
@@ -23,7 +26,7 @@ Blockly.Blocks['lora_send'] = {
23
26
this . setNextStatement ( true , null ) ;
24
27
this . setColour ( 65 ) ;
25
28
this . setTooltip ( '' ) ;
26
- this . setHelpUrl ( 'http://webduino.io/' ) ;
29
+ this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
27
30
}
28
31
} ;
29
32
@@ -46,7 +49,7 @@ Blockly.Blocks['lora_send_ack'] = {
46
49
this . setNextStatement ( true , null ) ;
47
50
this . setColour ( 65 ) ;
48
51
this . setTooltip ( '' ) ;
49
- this . setHelpUrl ( 'http://webduino.io/' ) ;
52
+ this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
50
53
}
51
54
} ;
52
55
@@ -61,7 +64,7 @@ Blockly.Blocks['lora_recv_ack'] = {
61
64
this . setNextStatement ( true , null ) ;
62
65
this . setColour ( 65 ) ;
63
66
this . setTooltip ( '' ) ;
64
- this . setHelpUrl ( 'http://webduino.io/' ) ;
67
+ this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
65
68
}
66
69
} ;
67
70
@@ -74,6 +77,6 @@ Blockly.Blocks['lora_recv_data'] = {
74
77
this . setOutput ( true , null ) ;
75
78
this . setColour ( 35 ) ;
76
79
this . setTooltip ( '' ) ;
77
- this . setHelpUrl ( 'http://webduino.io/' ) ;
80
+ this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
78
81
}
79
82
} ;
0 commit comments