+888 0444 0444 Rent VIP
+888 0444 0888 Rent VIP
+888 0150 0150 Rent VIP
+888 0626 5914 Rent
+888 0274 1983 Rent
+888 0495 6712 Rent
+888 0375 4962 Rent
+888 0759 6314 Rent
+888 0416 2079 Rent
+888 0832 7494 Rent
+888 0941 4753 Rent
+888 0610 7324 Rent
+888 0942 1367 Rent
+888 0735 1294 Rent
+888 0743 6947 Rent
+888 0320 3715 Rent
onst dy = particle.y - otherParticle.y; const distance = Math.sqrt(dx * dx + dy * dy); if (distance < 150) { this.ctx.strokeStyle = `rgba(255, 255, 255, ${0.2 * (1 - distance/150)})`; this.ctx.lineWidth = 0.5; this.ctx.beginPath(); this.ctx.moveTo(particle.x, particle.y); this.ctx.lineTo(otherParticle.x, otherParticle.y); this.ctx.stroke(); } }); }); } animate() { this.draw(); requestAnimationFrame(() => this.animate()); } } // Initialize particle animation const numbersAnimation = new ParticleAnimation('particles-canvas'); // Language switch functionality const translations = { ru: { usernames: "Usernames", numbers: "Numbers", rentVip: "Арендовать VIP", pageTitle: "Numbers" }, en: { usernames: "Usernames", numbers: "Numbers", rentVip: "Rent VIP", pageTitle: "Numbers" } }; function changeLanguage(lang) { document.getElementById('usernames-link').textContent = translations[lang].usernames; document.getElementById('numbers-link').textContent = translations[lang].numbers; const rentButtons = document.querySelectorAll('.rent-button'); rentButtons.forEach(button => { if (button.id === 'rent-vip') { button.textContent = translations[lang].rentVip; } else { button.textContent = translations[lang].rentVip; //This line was changed to maintain consistency. There is no longer a 'rent' translation. } }); document.getElementById('ru-btn').classList.toggle('active', lang === 'ru'); document.getElementById('en-btn').classList.toggle('active', lang === 'en'); } // Set initial language changeLanguage('ru');