diff --git a/src/main/java/xin/wenjing/blogHao/extension/PostSlideHandler.java b/src/main/java/xin/wenjing/blogHao/extension/PostSlideHandler.java
index 075b65b..a0359e0 100644
--- a/src/main/java/xin/wenjing/blogHao/extension/PostSlideHandler.java
+++ b/src/main/java/xin/wenjing/blogHao/extension/PostSlideHandler.java
@@ -1,16 +1,4 @@
package xin.wenjing.blogHao.extension;
-
-import com.google.common.base.Throwables;
-import lombok.RequiredArgsConstructor;
-import lombok.extern.slf4j.Slf4j;
-import org.pf4j.PluginWrapper;
-import org.springframework.stereotype.Component;
-import reactor.core.publisher.Mono;
-import run.halo.app.plugin.ReactiveSettingFetcher;
-import run.halo.app.theme.ReactivePostContentHandler;
-import xin.wenjing.blogHao.entity.Settings;
-import xin.wenjing.blogHao.util.ScriptContentUtils;
-
/**
* 功能描述
*
diff --git a/src/main/resources/static/custom/bloghaoTag.js b/src/main/resources/static/custom/bloghaoTag.js
index 35eb850..e066570 100644
--- a/src/main/resources/static/custom/bloghaoTag.js
+++ b/src/main/resources/static/custom/bloghaoTag.js
@@ -35,6 +35,7 @@ function extractHeight(occupied, width, height) {
super();
this.options = {
src: this.getAttribute("src") || "",
+ page: +(this.getAttribute("page") || "1"),
width: this.getAttribute("width") || "100%",
height: this.getAttribute("height") || "800",
};
@@ -56,9 +57,8 @@ function extractHeight(occupied, width, height) {
super();
this.options = {
bvid: this.getAttribute("bvid"),
- page: +(this.getAttribute("page") || "1"),
width: this.getAttribute("width") || "100%",
- height: this.getAttribute("height") || "500",
+ height: this.getAttribute("height") || "500"
};
this.render();
}
@@ -67,7 +67,11 @@ function extractHeight(occupied, width, height) {
const realHeight = extractHeight(this.parentElement.offsetWidth, this.options.width, this.options.height);
this.setAttribute("height", realHeight);
this.innerHTML = `
-
`;
+
`;
}
}
diff --git a/src/main/resources/static/custom/customEle.css b/src/main/resources/static/custom/customEle.css
index 0690a89..6f2e80c 100644
--- a/src/main/resources/static/custom/customEle.css
+++ b/src/main/resources/static/custom/customEle.css
@@ -39,6 +39,10 @@
border-radius: 8px;
}
+/*#bloghao-img-card{*/
+/* margin: 0 auto;*/
+/* text-align: center;*/
+/*}*/
#bloghao-img-thumb{
margin-bottom: -15px;
}
diff --git a/src/main/resources/static/custom/swipperExecute.js b/src/main/resources/static/custom/swipperExecute.js
index 78c9c9d..dd25e3d 100644
--- a/src/main/resources/static/custom/swipperExecute.js
+++ b/src/main/resources/static/custom/swipperExecute.js
@@ -33,6 +33,7 @@
mousewheel: true,
effect: 'cards'
})
+ console.log("cardzhixing",999)
break;
case "thumbs":
console.log("thumbs")