Linux sothorn202 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 202.28.82.202 | : 216.73.216.9
pkexec version 0.105
Cant Read [ /etc/named.conf ]
iqtd
RED EYES BYPASS SHELL!
Terminal
Auto Root
Adminer
Backdoor Destroyer
Kernel Exploit
Lock Shell
Lock File
Create User
+ Create Folder
+ Create File
/
home /
lifelonglearn /
commert /
accout /
js /
[ HOME SHELL ]
NAME
SIZE
PERMISSION
ACTION
autocomplete.js
8.04
KB
-rwxr-xr-x
calendar.js
16.46
KB
-rwxr-xr-x
clock.js
2.76
KB
-rwxr-xr-x
common.js
22.6
KB
-rwxr-xr-x
datalist.js
8.23
KB
-rwxr-xr-x
ddmenu.js
7.72
KB
-rwxr-xr-x
ddpanel.js
2.1
KB
-rwxr-xr-x
dragdrop.js
2.62
KB
-rwxr-xr-x
editinplace.js
2.8
KB
-rwxr-xr-x
facebook.js
2.14
KB
-rwxr-xr-x
gajax.js
139.73
KB
-rwxr-xr-x
gbanner.js
7.88
KB
-rwxr-xr-x
google.js
1.9
KB
-rwxr-xr-x
graphs.js
36.78
KB
-rwxr-xr-x
inputgroup.js
3.37
KB
-rwxr-xr-x
loader.js
5.9
KB
-rwxr-xr-x
multiselect.js
2.61
KB
-rwxr-xr-x
pdpa.js
1.73
KB
-rwxr-xr-x
range.js
9.47
KB
-rwxr-xr-x
select.js
8.28
KB
-rwxr-xr-x
spline.js
5.58
KB
-rwxr-xr-x
table.js
19.77
KB
-rwxr-xr-x
uploads.js
11.4
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : spline.js
/** * draw Spline (bezire curve) * * @filesource js/spline.js * @link https://www.kotchasan.com/ * @copyright 2016 Goragod.com * @license https://www.kotchasan.com/license/ */ var Spline = (function(document) { "use strict"; var Spline = function(canvas, options) { var opts = options || {}; this.velocityFilterWeight = opts.velocityFilterWeight || 0.7; this.minWidth = opts.minWidth || 0.5; this.maxWidth = opts.maxWidth || 2.5; this.penColor = opts.penColor || 'rgb(0, 0, 0)'; this.minPointDistance = opts.minPointDistance || 3; this._ctx = canvas.getContext("2d"); this._ctx.lineCap = 'round'; this.reset(); }; Spline.prototype.reset = function() { this.points = []; this._lastVelocity = 0; this._lastWidth = (this.minWidth + this.maxWidth) / 2; this._ctx.fillStyle = this.penColor; }; Spline.prototype.add = function(x, y) { var point = new Point(x, y); if (this._isPointToBeUsed(point)) { this.addPoint(point); } }; Spline.prototype._isPointToBeUsed = function(point) { if (this.minPointDistance) { var points = this.points; if (points && points.length) { var lastPoint = points[points.length - 1]; if (point.distanceTo(lastPoint) < this.minPointDistance) { return false; } } } return true; }; Spline.prototype.addPoint = function(point) { var points = this.points, c2, c3, curve, tmp; points.push(point); if (points.length > 2) { if (points.length === 3) { points.unshift(points[0]); } tmp = this._calculateCurveControlPoints(points[0], points[1], points[2]); c2 = tmp.c2; tmp = this._calculateCurveControlPoints(points[1], points[2], points[3]); c3 = tmp.c1; curve = new Bezier(points[1], c2, c3, points[2]); this._addCurve(curve); points.shift(); } }; Spline.prototype._calculateCurveControlPoints = function(s1, s2, s3) { var dx1 = s1.x - s2.x, dy1 = s1.y - s2.y, dx2 = s2.x - s3.x, dy2 = s2.y - s3.y, m1 = { x: (s1.x + s2.x) / 2.0, y: (s1.y + s2.y) / 2.0 }, m2 = { x: (s2.x + s3.x) / 2.0, y: (s2.y + s3.y) / 2.0 }, l1 = Math.sqrt(1.0 * dx1 * dx1 + dy1 * dy1), l2 = Math.sqrt(1.0 * dx2 * dx2 + dy2 * dy2), dxm = (m1.x - m2.x), dym = (m1.y - m2.y), k = l2 / (l1 + l2), cm = { x: m2.x + dxm * k, y: m2.y + dym * k }, tx = s2.x - cm.x, ty = s2.y - cm.y; return { c1: new Point(m1.x + tx, m1.y + ty), c2: new Point(m2.x + tx, m2.y + ty) }; }; Spline.prototype._addCurve = function(curve) { var startPoint = curve.startPoint, endPoint = curve.endPoint, velocity, newWidth; velocity = endPoint.velocityFrom(startPoint); velocity = this.velocityFilterWeight * velocity + (1 - this.velocityFilterWeight) * this._lastVelocity; newWidth = this._strokeWidth(velocity); this._drawCurve(curve, this._lastWidth, newWidth); this._lastVelocity = velocity; this._lastWidth = newWidth; }; Spline.prototype._drawCurve = function(curve, startWidth, endWidth) { var widthDelta = endWidth - startWidth, drawSteps, width, i, t, tt, ttt, u, uu, uuu, x, y; drawSteps = Math.floor(curve.length()); this._ctx.beginPath(); for (i = 0; i < drawSteps; i++) { t = i / drawSteps; tt = t * t; ttt = tt * t; u = 1 - t; uu = u * u; uuu = uu * u; x = uuu * curve.startPoint.x; x += 3 * uu * t * curve.control1.x; x += 3 * u * tt * curve.control2.x; x += ttt * curve.endPoint.x; y = uuu * curve.startPoint.y; y += 3 * uu * t * curve.control1.y; y += 3 * u * tt * curve.control2.y; y += ttt * curve.endPoint.y; width = startWidth + ttt * widthDelta; this._drawPoint(x, y, width); } this._ctx.closePath(); this._ctx.fill(); }; Spline.prototype._drawPoint = function(x, y, size) { this._ctx.moveTo(x, y); this._ctx.arc(x, y, size, 0, 2 * Math.PI, false); }; Spline.prototype._strokeWidth = function(velocity) { return Math.max(this.maxWidth / (velocity + 1), this.minWidth); }; var Point = function(x, y, time) { this.x = x; this.y = y; this.time = time || new Date().getTime(); }; Point.prototype.velocityFrom = function(start) { return (this.time !== start.time) ? this.distanceTo(start) / (this.time - start.time) : 1; }; Point.prototype.distanceTo = function(start) { return Math.sqrt(Math.pow(this.x - start.x, 2) + Math.pow(this.y - start.y, 2)); }; var Bezier = function(startPoint, control1, control2, endPoint) { this.startPoint = startPoint; this.control1 = control1; this.control2 = control2; this.endPoint = endPoint; }; Bezier.prototype.length = function() { var steps = 10, length = 0, i, t, cx, cy, px, py, xdiff, ydiff; for (i = 0; i <= steps; i++) { t = i / steps; cx = this._point(t, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x); cy = this._point(t, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y); if (i > 0) { xdiff = cx - px; ydiff = cy - py; length += Math.sqrt(xdiff * xdiff + ydiff * ydiff); } px = cx; py = cy; } return length; }; Bezier.prototype._point = function(t, start, c1, c2, end) { return start * (1.0 - t) * (1.0 - t) * (1.0 - t) + 3.0 * c1 * (1.0 - t) * (1.0 - t) * t + 3.0 * c2 * (1.0 - t) * t * t + end * t * t * t; }; return Spline; })(document);
Close