mirror of
https://github.com/m5stack/m5-docs.git
synced 2026-05-20 10:23:01 -07:00
fix some bug
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -582,7 +582,7 @@ body[data-page="zh_CN/README.md"] .markdown-section {
|
||||
}
|
||||
|
||||
mark {
|
||||
background-color: #888;
|
||||
background-color: #0073a5b0;
|
||||
color: white
|
||||
}
|
||||
|
||||
|
||||
@@ -304,11 +304,11 @@ function use_jpg() {
|
||||
var path = pics[i].src.substr(0,pics[i].src.indexOf(".webp"));
|
||||
pics[i].src = path+".jpg"
|
||||
}else{
|
||||
if(pics[i].src.indexOf("assets/") != -1) {
|
||||
var path = pics[i].src.substr(pics[i].src.indexOf("assets/"),);
|
||||
if(pics[i].src.indexOf("assets") != -1) {
|
||||
var path = pics[i].src.substr(pics[i].src.indexOf("assets"),);
|
||||
pics[i].src = "https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/product_jpg/"+path.replace(".webp",".jpg");
|
||||
}else if(pics[i].src.indexOf("image/") != -1){
|
||||
var path = pics[i].src.substr(pics[i].src.indexOf("image/"),);
|
||||
var path = pics[i].src.substr(pics[i].src.indexOf("image"),);
|
||||
pics[i].src = "https://m5stack.oss-cn-shenzhen.aliyuncs.com/image/product_jpg/"+path.replace(".webp",".jpg");
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user