File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Blockly.Blocks['g3_new'] = {
4343 this . setOutput ( true ) ;
4444 this . setTooltip ( '' ) ;
4545 this . setColour ( 230 ) ;
46- this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
46+ this . setHelpUrl ( Blockly . Msg . WEBDUINO_G3_HELPURL ) ;
4747 }
4848} ;
4949
@@ -62,7 +62,7 @@ Blockly.Blocks['g3_get'] = {
6262 this . setNextStatement ( true ) ;
6363 this . setTooltip ( '' ) ;
6464 this . setColour ( 65 ) ;
65- this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
65+ this . setHelpUrl ( Blockly . Msg . WEBDUINO_G3_HELPURL ) ;
6666 }
6767} ;
6868
@@ -79,7 +79,7 @@ Blockly.Blocks['g3_read'] = {
7979 this . setNextStatement ( true ) ;
8080 this . setTooltip ( '' ) ;
8181 this . setColour ( 65 ) ;
82- this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
82+ this . setHelpUrl ( Blockly . Msg . WEBDUINO_G3_HELPURL ) ;
8383 }
8484} ;
8585
@@ -113,7 +113,7 @@ Blockly.Blocks['g3_trigger'] = {
113113 this . setNextStatement ( true , null ) ;
114114 this . setColour ( 65 ) ;
115115 this . setTooltip ( '' ) ;
116- this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
116+ this . setHelpUrl ( Blockly . Msg . WEBDUINO_G3_HELPURL ) ;
117117 }
118118} ;
119119
@@ -129,6 +129,6 @@ Blockly.Blocks['g3_get_number'] = {
129129 this . setOutput ( true ) ;
130130 this . setTooltip ( '' ) ;
131131 this . setColour ( 35 ) ;
132- this . setHelpUrl ( mainUrl + 'basic/index.html' + utmUrl ) ;
132+ this . setHelpUrl ( Blockly . Msg . WEBDUINO_G3_HELPURL ) ;
133133 }
134134} ;
Original file line number Diff line number Diff line change @@ -16,3 +16,4 @@ Blockly.Msg.WEBDUINO_G3_RUN = "Second(s), Run";
1616Blockly . Msg . WEBDUINO_G3_INFINITY = "Infinity" ;
1717Blockly . Msg . WEBDUINO_G3_TIMES = "Times" ;
1818Blockly . Msg . WEBDUINO_G3_FIRMWARE_COMMENT = "This block will enable board to have ability to receive and upload data constantly even without browser running." ;
19+ Blockly . Msg . WEBDUINO_G3_HELPURL = "https://resource.webduino.io/docs/cloud-component/sensor/pm25" ;
Original file line number Diff line number Diff line change @@ -15,4 +15,5 @@ Blockly.Msg.WEBDUINO_G3_INTERVAL = "每隔";
1515Blockly . Msg . WEBDUINO_G3_RUN = "秒,执行" ;
1616Blockly . Msg . WEBDUINO_G3_INFINITY = "无限" ;
1717Blockly . Msg . WEBDUINO_G3_TIMES = "次" ;
18- Blockly . Msg . WEBDUINO_G3_FIRMWARE_COMMENT = "此积木会将动作写入开发板,浏览器关闭后仍会持续运行" ;
18+ Blockly . Msg . WEBDUINO_G3_FIRMWARE_COMMENT = "此积木会将动作写入开发板,浏览器关闭后仍会持续运行" ;
19+ Blockly . Msg . WEBDUINO_G3_HELPURL = "https://resource.webduino.io/docs/cloud-component/sensor/pm25" ;
Original file line number Diff line number Diff line change @@ -15,4 +15,5 @@ Blockly.Msg.WEBDUINO_G3_INTERVAL = "每隔";
1515Blockly . Msg . WEBDUINO_G3_RUN = "秒,執行" ;
1616Blockly . Msg . WEBDUINO_G3_INFINITY = "無限" ;
1717Blockly . Msg . WEBDUINO_G3_TIMES = "次" ;
18- Blockly . Msg . WEBDUINO_G3_FIRMWARE_COMMENT = "此積木會將動作寫入開發板,瀏覽器關閉後仍會持續運行" ;
18+ Blockly . Msg . WEBDUINO_G3_FIRMWARE_COMMENT = "此積木會將動作寫入開發板,瀏覽器關閉後仍會持續運行" ;
19+ Blockly . Msg . WEBDUINO_G3_HELPURL = "https://resource.webduino.io/docs/cloud-component/sensor/pm25" ;
You can’t perform that action at this time.
0 commit comments