|
153 | 153 | for (var class_num=0; class_num<product_class.length; class_num++ ){ |
154 | 154 | for (var i=0; i<product_class[class_num].length; i++ ) { |
155 | 155 |
|
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 | | - |
165 | 156 | //append的内容将显示在product_class.p名称的上方,并作为一行的开始 |
166 | 157 | /*lora gateway*/ |
167 | 158 | if(product_class[class_num][i].p === "HT-M01 PicoCell LoRa Gateway"){ |
168 | 159 | $("#"+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>'); |
169 | 160 | } |
170 | 161 | /*cubecell*/ |
171 | 162 | 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>`); |
173 | 164 | } |
174 | 165 | /*esp32 lora*/ |
175 | 166 | 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>`); |
177 | 168 | } |
178 | 169 | /*stm32 lora node*/ |
179 | 170 | 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>`); |
181 | 172 | } |
182 | 173 | /*esp32 arduino*/ |
183 | 174 | if(product_class[class_num][i].a === "https://heltec.cn/project/wifi-kit-32"){ |
|
311 | 302 | $("#esp8266_arduino .mask a").attr("href", "https://heltec-automation-docs.readthedocs.io/en/latest/esp8266+arduino/quick_start.html"); |
312 | 303 |
|
313 | 304 | $("#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"); |
315 | 306 |
|
316 | 307 | $("#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"); |
318 | 309 |
|
319 | 310 | $("#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)"); |
321 | 312 |
|
322 | 313 | anchor_search(); |
323 | 314 | scrollFunc(); |
|
0 commit comments