@sell Rent VIP
@null Rent VIP
@post Rent VIP
@cost Rent VIP
@song Rent VIP
@travel Rent
@trash Rent
@juicy Rent
@proud Rent
@deadly Rent
@torture Rent
@jealous Rent
@horrible Rent
lice(i + 1).forEach(otherParticle => { const dx = particle.x - otherParticle.x; const 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 usernamesAnimation = new ParticleAnimation('particles-canvas'); // Language switch functionality const translations = { ru: { usernames: "Usernames", numbers: "Numbers", rentVip: "Арендовать VIP", pageTitle: "Usernames" }, en: { usernames: "Usernames", numbers: "Numbers", rentVip: "Rent VIP", pageTitle: "Usernames" } }; 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'); document.getElementById('page-title').textContent = translations[lang].pageTitle; } // Set initial language changeLanguage('ru');