mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
Merge branch 'master' of https://github.com/m5stack/m5-docs
This commit is contained in:
@@ -454,7 +454,7 @@ function onEnter(event){
|
||||
|
||||
Input.focusout(function (){
|
||||
Input.animate({width:240});
|
||||
$(".item").css("z-index","0");
|
||||
$(".item").css("z-index","30");
|
||||
setTimeout(function(){
|
||||
},160);
|
||||
});
|
||||
|
||||
Vendored
+1
-1
@@ -40,7 +40,7 @@ $('#product_result').append(clone_obj);}}
|
||||
if(textEnter.length>0){get_search_keyword(onEnter_content);}else{window.search_cover.contant_result=[{name:'',url:'',contant:search_cover.search_note}];$('#product_result')[0].textContent=search_cover.search_note;}}
|
||||
function onEnter(event){timer=setTimeout(function(){var onEnter_content=event.target.value.toLowerCase();select_search_page(onEnter_content);clearTimeout(timer);timer=null;},250);}
|
||||
function select_search_page(onEnter_content){link=window.location.href;if(((link.slice(-4)=="/en/")||(link.slice(-7)=="/zh_CN/"))||((link.indexOf(/en/)==-1)&&(link.indexOf(/zh_CN/)==-1))){product_search(onEnter_content);}else if(link.slice(-4)=="/faq"){faq_search(onEnter_content);}else{detail_search(onEnter_content);}}
|
||||
var Input=$('form input');Input.focusin(function(){$('#search_cover').show(200);window.zoom_image.stopScroll();Input.animate({width:300});var count=0;for(let key in window.localStorage){var current_url=window.location.href;if(((current_url.indexOf("/en/")!=-1)&&(key.indexOf("/en/")!=-1))){count++;if(count>5){break;}}else if(((current_url.indexOf("/zh_CN/")!=-1)&&(key.indexOf("/zh_CN/")!=-1))){count++;if(count>5){break;}}else{localStorage.clear();set_search_keyword();break;}}});Input.focusout(function(){Input.animate({width:240});$(".item").css("z-index","0");setTimeout(function(){},160);});function select(event){var s=event.textContent.toLowerCase();$("#thetarget").removeClass("show");$(".btn-group-vertical button").addClass("btn-light");$(event).removeClass("btn-light");$(event).addClass("btn-primary");page_move(s);}
|
||||
var Input=$('form input');Input.focusin(function(){$('#search_cover').show(200);window.zoom_image.stopScroll();Input.animate({width:300});var count=0;for(let key in window.localStorage){var current_url=window.location.href;if(((current_url.indexOf("/en/")!=-1)&&(key.indexOf("/en/")!=-1))){count++;if(count>5){break;}}else if(((current_url.indexOf("/zh_CN/")!=-1)&&(key.indexOf("/zh_CN/")!=-1))){count++;if(count>5){break;}}else{localStorage.clear();set_search_keyword();break;}}});Input.focusout(function(){Input.animate({width:240});$(".item").css("z-index","30");setTimeout(function(){},160);});function select(event){var s=event.textContent.toLowerCase();$("#thetarget").removeClass("show");$(".btn-group-vertical button").addClass("btn-light");$(event).removeClass("btn-light");$(event).addClass("btn-primary");page_move(s);}
|
||||
$(document).ready(function(){});function change_title(language){if(language=="en"){header.platform={UIFlow:"#/en/uiflow/uiflow_home_page",Arduino:"#/en/arduino/arduino_home_page",MicroPython:"https://github.com/m5stack/UIFlow-Code",FreeRTOS:"#/en/quick_start/m5stickc/m5stickc_quick_start_with_AWS-FreeRTOS_Windows"}
|
||||
header.case_link="#/en/case";header.faq_link="#/en/faq";header.i2c_table="I2C Address Table";header.comparison_table="Product Comparison";header.homepage_title="Product List";header.product_list_title="Product";header.language_list_title="Language";header.platform_list_title="Platform|API";header.faq_title="FAQ";header.case_title="Cases";header.pdf_notify="Creating PDF.....";search_cover.search_note="No relevant information was found, please enter product keywords and search again.";search_cover.current_page_title="Current Page";search_cover.related_page_title="Related Page";}
|
||||
if(language=="zh_CN"){header.platform={UIFlow:"#/zh_CN/uiflow/uiflow_home_page",Arduino:"#/zh_CN/arduino/arduino_home_page",MicroPython:"https://github.com/m5stack/UIFlow-Code",FreeRTOS:"#/zh_CN/quick_start/m5stickc/m5stickc_quick_start_with_AWS-FreeRTOS_Windows"}
|
||||
|
||||
+3
-3
@@ -268,7 +268,7 @@
|
||||
$("#"+product_class_name[class_num]+" .item:last-child img").attr("src", product_class[class_num][i].img);
|
||||
$("#"+product_class_name[class_num]+" .item:last-child p").text(product_class[class_num][i].p);
|
||||
$("#"+product_class_name[class_num]+" .item:last-child p").attr("data-kw", product_class[class_num][i].kw);
|
||||
$("#"+product_class_name[class_num]+" .item:last-child a").append(`<div class="mask"><p class="mask_sku"></p></div>`);
|
||||
$("#"+product_class_name[class_num]+" .item:last-child a").append(`<div class="mask"><p class="mask_sku">${product_class[class_num][i].sku}</p></div>`);
|
||||
if(typeof(product_class[class_num][i].qs) != "undefined"){
|
||||
$("#"+product_class_name[class_num]+" .item:last-child").append(mask_btn);
|
||||
$("#"+product_class_name[class_num]+" .item:last-child .quickstart_btn").attr("href", product_class[class_num][i].qs);
|
||||
@@ -282,8 +282,8 @@
|
||||
var x = -30;
|
||||
var y = 40;
|
||||
var newtitle = '';
|
||||
$('.item>a').mouseover(function (e) {
|
||||
newtitle = $(this).children("p")[0].dataset.kw;
|
||||
$('.item').mouseover(function (e) {
|
||||
newtitle = $(this).find(".item-title")[0].dataset.kw;
|
||||
$('body').append('<div id="tag_title" >' + newtitle + '</div>');
|
||||
$('#tag_title').css({
|
||||
'left': (e.pageX - x + 'px'),
|
||||
|
||||
@@ -264,7 +264,7 @@
|
||||
$("#"+product_class_name[class_num]+" .item:last-child img").attr("src", product_class[class_num][i].img);
|
||||
$("#"+product_class_name[class_num]+" .item:last-child p").text(product_class[class_num][i].p);
|
||||
$("#"+product_class_name[class_num]+" .item:last-child p").attr("data-kw", product_class[class_num][i].kw);
|
||||
$("#"+product_class_name[class_num]+" .item:last-child a").append(`<div class="mask"><p class="mask_sku"></p></div>`);
|
||||
$("#"+product_class_name[class_num]+" .item:last-child a").append(`<div class="mask"><p class="mask_sku">${product_class[class_num][i].sku}</p></div>`);
|
||||
if(typeof(product_class[class_num][i].qs) != "undefined"){
|
||||
$("#"+product_class_name[class_num]+" .item:last-child").append(mask_btn);
|
||||
$("#"+product_class_name[class_num]+" .item:last-child .quickstart_btn").attr("href", product_class[class_num][i].qs);
|
||||
@@ -278,8 +278,8 @@
|
||||
var x = -30;
|
||||
var y = 40;
|
||||
var newtitle = '';
|
||||
$('.item>a').mouseover(function (e) {
|
||||
newtitle = $(this).children("p")[0].dataset.kw;
|
||||
$('.item').mouseover(function (e) {
|
||||
newtitle = $(this).find(".item-title")[0].dataset.kw;
|
||||
$('body').append('<div id="tag_title" >' + newtitle + '</div>');
|
||||
$('#tag_title').css({
|
||||
'left': (e.pageX - x + 'px'),
|
||||
|
||||
Reference in New Issue
Block a user