ارتباط با MZP
راههای ارتباطی با ما
هر سوال، پیشنهاد یا درخواستی دارید — ما اینجاییم و منتظر شنیدن از شما هستیم
پست الکترونیکی
درخواستهای خود را به ایمیل ما ارسال کنید تا پس از بررسی با شما تماس بگیریم
info@mzp.co.irارسال پیام
فرم زیر را تکمیل کنید — در اسرع وقت پاسخ میدهیم
پیام شما با موفقیت ارسال شد
خطا در ارسال پیام، دوباره تلاش کنید
/* ══ NETWORK ══ */
function initNet(id, n, spd, dist) {
var canvas = document.getElementById(id);
if (!canvas) return;
var ctx = canvas.getContext('2d');
var fixed = id === 'global-net';
var nodes = [], mouse = { x: -9999, y: -9999 };
function W() { return fixed ? window.innerWidth : canvas.parentElement.offsetWidth; }
function H() { return fixed ? window.innerHeight : canvas.parentElement.offsetHeight; }
function build() {
canvas.width = W(); canvas.height = H(); nodes = [];
for (var i = 0; i < n; i++) {
nodes.push({
x: Math.random()*canvas.width, y: Math.random()*canvas.height,
vx: (Math.random()-.5)*spd, vy: (Math.random()-.5)*spd,
r: Math.random()*1.8+.6, op: Math.random()*.32+.12
});
}
}
(fixed ? window : canvas.parentElement).addEventListener('mousemove', function(e) {
if (fixed) { mouse.x = e.clientX; mouse.y = e.clientY; }
else { var r = canvas.getBoundingClientRect(); mouse.x = e.clientX-r.left; mouse.y = e.clientY-r.top; }
});
if (!fixed) canvas.parentElement.addEventListener('mouseleave', function() { mouse.x=-9999; mouse.y=-9999; });
function tick() {
ctx.clearRect(0,0,canvas.width,canvas.height);
for (var i=0;i