Skip to content

Commit 71d8556

Browse files
committed
update zh_CN page
1 parent 70c6806 commit 71d8556

2 files changed

Lines changed: 98 additions & 61 deletions

File tree

index.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -153,31 +153,22 @@
153153
for (var class_num=0; class_num<product_class.length; class_num++ ){
154154
for (var i=0; i<product_class[class_num].length; i++ ) {
155155

156-
const hrefSearch = {
157-
"en": "series",
158-
"zh_CN": "系列"
159-
}
160-
const href = window.location.href;
161-
const searchValue = href.indexOf('en') > -1 || href.indexOf('zh_CN') > -1 ?
162-
href.indexOf('en') > -1 ? hrefSearch["en"] : hrefSearch["zh_CN"] :
163-
hrefSearch["en"];
164-
165156
//append的内容将显示在product_class.p名称的上方,并作为一行的开始
166157
/*lora gateway*/
167158
if(product_class[class_num][i].p === "HT-M01 PicoCell LoRa Gateway"){
168159
$("#"+product_class_name[class_num]).append('<br><p> <a href="#/en/products/lora/lora_gateway/heltec_lora_gateway_list"> <strong>LoRa Gateway</strong> </a> </p>');
169160
}
170161
/*cubecell*/
171162
if(product_class[class_num][i].p === "CubeCell Dev-Board"){
172-
$("#"+product_class_name[class_num]).append(`<br><p> <a href="#/en/products/lora/lora_node/heltec_lora_node_list?id=cubecell-${searchValue}"> <strong>CubeCell LoRa Nodes</strong> </a> </p>`);
163+
$("#"+product_class_name[class_num]).append(`<br><p> <a href="#/en/products/lora/lora_node/heltec_lora_node_list?id=cubecell-series"> <strong>CubeCell LoRa Nodes</strong> </a> </p>`);
173164
}
174165
/*esp32 lora*/
175166
if(product_class[class_num][i].a === "https://heltec.cn/project/wireless-stick"){
176-
$("#"+product_class_name[class_num]).append(`<br><p> <a href="#/en/products/lora/lora_node/heltec_lora_node_list?id=esp32-lora-${searchValue}"> <strong>ESP32 LoRa</strong> </a> </p>`);
167+
$("#"+product_class_name[class_num]).append(`<br><p> <a href="#/en/products/lora/lora_node/heltec_lora_node_list?id=esp32-lora-series"> <strong>ESP32 LoRa</strong> </a> </p>`);
177168
}
178169
/*stm32 lora node*/
179170
if(product_class[class_num][i].a === "https://heltec.cn/project/lora-node-151/"){
180-
$("#"+product_class_name[class_num]).append(`<br><p> <a href="#/en/products/lora/lora_node/heltec_lora_node_list?id=stm32-lora-${searchValue}"> <strong>STM32 LoRa</strong> </a> </p>`);
171+
$("#"+product_class_name[class_num]).append(`<br><p> <a href="#/en/products/lora/lora_node/heltec_lora_node_list?id=stm32-lora-series"> <strong>STM32 LoRa</strong> </a> </p>`);
181172
}
182173
/*esp32 arduino*/
183174
if(product_class[class_num][i].a === "https://heltec.cn/project/wifi-kit-32"){
@@ -311,13 +302,13 @@
311302
$("#esp8266_arduino .mask a").attr("href", "https://heltec-automation-docs.readthedocs.io/en/latest/esp8266+arduino/quick_start.html");
312303

313304
$("#oled div.item a:lt("+oled_list.length+")").append(mask_html);
314-
$("#oled .mask a").attr("href", "https://docs.heltec.cn/#/en/products/display/oled/heltec_oled_display_list_eu");
305+
$("#oled .mask a").attr("href", "https://docs.heltec.cn/#/en/products/display/oled/heltec_oled_display_list");
315306

316307
$("#e_ink div.item a:lt("+e_ink_list.length+")").append(mask_html);
317-
$("#e_ink .mask a").attr("href", "https://docs.heltec.cn/#/en/products/display/eink/heltec_eink_display_list_eu");
308+
$("#e_ink .mask a").attr("href", "https://docs.heltec.cn/#/en/products/display/eink/heltec_eink_display_list");
318309

319310
$("#accessories div.item a:lt("+accessories_list.length+")").append(mask_html);
320-
$("#accessories .mask a").attr("href", "#");
311+
$("#accessories .mask a").attr("href", "javascript:void(0)");
321312

322313
anchor_search();
323314
scrollFunc();

0 commit comments

Comments
 (0)