diff --git a/index.html b/index.html
index 21a4aab..2ddb06a 100644
--- a/index.html
+++ b/index.html
@@ -36,7 +36,6 @@
点击缩放
- 点击缩放
点击缩放
- 点击缩放
下载
diff --git a/main.js b/main.js
index 3d0b4b0..d3beb4a 100644
--- a/main.js
+++ b/main.js
@@ -3,6 +3,7 @@ let canvass = [], imgs = []
let pic_info
let multi
let imgh = [0, 0, 0]
+let ani_mode = 0
let vh = window.innerHeight / 100;
let vw = window.innerWidth / 100;;
@@ -157,6 +158,7 @@ function processFiles(files) {
if (canvas.width > 60 * vw) image.setAttribute("width", 60 * vw + "px")
document.getElementById("c1").appendChild(image)
document.getElementById("c1").style.width = 70 * vw + "px"
+ document.getElementById("c1").style['justify-content'] = "center"
imgs.push(image);
@@ -309,4 +311,14 @@ function saveImg() {
saveAs(blob, "yiipic.png");
});
}
+}
+
+function animatePic() {
+ ani_mode = !ani_mode
+ if(ani_mode){
+ document.getElementById("ani_but").style.color = "red"
+ }
+ else {
+ document.getElementById("ani_but").style.color = "black"
+ }
}
\ No newline at end of file