From bb7db62b1663c3b30830e1604731c2197f46af75 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: Wed, 30 Nov 2022 09:18:23 +0800
Subject: [PATCH] 物资
---
static/loginPage.js/login.js | 48 ++++++++++++++++++++++++------------------------
1 files changed, 24 insertions(+), 24 deletions(-)
diff --git a/static/loginPage.js/login.js b/static/loginPage.js/login.js
index 431ef23..075087b 100644
--- a/static/loginPage.js/login.js
+++ b/static/loginPage.js/login.js
@@ -157,9 +157,9 @@
pJS.fn.retinaInit = function(){
if(pJS.retina_detect && window.devicePixelRatio > 1){
- pJS.canvas.pxratio = window.devicePixelRatio;
+ pJS.canvas.pxratio = window.devicePixelRatio;
pJS.tmp.retina = true;
- }
+ }
else{
pJS.canvas.pxratio = 1;
pJS.tmp.retina = false;
@@ -363,7 +363,7 @@
this.vx_i = this.vx;
this.vy_i = this.vy;
-
+
/* if shape is image */
@@ -392,7 +392,7 @@
}
}
-
+
};
@@ -402,7 +402,7 @@
var p = this;
if(p.radius_bubble != undefined){
- var radius = p.radius_bubble;
+ var radius = p.radius_bubble;
}else{
var radius = p.radius;
}
@@ -491,9 +491,9 @@
pJS.canvas.ctx.lineWidth = pJS.particles.shape.stroke.width;
pJS.canvas.ctx.stroke();
}
-
+
pJS.canvas.ctx.fill();
-
+
};
@@ -664,7 +664,7 @@
pJS.tmp.count_svg = 0;
pJS.fn.particlesEmpty();
pJS.fn.canvasClear();
-
+
/* restart */
pJS.fn.vendors.start();
@@ -684,14 +684,14 @@
var opacity_line = pJS.particles.line_linked.opacity - (dist / (1/pJS.particles.line_linked.opacity)) / pJS.particles.line_linked.distance;
- if(opacity_line > 0){
-
+ if(opacity_line > 0){
+
/* style */
var color_line = pJS.particles.line_linked.color_rgb_line;
pJS.canvas.ctx.strokeStyle = 'rgba('+color_line.r+','+color_line.g+','+color_line.b+','+opacity_line+')';
pJS.canvas.ctx.lineWidth = pJS.particles.line_linked.width;
//pJS.canvas.ctx.lineCap = 'round'; /* performance issue */
-
+
/* path */
pJS.canvas.ctx.beginPath();
pJS.canvas.ctx.moveTo(p1.x, p1.y);
@@ -725,7 +725,7 @@
p2.vy += ay;
}
-
+
}
@@ -805,7 +805,7 @@
if(dist_mouse <= pJS.interactivity.modes.bubble.distance){
if(ratio >= 0 && pJS.interactivity.status == 'mousemove'){
-
+
/* size */
if(pJS.interactivity.modes.bubble.size != pJS.particles.size.value){
@@ -854,7 +854,7 @@
if(pJS.interactivity.status == 'mouseleave'){
init();
}
-
+
}
/* on click event */
@@ -933,7 +933,7 @@
repulseRadius = pJS.interactivity.modes.repulse.distance,
velocity = 100,
repulseFactor = clamp((1/repulseRadius)*(-1*Math.pow(dist_mouse/repulseRadius,2)+1)*repulseRadius*velocity, 0, 50);
-
+
var pos = {
x: p.x + normVec.x * repulseFactor,
y: p.y + normVec.y * repulseFactor
@@ -946,7 +946,7 @@
p.x = pos.x;
p.y = pos.y;
}
-
+
}
@@ -1001,7 +1001,7 @@
// }else{
// process();
// }
-
+
}else{
@@ -1009,7 +1009,7 @@
p.vx = p.vx_i;
p.vy = p.vy_i;
-
+
}
}
@@ -1039,7 +1039,7 @@
pJS.canvas.ctx.strokeStyle = 'rgba('+color_line.r+','+color_line.g+','+color_line.b+','+opacity_line+')';
pJS.canvas.ctx.lineWidth = pJS.particles.line_linked.width;
//pJS.canvas.ctx.lineCap = 'round'; /* performance issue */
-
+
/* path */
pJS.canvas.ctx.beginPath();
pJS.canvas.ctx.moveTo(p.x, p.y);
@@ -1155,7 +1155,7 @@
}
});
-
+
}
@@ -1359,7 +1359,7 @@
pJS.fn.vendors.init();
pJS.fn.vendors.draw();
}
-
+
}
}else{
@@ -1406,7 +1406,7 @@
pJS.fn.vendors.eventsListeners();
pJS.fn.vendors.start();
-
+
};
@@ -1520,7 +1520,7 @@
};
window.particlesJS.load = function(tag_id, path_config_json, callback){
-
+debugger
/* load json config */
var xhr = new XMLHttpRequest();
xhr.open('GET', path_config_json);
@@ -1542,4 +1542,4 @@
}
export {
loginBg
-}
\ No newline at end of file
+}
--
Gitblit v1.9.2