document.addEventListener('DOMContentLoaded', function() { function adjustHeaderSpacer() { const header = document.querySelector('.fixed-header-container'); const spacer = document.querySelector('.header-spacer'); const stickyContainer = document.querySelector('.sticky-container'); if (header && spacer && stickyContainer) { const headerHeight = header.offsetHeight; const stickyHeight = stickyContainer.offsetHeight; const totalOffset = headerHeight + stickyHeight + 20; document.documentElement.style.setProperty('--header-height', headerHeight + 'px'); document.documentElement.style.setProperty('--sticky-height', stickyHeight + 'px'); document.documentElement.style.setProperty('--total-offset', totalOffset + 'px'); document.querySelectorAll('#vps, #resel, #host, #domains, #shop').forEach(section => { section.style.scrollMarginTop = totalOffset + 'px'; }); spacer.style.height = headerHeight + 'px'; stickyContainer.style.top = headerHeight + 'px'; } } adjustHeaderSpacer(); window.addEventListener('resize', adjustHeaderSpacer); const baseUrl = window.location.origin; const desktopProfileBtn = document.getElementById('desktopProfileBtn'); const desktopProfileDropdown = document.getElementById('desktopProfileDropdown'); if (desktopProfileBtn && desktopProfileDropdown) { desktopProfileBtn.addEventListener('click', function(e) { e.stopPropagation(); desktopProfileDropdown.classList.toggle('show'); }); document.addEventListener('click', function(e) { if (!desktopProfileDropdown.contains(e.target) && !desktopProfileBtn.contains(e.target)) { desktopProfileDropdown.classList.remove('show'); } }); } const profileBtn = document.getElementById('profileBtn'); const profileDropdown = document.getElementById('profileDropdown'); if (profileBtn && profileDropdown) { profileBtn.addEventListener('click', function(e) { e.stopPropagation(); profileDropdown.classList.toggle('show'); }); document.addEventListener('click', function(e) { if (!profileDropdown.contains(e.target) && !profileBtn.contains(e.target)) { profileDropdown.classList.remove('show'); } }); } const domainTariffs = [ { id: '4', ext: 'click', regPrice: '2.19', renewPrice: '23.43' },{ id: '5', ext: 'digital', regPrice: '2.19', renewPrice: '73.99' },{ id: '6', ext: 'lat', regPrice: '2.74', renewPrice: '57.90' },{ id: '7', ext: 'world', regPrice: '3.29', renewPrice: '73.99' },{ id: '8', ext: 'life', regPrice: '3.29', renewPrice: '64.80' },{ id: '9', ext: 'today', regPrice: '3.29', renewPrice: '51.01' },{ id: '10', ext: 'ink', regPrice: '3.89', renewPrice: '46.41' },{ id: '11', ext: 'wiki', regPrice: '3.89', renewPrice: '46.41' },{ id: '12', ext: 'fit', regPrice: '3.89', renewPrice: '55.60' },{ id: '13', ext: 'work', regPrice: '3.89', renewPrice: '18.83' },{ id: '14', ext: 'pics', regPrice: '4.33', renewPrice: '57.90' },{ id: '15', ext: 'mom', regPrice: '4.33', renewPrice: '57.90' },{ id: '16', ext: 'lol', regPrice: '4.33', renewPrice: '57.90' },{ id: '17', ext: 'xyz', regPrice: '4.33', renewPrice: '28.24' },{ id: '18', ext: 'monster', regPrice: '4.33', renewPrice: '28.24' },{ id: '19', ext: 'beauty', regPrice: '4.33', renewPrice: '28.24' },{ id: '20', ext: 'makeup', regPrice: '4.33', renewPrice: '28.24' },{ id: '21', ext: 'skin', regPrice: '4.33', renewPrice: '28.24' },{ id: '22', ext: 'hair', regPrice: '4.33', renewPrice: '28.24' },{ id: '23', ext: 'quest', regPrice: '4.33', renewPrice: '28.24' },{ id: '24', ext: 'homes', regPrice: '4.33', renewPrice: '28.24' },{ id: '25', ext: 'autos', regPrice: '4.33', renewPrice: '28.24' },{ id: '26', ext: 'motorcycles', regPrice: '4.33', renewPrice: '28.24' },{ id: '27', ext: 'boats', regPrice: '4.33', renewPrice: '28.24' },{ id: '28', ext: 'yachts', regPrice: '4.33', renewPrice: '28.24' },{ id: '29', ext: 'cards', regPrice: '4.40', renewPrice: '69.39' },{ id: '30', ext: 'info', regPrice: '4.40', renewPrice: '44.11' },{ id: '31', ext: 'rest', regPrice: '4.40', renewPrice: '57.90' },{ id: '32', ext: 'agency', regPrice: '4.40', renewPrice: '55.60' },{ id: '33', ext: 'business', regPrice: '4.40', renewPrice: '34.92' },{ id: '34', ext: 'company', regPrice: '4.40', renewPrice: '37.22' },{ id: '35', ext: 'coupons', regPrice: '4.40', renewPrice: '96.97' },{ id: '36', ext: 'guru', regPrice: '4.40', renewPrice: '76.29' },{ id: '37', ext: 'live', regPrice: '4.40', renewPrice: '57.90' },{ id: '38', ext: 'best', regPrice: '4.40', renewPrice: '34.92' },{ id: '39', ext: 'art', regPrice: '5.04', renewPrice: '46.41' },{ id: '40', ext: 'watch', regPrice: '5.50', renewPrice: '78.59' },{ id: '41', ext: 'wtf', regPrice: '5.50', renewPrice: '64.80' },{ id: '42', ext: 'auction', regPrice: '5.50', renewPrice: '64.80' },{ id: '43', ext: 'pro', regPrice: '5.50', renewPrice: '44.11' },{ id: '44', ext: 'boutique', regPrice: '5.50', renewPrice: '57.90' },{ id: '45', ext: 'run', regPrice: '5.50', renewPrice: '48.71' },{ id: '46', ext: 'help', regPrice: '6.61', renewPrice: '57.90' },{ id: '47', ext: 'deals', regPrice: '6.61', renewPrice: '69.39' },{ id: '48', ext: 'shop', regPrice: '6.61', renewPrice: '88.38' },{ id: '49', ext: 'republican', regPrice: '6.61', renewPrice: '57.90' },{ id: '50', ext: 'za.com', regPrice: '6.61', renewPrice: '687.20' },{ id: '51', ext: 'ru.com', regPrice: '6.61', renewPrice: '319.46' },{ id: '52', ext: 'bar', regPrice: '6.61', renewPrice: '115.36' },{ id: '53', ext: 'dog', regPrice: '6.61', renewPrice: '115.36' },{ id: '54', ext: 'email', regPrice: '6.61', renewPrice: '55.60' },{ id: '55', ext: 'sale', regPrice: '6.61', renewPrice: '69.39' },{ id: '56', ext: 'team', regPrice: '6.61', renewPrice: '64.80' },{ id: '576', ext: 'sa.com', regPrice: '6.61', renewPrice: '687.20' },{ id: '57', ext: 'space', regPrice: '6.63', renewPrice: '46.41' },{ id: '58', ext: 'online', regPrice: '6.63', renewPrice: '57.90' },{ id: '59', ext: 'website', regPrice: '6.63', renewPrice: '46.41' },{ id: '60', ext: 'store', regPrice: '6.63', renewPrice: '92.38' },{ id: '61', ext: 'blog', regPrice: '7.34', renewPrice: '46.41' },{ id: '62', ext: 'it.com', regPrice: '7.71', renewPrice: '57.44' },{ id: '63', ext: 'mobi', regPrice: '7.71', renewPrice: '69.39' },{ id: '64', ext: 'site', regPrice: '7.74', renewPrice: '57.90' },{ id: '65', ext: 'us', regPrice: '8.04', renewPrice: '14.92' },{ id: '66', ext: 'club', regPrice: '8.49', renewPrice: '30.32' },{ id: '67', ext: 'vip', regPrice: '8.49', renewPrice: '30.32' },{ id: '68', ext: 'works', regPrice: '8.82', renewPrice: '69.39' },{ id: '69', ext: 'builders', regPrice: '8.82', renewPrice: '62.50' },{ id: '70', ext: 'camp', regPrice: '8.82', renewPrice: '110.77' },{ id: '71', ext: 'discount', regPrice: '8.82', renewPrice: '53.31' },{ id: '72', ext: 'reviews', regPrice: '8.82', renewPrice: '110.77' },{ id: '73', ext: 'rip', regPrice: '8.82', renewPrice: '41.81' },{ id: '74', ext: 'cafe', regPrice: '8.82', renewPrice: '92.38' },{ id: '75', ext: 'center', regPrice: '8.82', renewPrice: '57.90' },{ id: '76', ext: 'city', regPrice: '8.82', renewPrice: '51.01' },{ id: '77', ext: 'directory', regPrice: '8.82', renewPrice: '48.71' },{ id: '78', ext: 'golf', regPrice: '8.82', renewPrice: '115.36' },{ id: '79', ext: 'media', regPrice: '8.82', renewPrice: '80.89' },{ id: '80', ext: 'network', regPrice: '8.82', renewPrice: '62.50' },{ id: '81', ext: 'fun', regPrice: '8.84', renewPrice: '57.90' },{ id: '82', ext: 'com.de', regPrice: '9.90', renewPrice: '9.90' },{ id: '83', ext: 'delivery', regPrice: '9.92', renewPrice: '110.77' },{ id: '84', ext: 'recipes', regPrice: '9.92', renewPrice: '138.35' },{ id: '85', ext: 'wine', regPrice: '11.03', renewPrice: '106.17' },{ id: '86', ext: 'contractors', regPrice: '11.03', renewPrice: '62.50' },{ id: '87', ext: 'creditcard', regPrice: '11.03', renewPrice: '287.74' },{ id: '88', ext: 'democrat', regPrice: '11.03', renewPrice: '57.90' },{ id: '89', ext: 'day', regPrice: '11.03', renewPrice: '23.43' },{ id: '90', ext: 'page', regPrice: '11.03', renewPrice: '23.43' },{ id: '91', ext: 'gifts', regPrice: '11.03', renewPrice: '64.80' },{ id: '92', ext: 'holiday', regPrice: '11.03', renewPrice: '115.36' },{ id: '93', ext: 'immo', regPrice: '11.03', renewPrice: '62.50' },{ id: '94', ext: 'insure', regPrice: '11.03', renewPrice: '129.15' },{ id: '95', ext: 'jetzt', regPrice: '11.03', renewPrice: '41.81' },{ id: '96', ext: 'kaufen', regPrice: '11.03', renewPrice: '53.31' },{ id: '97', ext: 'legal', regPrice: '11.03', renewPrice: '126.85' },{ id: '98', ext: 'pictures', regPrice: '11.03', renewPrice: '28.02' },{ id: '99', ext: 'school', regPrice: '11.03', renewPrice: '64.80' },{ id: '100', ext: 'solar', regPrice: '11.03', renewPrice: '115.36' },{ id: '101', ext: 'tienda', regPrice: '11.03', renewPrice: '106.17' },{ id: '102', ext: 'vacations', regPrice: '11.03', renewPrice: '69.39' },{ id: '103', ext: 'vision', regPrice: '11.03', renewPrice: '80.89' },{ id: '104', ext: 'voyage', regPrice: '11.03', renewPrice: '103.87' },{ id: '105', ext: 'dev', regPrice: '11.03', renewPrice: '26.50' },{ id: '106', ext: 'app', regPrice: '11.03', renewPrice: '30.92' },{ id: '107', ext: 'bio', regPrice: '11.03', renewPrice: '129.15' },{ id: '108', ext: 'kim', regPrice: '11.03', renewPrice: '41.81' },{ id: '109', ext: 'love', regPrice: '11.03', renewPrice: '51.01' },{ id: '110', ext: 'forum', regPrice: '11.03', renewPrice: '69.39' },{ id: '111', ext: 'markets', regPrice: '11.03', renewPrice: '34.92' },{ id: '112', ext: 'capital', regPrice: '11.03', renewPrice: '126.85' },{ id: '113', ext: 'boo', regPrice: '11.03', renewPrice: '23.43' },{ id: '114', ext: 'chat', regPrice: '11.03', renewPrice: '80.89' },{ id: '115', ext: 'cheap', regPrice: '11.03', renewPrice: '64.80' },{ id: '116', ext: 'rsvp', regPrice: '11.03', renewPrice: '23.43' },{ id: '117', ext: 'cool', regPrice: '11.03', renewPrice: '80.89' },{ id: '118', ext: 'enterprises', regPrice: '11.03', renewPrice: '62.50' },{ id: '119', ext: 'fitness', regPrice: '11.03', renewPrice: '73.99' },{ id: '120', ext: 'gold', regPrice: '11.03', renewPrice: '184.31' },{ id: '121', ext: 'institute', regPrice: '11.03', renewPrice: '48.71' },{ id: '122', ext: 'irish', regPrice: '11.03', renewPrice: '39.51' },{ id: '123', ext: 'ltd', regPrice: '11.03', renewPrice: '55.60' },{ id: '124', ext: 'marketing', regPrice: '11.03', renewPrice: '73.99' },{ id: '125', ext: 'news', regPrice: '11.03', renewPrice: '57.90' },{ id: '126', ext: 'ninja', regPrice: '11.03', renewPrice: '55.60' },{ id: '127', ext: 'photography', regPrice: '11.03', renewPrice: '64.80' },{ id: '128', ext: 'host', regPrice: '11.03', renewPrice: '172.82' },{ id: '129', ext: 'press', regPrice: '11.03', renewPrice: '136.05' },{ id: '130', ext: 'repair', regPrice: '11.03', renewPrice: '64.80' },{ id: '131', ext: 'tours', regPrice: '11.03', renewPrice: '110.77' },{ id: '132', ext: 'town', regPrice: '11.03', renewPrice: '64.80' },{ id: '133', ext: 'de', regPrice: '11.78', renewPrice: '8.55' },{ id: '134', ext: 'biz', regPrice: '11.93', renewPrice: '37.22' },{ id: '135', ext: 'gripe', regPrice: '11.93', renewPrice: '11.93' },{ id: '136', ext: 'sarl', regPrice: '11.93', renewPrice: '11.93' },{ id: '137', ext: 'fyi', regPrice: '11.93', renewPrice: '11.93' },{ id: '138', ext: 'guide', regPrice: '12.13', renewPrice: '73.99' },{ id: '139', ext: 'exchange', regPrice: '12.13', renewPrice: '69.39' },{ id: '140', ext: 'group', regPrice: '12.13', renewPrice: '46.41' },{ id: '141', ext: 'properties', regPrice: '12.13', renewPrice: '69.39' },{ id: '142', ext: 'solutions', regPrice: '12.13', renewPrice: '55.60' },{ id: '143', ext: 'taxi', regPrice: '12.13', renewPrice: '110.77' },{ id: '144', ext: 'uk', regPrice: '12.53', renewPrice: '12.53' },{ id: '145', ext: 'co.uk', regPrice: '12.53', renewPrice: '12.53' },{ id: '146', ext: 'in', regPrice: '12.91', renewPrice: '28.69' },{ id: '147', ext: 'training', regPrice: '13.24', renewPrice: '73.99' },{ id: '148', ext: 'vin', regPrice: '13.24', renewPrice: '106.17' },{ id: '149', ext: 'church', regPrice: '13.24', renewPrice: '103.87' },{ id: '150', ext: 'fan', regPrice: '13.24', renewPrice: '96.97' },{ id: '151', ext: 'green', regPrice: '13.24', renewPrice: '142.94' },{ id: '152', ext: 'cash', regPrice: '13.24', renewPrice: '69.39' },{ id: '153', ext: 'pet', regPrice: '13.24', renewPrice: '46.41' },{ id: '154', ext: 'codes', regPrice: '13.24', renewPrice: '126.85' },{ id: '155', ext: 'credit', regPrice: '13.24', renewPrice: '184.31' },{ id: '156', ext: 'engineering', regPrice: '13.24', renewPrice: '115.36' },{ id: '157', ext: 'expert', regPrice: '13.24', renewPrice: '110.77' },{ id: '158', ext: 'services', regPrice: '13.24', renewPrice: '69.39' },{ id: '159', ext: 'social', regPrice: '13.24', renewPrice: '73.99' },{ id: '160', ext: 'support', regPrice: '13.24', renewPrice: '48.71' },{ id: '161', ext: 'technology', regPrice: '13.24', renewPrice: '51.01' },{ id: '162', ext: 'eu', regPrice: '13.75', renewPrice: '12.91' },{ id: '163', ext: 'in.net', regPrice: '13.77', renewPrice: '13.77' },{ id: '578', ext: 'xn--q9jyb4c', regPrice: '14.10', renewPrice: '14.10' },{ id: '164', ext: 'rocks', regPrice: '14.34', renewPrice: '39.51' },{ id: '165', ext: 'singles', regPrice: '14.34', renewPrice: '60.20' },{ id: '166', ext: 'style', regPrice: '14.34', renewPrice: '69.39' },{ id: '167', ext: 'co.nl', regPrice: '15.29', renewPrice: '15.29' },{ id: '168', ext: 'gb.net', regPrice: '15.38', renewPrice: '15.38' },{ id: '169', ext: 'engineer', regPrice: '15.45', renewPrice: '69.39' },{ id: '170', ext: 'farm', regPrice: '15.45', renewPrice: '69.39' },{ id: '171', ext: 'partners', regPrice: '15.45', renewPrice: '126.85' },{ id: '172', ext: 'isla.pr', regPrice: '15.96', renewPrice: '15.96' },{ id: '173', ext: 'jp.net', regPrice: '16.07', renewPrice: '16.07' },{ id: '174', ext: 'cam', regPrice: '16.53', renewPrice: '32.62' },{ id: '577', ext: 'management', regPrice: '16.55', renewPrice: '46.41' },{ id: '175', ext: 'zone', regPrice: '16.55', renewPrice: '69.39' },{ id: '176', ext: 'bingo', regPrice: '16.55', renewPrice: '94.68' },{ id: '177', ext: 'cruises', regPrice: '16.55', renewPrice: '99.27' },{ id: '178', ext: 'degree', regPrice: '16.55', renewPrice: '92.38' },{ id: '179', ext: 'fail', regPrice: '16.55', renewPrice: '69.39' },{ id: '180', ext: 'florist', regPrice: '16.55', renewPrice: '57.90' },{ id: '181', ext: 'hockey', regPrice: '16.55', renewPrice: '106.17' },{ id: '182', ext: 'immobilien', regPrice: '16.55', renewPrice: '67.10' },{ id: '183', ext: 'lease', regPrice: '16.55', renewPrice: '99.27' },{ id: '184', ext: 'lighting', regPrice: '16.55', renewPrice: '41.81' },{ id: '185', ext: 'limited', regPrice: '16.55', renewPrice: '64.80' },{ id: '186', ext: 'mortgage', regPrice: '16.55', renewPrice: '110.77' },{ id: '187', ext: 'plumbing', regPrice: '16.55', renewPrice: '129.15' },{ id: '188', ext: 'rehab', regPrice: '16.55', renewPrice: '64.80' },{ id: '189', ext: 'salon', regPrice: '16.55', renewPrice: '101.57' },{ id: '190', ext: 'shopping', regPrice: '16.55', renewPrice: '53.31' },{ id: '191', ext: 'tires', regPrice: '16.55', renewPrice: '161.33' },{ id: '192', ext: 'video', regPrice: '16.55', renewPrice: '64.80' },{ id: '193', ext: 'bet', regPrice: '16.55', renewPrice: '46.41' },{ id: '194', ext: 'bike', regPrice: '16.55', renewPrice: '69.39' },{ id: '195', ext: 'red', regPrice: '16.55', renewPrice: '41.81' },{ id: '196', ext: 'poker', regPrice: '16.55', renewPrice: '119.96' },{ id: '197', ext: 'pink', regPrice: '16.55', renewPrice: '46.41' },{ id: '198', ext: 'doctor', regPrice: '16.55', renewPrice: '207.30' },{ id: '199', ext: 'estate', regPrice: '16.55', renewPrice: '69.39' },{ id: '200', ext: 'international', regPrice: '16.55', renewPrice: '55.60' },{ id: '201', ext: 'investments', regPrice: '16.55', renewPrice: '230.28' },{ id: '202', ext: 'kitchen', regPrice: '16.55', renewPrice: '115.36' },{ id: '203', ext: 'money', regPrice: '16.55', renewPrice: '62.50' },{ id: '204', ext: 'photos', regPrice: '16.55', renewPrice: '53.31' },{ id: '205', ext: 'plus', regPrice: '16.55', renewPrice: '96.97' },{ id: '206', ext: 'productions', regPrice: '16.55', renewPrice: '71.69' },{ id: '207', ext: 'rentals', regPrice: '16.55', renewPrice: '78.59' },{ id: '208', ext: 'report', regPrice: '16.55', renewPrice: '44.11' },{ id: '209', ext: 'tax', regPrice: '16.55', renewPrice: '119.96' },{ id: '210', ext: 'tips', regPrice: '16.55', renewPrice: '55.60' },{ id: '211', ext: 'construction', regPrice: '17.66', renewPrice: '69.39' },{ id: '212', ext: 'finance', regPrice: '17.66', renewPrice: '115.36' },{ id: '213', ext: 'fund', regPrice: '17.66', renewPrice: '126.85' },{ id: '214', ext: 'parts', regPrice: '17.66', renewPrice: '73.99' },{ id: '215', ext: 'express', regPrice: '18.76', renewPrice: '69.39' },{ id: '216', ext: 'rodeo', regPrice: '18.83', renewPrice: '18.83' },{ id: '217', ext: 'fans', regPrice: '18.83', renewPrice: '18.83' },{ id: '218', ext: 'com.se', regPrice: '19.14', renewPrice: '19.14' },{ id: '219', ext: 'industries', regPrice: '19.32', renewPrice: '80.89' },{ id: '220', ext: 'casino', regPrice: '19.87', renewPrice: '287.74' },{ id: '221', ext: 'dance', regPrice: '19.87', renewPrice: '48.71' },{ id: '222', ext: 'tech', regPrice: '19.87', renewPrice: '103.87' },{ id: '223', ext: 'show', regPrice: '19.87', renewPrice: '78.59' },{ id: '224', ext: 'tools', regPrice: '19.87', renewPrice: '64.80' },{ id: '225', ext: 'ceo', regPrice: '20.40', renewPrice: '195.81' },{ id: '226', ext: 'cc', regPrice: '20.64', renewPrice: '68.91' },{ id: '227', ext: 'co', regPrice: '20.66', renewPrice: '59.74' },{ id: '228', ext: 'qpon', regPrice: '20.84', renewPrice: '20.84' },{ id: '229', ext: 'energy', regPrice: '20.97', renewPrice: '207.30' },{ id: '230', ext: 'design', regPrice: '21.13', renewPrice: '92.38' },{ id: '231', ext: 'observer', regPrice: '21.13', renewPrice: '21.13' },{ id: '232', ext: 'trust', regPrice: '21.13', renewPrice: '21.13' },{ id: '256', ext: 'army', regPrice: '22.08', renewPrice: '69.39' },{ id: '257', ext: 'llc', regPrice: '22.08', renewPrice: '76.29' },{ id: '258', ext: 'shiksha', regPrice: '22.08', renewPrice: '92.38' },{ id: '259', ext: 'promo', regPrice: '22.08', renewPrice: '44.11' },{ id: '260', ext: 'organic', regPrice: '22.08', renewPrice: '152.14' },{ id: '261', ext: 'claims', regPrice: '22.08', renewPrice: '115.36' },{ id: '262', ext: 'clinic', regPrice: '22.08', renewPrice: '115.36' },{ id: '263', ext: 'coach', regPrice: '22.08', renewPrice: '138.35' },{ id: '264', ext: 'direct', regPrice: '22.08', renewPrice: '73.99' },{ id: '265', ext: 'family', regPrice: '22.08', renewPrice: '69.39' },{ id: '266', ext: 'forsale', regPrice: '22.08', renewPrice: '64.80' },{ id: '267', ext: 'games', regPrice: '22.08', renewPrice: '60.20' },{ id: '268', ext: 'haus', regPrice: '22.08', renewPrice: '60.20' },{ id: '269', ext: 'land', regPrice: '22.08', renewPrice: '73.99' },{ id: '270', ext: 'loans', regPrice: '22.08', renewPrice: '207.30' },{ id: '271', ext: 'mba', regPrice: '22.08', renewPrice: '69.39' },{ id: '272', ext: 'pizza', regPrice: '22.08', renewPrice: '115.36' },{ id: '273', ext: 'restaurant', regPrice: '22.08', renewPrice: '115.36' },{ id: '274', ext: 'software', regPrice: '22.08', renewPrice: '73.99' },{ id: '275', ext: 'toys', regPrice: '22.08', renewPrice: '115.36' },{ id: '233', ext: 'ventures', regPrice: '22.08', renewPrice: '106.17' },{ id: '234', ext: 'apartments', regPrice: '22.08', renewPrice: '101.57' },{ id: '235', ext: 'cab', regPrice: '22.08', renewPrice: '57.90' },{ id: '236', ext: 'clothing', regPrice: '22.08', renewPrice: '57.90' },{ id: '237', ext: 'community', regPrice: '22.08', renewPrice: '80.89' },{ id: '238', ext: 'domains', regPrice: '22.08', renewPrice: '76.29' },{ id: '239', ext: 'equipment', regPrice: '22.08', renewPrice: '51.01' },{ id: '240', ext: 'fish', regPrice: '22.08', renewPrice: '78.59' },{ id: '241', ext: 'football', regPrice: '22.08', renewPrice: '46.41' },{ id: '242', ext: 'jewelry', regPrice: '22.08', renewPrice: '115.36' },{ id: '243', ext: 'limo', regPrice: '22.08', renewPrice: '96.97' },{ id: '244', ext: 'maison', regPrice: '22.08', renewPrice: '101.57' },{ id: '245', ext: 'moda', regPrice: '22.08', renewPrice: '73.99' },{ id: '246', ext: 'schule', regPrice: '22.08', renewPrice: '51.01' },{ id: '247', ext: 'soccer', regPrice: '22.08', renewPrice: '46.41' },{ id: '248', ext: 'theater', regPrice: '22.08', renewPrice: '115.36' },{ id: '249', ext: 'university', regPrice: '22.08', renewPrice: '110.77' },{ id: '250', ext: 'villas', regPrice: '22.08', renewPrice: '106.17' },{ id: '251', ext: 'forex', regPrice: '22.08', renewPrice: '184.31' },{ id: '252', ext: 'broker', regPrice: '22.08', renewPrice: '64.80' },{ id: '253', ext: 'actor', regPrice: '22.08', renewPrice: '78.59' },{ id: '254', ext: 'lgbt', regPrice: '22.08', renewPrice: '142.94' },{ id: '255', ext: 'voto', regPrice: '22.08', renewPrice: '124.56' },{ id: '276', ext: 'mex.com', regPrice: '22.96', renewPrice: '22.96' },{ id: '277', ext: 'com', regPrice: '23.18', renewPrice: '22.43' },{ id: '278', ext: 'org', regPrice: '23.25', renewPrice: '23.25' },{ id: '279', ext: 'casa', regPrice: '23.43', renewPrice: '23.43' },{ id: '280', ext: 'dad', regPrice: '23.43', renewPrice: '23.43' },{ id: '281', ext: 'foo', regPrice: '23.43', renewPrice: '23.43' },{ id: '282', ext: 'mov', regPrice: '23.43', renewPrice: '23.43' },{ id: '283', ext: 'nexus', regPrice: '23.43', renewPrice: '23.43' },{ id: '284', ext: 'zip', regPrice: '23.43', renewPrice: '23.43' },{ id: '285', ext: 'camera', regPrice: '24.29', renewPrice: '103.87' },{ id: '286', ext: 'blue', regPrice: '24.29', renewPrice: '44.11' },{ id: '287', ext: 'academy', regPrice: '24.29', renewPrice: '83.18' },{ id: '288', ext: 'associates', regPrice: '24.29', renewPrice: '69.39' },{ id: '289', ext: 'bargains', regPrice: '24.29', renewPrice: '53.31' },{ id: '290', ext: 'dating', regPrice: '24.29', renewPrice: '115.36' },{ id: '291', ext: 'events', regPrice: '24.29', renewPrice: '80.89' },{ id: '292', ext: 'house', regPrice: '24.29', renewPrice: '78.59' },{ id: '293', ext: 'studio', regPrice: '24.29', renewPrice: '71.69' },{ id: '294', ext: 'systems', regPrice: '24.29', renewPrice: '62.50' },{ id: '295', ext: 'contact', regPrice: '25.72', renewPrice: '25.72' },{ id: '296', ext: 'coffee', regPrice: '26.50', renewPrice: '76.29' },{ id: '297', ext: 'net', regPrice: '26.79', renewPrice: '26.79' },{ id: '298', ext: 'radio.am', regPrice: '27.56', renewPrice: '27.56' },{ id: '299', ext: 'radio.fm', regPrice: '27.56', renewPrice: '27.56' },{ id: '300', ext: 'archi', regPrice: '27.60', renewPrice: '184.31' },{ id: '301', ext: 'desi', regPrice: '28.02', renewPrice: '28.02' },{ id: '302', ext: 'gr.com', regPrice: '28.93', renewPrice: '28.93' },{ id: '303', ext: 'luxury', regPrice: '29.17', renewPrice: '57.90' },{ id: '304', ext: 'consulting', regPrice: '29.81', renewPrice: '96.97' },{ id: '305', ext: 'co.lc', regPrice: '29.86', renewPrice: '29.86' },{ id: '306', ext: 'com.lc', regPrice: '29.86', renewPrice: '29.86' },{ id: '307', ext: 'l.lc', regPrice: '29.86', renewPrice: '29.86' },{ id: '308', ext: 'net.lc', regPrice: '29.86', renewPrice: '29.86' },{ id: '309', ext: 'org.lc', regPrice: '29.86', renewPrice: '29.86' },{ id: '310', ext: 'p.lc', regPrice: '29.86', renewPrice: '29.86' },{ id: '311', ext: 'okinawa', regPrice: '30.30', renewPrice: '30.30' },{ id: '312', ext: 'ryukyu', regPrice: '30.30', renewPrice: '30.30' },{ id: '313', ext: 'futbol', regPrice: '30.32', renewPrice: '30.32' },{ id: '314', ext: 'cl', regPrice: '30.32', renewPrice: '42.96' },{ id: '315', ext: 'cn.com', regPrice: '32.16', renewPrice: '68.93' },{ id: '316', ext: 'black', regPrice: '33.13', renewPrice: '115.36' },{ id: '317', ext: 'band', regPrice: '33.13', renewPrice: '55.60' },{ id: '318', ext: 'care', regPrice: '33.13', renewPrice: '78.59' },{ id: '319', ext: 'computer', regPrice: '33.13', renewPrice: '69.39' },{ id: '320', ext: 'financial', regPrice: '33.13', renewPrice: '103.87' },{ id: '321', ext: 'us.com', regPrice: '34.45', renewPrice: '34.45' },{ id: '322', ext: 'de.com', regPrice: '34.45', renewPrice: '34.45' },{ id: '323', ext: 'eu.com', regPrice: '34.45', renewPrice: '34.45' },{ id: '324', ext: 'us.org', regPrice: '34.45', renewPrice: '34.45' },{ id: '325', ext: 'pw', regPrice: '34.45', renewPrice: '34.45' },{ id: '326', ext: 'nagoya', regPrice: '34.92', renewPrice: '34.92' },{ id: '327', ext: 'yokohama', regPrice: '34.92', renewPrice: '34.92' },{ id: '328', ext: 'boston', regPrice: '34.92', renewPrice: '34.92' },{ id: '329', ext: 'miami', regPrice: '34.92', renewPrice: '34.92' },{ id: '330', ext: 'luxe', regPrice: '34.92', renewPrice: '34.92' },{ id: '331', ext: 'earth', regPrice: '34.92', renewPrice: '34.92' },{ id: '332', ext: 'college', regPrice: '34.92', renewPrice: '115.36' },{ id: '333', ext: 'rent', regPrice: '34.92', renewPrice: '115.36' },{ id: '334', ext: 'baby', regPrice: '34.92', renewPrice: '115.36' },{ id: '335', ext: 'uno', regPrice: '34.92', renewPrice: '34.92' },{ id: '336', ext: 'com.mx', regPrice: '36.71', renewPrice: '82.68' },{ id: '337', ext: 'bz', regPrice: '36.75', renewPrice: '36.75' },{ id: '338', ext: 'me', regPrice: '36.97', renewPrice: '36.97' },{ id: '339', ext: 'reisen', regPrice: '37.22', renewPrice: '37.22' },{ id: '340', ext: 'trading', regPrice: '37.22', renewPrice: '37.22' },{ id: '341', ext: 'exposed', regPrice: '39.51', renewPrice: '39.51' },{ id: '342', ext: 'place', regPrice: '39.51', renewPrice: '39.51' },{ id: '344', ext: 'id', regPrice: '40.20', renewPrice: '40.20' },{ id: '345', ext: 'lc', regPrice: '41.35', renewPrice: '41.35' },{ id: '346', ext: 'soy', regPrice: '41.81', renewPrice: '41.81' },{ id: '347', ext: 'graphics', regPrice: '41.81', renewPrice: '41.81' },{ id: '348', ext: 'gratis', regPrice: '41.81', renewPrice: '41.81' },{ id: '343', ext: 'az', regPrice: '42.00', renewPrice: '22.00' },{ id: '349', ext: 'supplies', regPrice: '44.11', renewPrice: '44.11' },{ id: '350', ext: 'travel', regPrice: '44.18', renewPrice: '264.76' },{ id: '351', ext: 'furniture', regPrice: '44.18', renewPrice: '184.31' },{ id: '352', ext: 'vote', regPrice: '44.18', renewPrice: '161.33' },{ id: '353', ext: 'ski', regPrice: '44.18', renewPrice: '115.36' },{ id: '354', ext: 'education', regPrice: '44.18', renewPrice: '62.50' },{ id: '355', ext: 'shoes', regPrice: '44.18', renewPrice: '115.36' },{ id: '356', ext: 'rio', regPrice: '44.73', renewPrice: '44.73' },{ id: '357', ext: 'co.com', regPrice: '45.95', renewPrice: '45.95' },{ id: '358', ext: 'accountant', regPrice: '46.37', renewPrice: '46.37' },{ id: '359', ext: 'bid', regPrice: '46.37', renewPrice: '46.37' },{ id: '360', ext: 'cricket', regPrice: '46.37', renewPrice: '46.37' },{ id: '361', ext: 'date', regPrice: '46.37', renewPrice: '46.37' },{ id: '362', ext: 'download', regPrice: '46.37', renewPrice: '46.37' },{ id: '363', ext: 'faith', regPrice: '46.37', renewPrice: '46.37' },{ id: '364', ext: 'loan', regPrice: '46.37', renewPrice: '46.37' },{ id: '365', ext: 'men', regPrice: '46.37', renewPrice: '46.37' },{ id: '366', ext: 'party', regPrice: '46.37', renewPrice: '46.37' },{ id: '367', ext: 'racing', regPrice: '46.37', renewPrice: '46.37' },{ id: '368', ext: 'review', regPrice: '46.37', renewPrice: '46.37' },{ id: '369', ext: 'science', regPrice: '46.37', renewPrice: '46.37' },{ id: '370', ext: 'stream', regPrice: '46.37', renewPrice: '46.37' },{ id: '371', ext: 'trade', regPrice: '46.37', renewPrice: '46.37' },{ id: '372', ext: 'webcam', regPrice: '46.37', renewPrice: '46.37' },{ id: '373', ext: 'win', regPrice: '46.37', renewPrice: '46.37' },{ id: '374', ext: 'cloud', regPrice: '46.39', renewPrice: '46.39' },{ id: '375', ext: 'ooo', regPrice: '46.39', renewPrice: '46.39' },{ id: '376', ext: 'how', regPrice: '46.41', renewPrice: '46.41' },{ id: '377', ext: 'supply', regPrice: '46.41', renewPrice: '46.41' },{ id: '378', ext: 'name', regPrice: '46.41', renewPrice: '46.41' },{ id: '379', ext: 'esq', regPrice: '46.41', renewPrice: '46.41' },{ id: '380', ext: 'phd', regPrice: '46.41', renewPrice: '46.41' },{ id: '381', ext: 'prof', regPrice: '46.41', renewPrice: '46.41' },{ id: '382', ext: 'co.no', regPrice: '46.41', renewPrice: '46.41' },{ id: '383', ext: 'co.in', regPrice: '47.25', renewPrice: '47.25' },{ id: '384', ext: 'net.in', regPrice: '47.25', renewPrice: '47.25' },{ id: '385', ext: 'org.in', regPrice: '47.25', renewPrice: '47.25' },{ id: '386', ext: 'accountants', regPrice: '48.60', renewPrice: '207.30' },{ id: '387', ext: 'foundation', regPrice: '49.86', renewPrice: '49.86' },{ id: '388', ext: 'charity', regPrice: '49.86', renewPrice: '49.86' },{ id: '389', ext: 'gives', regPrice: '49.86', renewPrice: '49.86' },{ id: '390', ext: 'giving', regPrice: '49.86', renewPrice: '49.86' },{ id: '391', ext: 'saarland', regPrice: '50.08', renewPrice: '50.08' },{ id: '392', ext: 'gallery', regPrice: '51.01', renewPrice: '51.01' },{ id: '393', ext: 'uk.com', regPrice: '52.27', renewPrice: '52.27' },{ id: '394', ext: 'uk.net', regPrice: '52.27', renewPrice: '52.27' },{ id: '395', ext: 'ruhr', regPrice: '52.75', renewPrice: '52.75' },{ id: '396', ext: 'asia', regPrice: '54.63', renewPrice: '54.63' },{ id: '397', ext: 'careers', regPrice: '55.23', renewPrice: '126.85' },{ id: '398', ext: 'ac', regPrice: '55.23', renewPrice: '55.23' },{ id: '399', ext: 'garden', regPrice: '55.60', renewPrice: '55.60' },{ id: '400', ext: 'cooking', regPrice: '55.60', renewPrice: '55.60' },{ id: '401', ext: 'vodka', regPrice: '55.60', renewPrice: '55.60' },{ id: '402', ext: 'beer', regPrice: '55.60', renewPrice: '55.60' },{ id: '403', ext: 'yoga', regPrice: '55.60', renewPrice: '55.60' },{ id: '404', ext: 'fashion', regPrice: '55.60', renewPrice: '55.60' },{ id: '405', ext: 'wedding', regPrice: '55.60', renewPrice: '55.60' },{ id: '406', ext: 'fishing', regPrice: '55.60', renewPrice: '55.60' },{ id: '407', ext: 'surf', regPrice: '55.60', renewPrice: '55.60' },{ id: '408', ext: 'horse', regPrice: '55.60', renewPrice: '55.60' },{ id: '409', ext: 'compare', regPrice: '55.60', renewPrice: '55.60' },{ id: '410', ext: 'select', regPrice: '55.60', renewPrice: '55.60' },{ id: '411', ext: 'tv', regPrice: '57.44', renewPrice: '57.44' },{ id: '412', ext: 'vc', regPrice: '57.44', renewPrice: '57.44' },{ id: '413', ext: 'com.vc', regPrice: '57.44', renewPrice: '57.44' },{ id: '414', ext: 'org.vc', regPrice: '57.44', renewPrice: '57.44' },{ id: '415', ext: 'gd', regPrice: '57.44', renewPrice: '57.44' },{ id: '416', ext: 'vg', regPrice: '57.44', renewPrice: '57.44' },{ id: '417', ext: 'buzz', regPrice: '57.90', renewPrice: '57.90' },{ id: '418', ext: 'abogado', regPrice: '57.90', renewPrice: '57.90' },{ id: '419', ext: 'photo', regPrice: '57.90', renewPrice: '57.90' },{ id: '420', ext: 'build', regPrice: '57.90', renewPrice: '57.90' },{ id: '421', ext: 'london', regPrice: '58.52', renewPrice: '58.52' },{ id: '422', ext: 'io', regPrice: '59.65', renewPrice: '99.43' },{ id: '423', ext: 'gay', regPrice: '62.50', renewPrice: '62.50' },{ id: '424', ext: 'courses', regPrice: '62.50', renewPrice: '62.50' },{ id: '425', ext: 'study', regPrice: '62.50', renewPrice: '62.50' },{ id: '426', ext: 'tel', regPrice: '62.50', renewPrice: '76.29' },{ id: '427', ext: 'cymru', regPrice: '62.81', renewPrice: '62.81' },{ id: '428', ext: 'hu.net', regPrice: '63.40', renewPrice: '63.40' },{ id: '429', ext: 'se.net', regPrice: '63.40', renewPrice: '63.40' },{ id: '430', ext: 'global', regPrice: '66.28', renewPrice: '172.82' },{ id: '431', ext: 'sh', regPrice: '66.28', renewPrice: '66.28' },{ id: '432', ext: 'flights', regPrice: '66.28', renewPrice: '103.87' },{ id: '433', ext: 'jpn.com', regPrice: '68.93', renewPrice: '68.93' },{ id: '434', ext: 'christmas', regPrice: '69.39', renewPrice: '69.39' },{ id: '435', ext: 'catering', regPrice: '69.39', renewPrice: '69.39' },{ id: '436', ext: 'tattoo', regPrice: '69.39', renewPrice: '69.39' },{ id: '437', ext: 'frl', regPrice: '69.39', renewPrice: '69.39' },{ id: '438', ext: 'pub', regPrice: '71.69', renewPrice: '71.69' },{ id: '439', ext: 'navy', regPrice: '73.99', renewPrice: '73.99' },{ id: '440', ext: 'vet', regPrice: '73.99', renewPrice: '73.99' },{ id: '441', ext: 'gl', regPrice: '74.45', renewPrice: '74.45' },{ id: '442', ext: 'br.com', regPrice: '75.83', renewPrice: '75.83' },{ id: '443', ext: 'movie', regPrice: '77.33', renewPrice: '621.01' },{ id: '444', ext: 'market', regPrice: '78.59', renewPrice: '78.59' },{ id: '579', ext: 'xn--czrs0t', regPrice: '80.89', renewPrice: '80.89' },{ id: '445', ext: 'gmbh', regPrice: '80.89', renewPrice: '80.89' },{ id: '446', ext: 'viajes', regPrice: '80.89', renewPrice: '80.89' },{ id: '447', ext: 'music', regPrice: '85.48', renewPrice: '85.48' },{ id: '448', ext: 'kyoto', regPrice: '91.16', renewPrice: '91.16' },{ id: '449', ext: 'mn', regPrice: '91.91', renewPrice: '91.91' },{ id: '450', ext: 'memorial', regPrice: '92.38', renewPrice: '92.38' },{ id: '451', ext: 'diamonds', regPrice: '96.97', renewPrice: '96.97' },{ id: '452', ext: 'surgery', regPrice: '96.97', renewPrice: '96.97' },{ id: '453', ext: 'hospital', regPrice: '101.57', renewPrice: '101.57' },{ id: '454', ext: 'condos', regPrice: '103.87', renewPrice: '103.87' },{ id: '455', ext: 'watches', regPrice: '110.48', renewPrice: '575.04' },{ id: '456', ext: 'attorney', regPrice: '110.77', renewPrice: '110.77' },{ id: '457', ext: 'lawyer', regPrice: '110.77', renewPrice: '110.77' },{ id: '458', ext: 'mx', regPrice: '112.56', renewPrice: '135.54' },{ id: '459', ext: 'gg', regPrice: '114.90', renewPrice: '114.90' },{ id: '460', ext: 'je', regPrice: '114.90', renewPrice: '114.90' },{ id: '461', ext: 'to', regPrice: '114.90', renewPrice: '114.90' },{ id: '462', ext: 'co.ag', regPrice: '114.90', renewPrice: '114.90' },{ id: '463', ext: 'com.ag', regPrice: '114.90', renewPrice: '114.90' },{ id: '464', ext: 'net.ag', regPrice: '114.90', renewPrice: '114.90' },{ id: '465', ext: 'nom.ag', regPrice: '114.90', renewPrice: '114.90' },{ id: '466', ext: 'org.ag', regPrice: '114.90', renewPrice: '114.90' },{ id: '467', ext: 'dentist', regPrice: '115.36', renewPrice: '115.36' },{ id: '468', ext: 'holdings', regPrice: '115.36', renewPrice: '115.36' },{ id: '469', ext: 'tennis', regPrice: '115.36', renewPrice: '115.36' },{ id: '470', ext: 'fo', regPrice: '115.83', renewPrice: '115.83' },{ id: '471', ext: 'brussels', regPrice: '116.22', renewPrice: '116.22' },{ id: '472', ext: 'vlaanderen', regPrice: '116.22', renewPrice: '116.22' },{ id: '473', ext: 'property', regPrice: '121.53', renewPrice: '230.28' },{ id: '474', ext: 'vu', regPrice: '126.39', renewPrice: '126.39' },{ id: '475', ext: 'health', regPrice: '126.85', renewPrice: '126.85' },{ id: '476', ext: 'glass', regPrice: '129.15', renewPrice: '129.15' },{ id: '477', ext: 'cleaning', regPrice: '133.75', renewPrice: '133.75' },{ id: '478', ext: 'dental', regPrice: '138.35', renewPrice: '138.35' },{ id: '479', ext: 'corsica', regPrice: '144.09', renewPrice: '144.09' },{ id: '480', ext: 'xn--fjq720a', regPrice: '152.14', renewPrice: '152.14' },{ id: '481', ext: 'xn--unup4y', regPrice: '152.14', renewPrice: '152.14' },{ id: '482', ext: 'xn--vhquv', regPrice: '152.14', renewPrice: '152.14' },{ id: '483', ext: 'healthcare', regPrice: '156.73', renewPrice: '156.73' },{ id: '484', ext: 'ag', regPrice: '172.36', renewPrice: '172.36' },{ id: '485', ext: 'reise', regPrice: '172.82', renewPrice: '172.82' },{ id: '486', ext: 'com.sc', regPrice: '183.85', renewPrice: '183.85' },{ id: '487', ext: 'net.sc', regPrice: '183.85', renewPrice: '183.85' },{ id: '488', ext: 'org.sc', regPrice: '183.85', renewPrice: '183.85' },{ id: '489', ext: 'airforce', regPrice: '184.31', renewPrice: '184.31' },{ id: '490', ext: 'law', regPrice: '184.31', renewPrice: '184.31' },{ id: '491', ext: 'sc', regPrice: '195.34', renewPrice: '195.34' },{ id: '492', ext: 'fm', regPrice: '195.34', renewPrice: '195.34' },{ id: '493', ext: 'berlin', regPrice: '195.81', renewPrice: '195.81' },{ id: '494', ext: 'hamburg', regPrice: '195.81', renewPrice: '195.81' },{ id: '495', ext: 'bzh', regPrice: '202.41', renewPrice: '202.41' },{ id: '496', ext: 'sex', regPrice: '218.79', renewPrice: '218.79' },{ id: '497', ext: 'xxx', regPrice: '218.79', renewPrice: '218.79' },{ id: '498', ext: 'porn', regPrice: '218.79', renewPrice: '218.79' },{ id: '499', ext: 'adult', regPrice: '218.79', renewPrice: '218.79' },{ id: '500', ext: 'bond', regPrice: '218.79', renewPrice: '218.79' },{ id: '501', ext: 'cyou', regPrice: '218.79', renewPrice: '218.79' },{ id: '502', ext: 'icu', regPrice: '218.79', renewPrice: '218.79' },{ id: '503', ext: 'sbs', regPrice: '218.79', renewPrice: '218.79' },{ id: '504', ext: 'cfd', regPrice: '218.79', renewPrice: '218.79' },{ id: '505', ext: 'realty', regPrice: '220.98', renewPrice: '637.76' },{ id: '512', ext: 'pro.pr', regPrice: '229.82', renewPrice: '114.90' },{ id: '506', ext: 'biz.pr', regPrice: '229.82', renewPrice: '114.90' },{ id: '507', ext: 'com.pr', regPrice: '229.82', renewPrice: '114.90' },{ id: '508', ext: 'info.pr', regPrice: '229.82', renewPrice: '114.90' },{ id: '509', ext: 'name.pr', regPrice: '229.82', renewPrice: '114.90' },{ id: '510', ext: 'net.pr', regPrice: '229.82', renewPrice: '114.90' },{ id: '511', ext: 'org.pr', regPrice: '229.82', renewPrice: '114.90' },{ id: '513', ext: 'audio', regPrice: '230.28', renewPrice: '230.28' },{ id: '514', ext: 'guitars', regPrice: '230.28', renewPrice: '230.28' },{ id: '515', ext: 'diet', regPrice: '230.28', renewPrice: '230.28' },{ id: '516', ext: 'flowers', regPrice: '230.28', renewPrice: '230.28' },{ id: '517', ext: 'blackfriday', regPrice: '230.28', renewPrice: '230.28' },{ id: '518', ext: 'aaa.pro', regPrice: '287.28', renewPrice: '287.28' },{ id: '519', ext: 'cpa.pro', regPrice: '287.28', renewPrice: '287.28' },{ id: '520', ext: 'eng.pro', regPrice: '287.28', renewPrice: '287.28' },{ id: '521', ext: 'aca.pro', regPrice: '287.28', renewPrice: '287.28' },{ id: '522', ext: 'acct.pro', regPrice: '287.28', renewPrice: '287.28' },{ id: '523', ext: 'avocat.pro', regPrice: '287.28', renewPrice: '287.28' },{ id: '524', ext: 'bar.pro', regPrice: '287.28', renewPrice: '287.28' },{ id: '525', ext: 'jur.pro', regPrice: '287.28', renewPrice: '287.28' },{ id: '526', ext: 'law.pro', regPrice: '287.28', renewPrice: '287.28' },{ id: '527', ext: 'recht.pro', regPrice: '287.28', renewPrice: '287.28' },{ id: '528', ext: 'med.pro', regPrice: '287.28', renewPrice: '287.28' },{ id: '529', ext: 'hiv', regPrice: '411.86', renewPrice: '411.86' },{ id: '530', ext: 'versicherung', regPrice: '570.16', renewPrice: '570.16' },{ id: '531', ext: 'inc', regPrice: '575.04', renewPrice: '4597.24' },{ id: '532', ext: 'dealer', regPrice: '575.04', renewPrice: '4597.24' },{ id: '533', ext: 'game', regPrice: '689.96', renewPrice: '689.96' },{ id: '534', ext: 'hosting', regPrice: '689.96', renewPrice: '689.96' },{ id: '535', ext: 'feedback', regPrice: '689.96', renewPrice: '689.96' },{ id: '536', ext: 'tickets', regPrice: '804.88', renewPrice: '804.88' },{ id: '537', ext: 'new', regPrice: '919.80', renewPrice: '919.80' },{ id: '538', ext: 'theatre', regPrice: '1149.64', renewPrice: '1149.64' },{ id: '539', ext: 'storage', regPrice: '1149.64', renewPrice: '1149.64' },{ id: '540', ext: 'pr', regPrice: '2298.38', renewPrice: '2298.38' },{ id: '541', ext: 'reit', regPrice: '2298.84', renewPrice: '2298.84' },{ id: '542', ext: 'lotto', regPrice: '3333.12', renewPrice: '3333.12' },{ id: '543', ext: 'voting', regPrice: '3915.77', renewPrice: '3915.77' },{ id: '544', ext: 'case', regPrice: '4597.24', renewPrice: '4597.24' },{ id: '545', ext: 'country', regPrice: '4597.24', renewPrice: '4597.24' },{ id: '546', ext: 'security', regPrice: '4597.24', renewPrice: '4597.24' },{ id: '547', ext: 'protection', regPrice: '4597.24', renewPrice: '4597.24' },{ id: '548', ext: 'cars', regPrice: '4597.24', renewPrice: '4597.24' },{ id: '549', ext: 'car', regPrice: '4597.24', renewPrice: '4597.24' },{ id: '550', ext: 'auto', regPrice: '4597.24', renewPrice: '4597.24' },{ id: '551', ext: 'sexy', regPrice: '5746.44', renewPrice: '5746.44' }, ]; const domainSuggestions = domainTariffs; const toggleServices = document.getElementById('toggle_services'); const mobileMenu = document.getElementById('mobileMenu'); const mobileMenuOverlay = document.getElementById('mobileMenuOverlay'); const closeMenuBtn = document.getElementById('closeMenuBtn'); if (toggleServices) { toggleServices.addEventListener('click', function(e) { e.preventDefault(); mobileMenu.classList.add('active'); mobileMenuOverlay.style.display = 'block'; document.body.style.overflow = 'hidden'; }); } function closeMobileMenu() { mobileMenu.classList.remove('active'); mobileMenuOverlay.style.display = 'none'; document.body.style.overflow = ''; } if (closeMenuBtn) { closeMenuBtn.addEventListener('click', closeMobileMenu); } if (mobileMenuOverlay) { mobileMenuOverlay.addEventListener('click', closeMobileMenu); } document.querySelectorAll('.mobile-menu-link').forEach(link => { link.addEventListener('click', closeMobileMenu); }); const modalOverlay = document.getElementById('modalOverlay'); const loginModal = document.getElementById('loginModal'); const registerModal = document.getElementById('registerModal'); const recoveryModal = document.getElementById('recoveryModal'); const domainResultModal = document.getElementById('domainResultModal'); const contactModal = document.getElementById('contactModal'); const domainInfoModal = document.getElementById('domainInfoModal'); const closeLoginModal = document.getElementById('closeLoginModal'); const closeRegisterModal = document.getElementById('closeRegisterModal'); const closeRecoveryModal = document.getElementById('closeRecoveryModal'); const closeDomainResultModal = document.getElementById('closeDomainResultModal'); const closeContactModal = document.getElementById('closeContactModal'); const closeDomainInfoModal = document.getElementById('closeDomainInfoModal'); function openModal(modalId) { modalOverlay.style.display = 'flex'; document.body.classList.add('modal-open'); loginModal.style.display = 'none'; registerModal.style.display = 'none'; recoveryModal.style.display = 'none'; domainResultModal.style.display = 'none'; contactModal.style.display = 'none'; domainInfoModal.style.display = 'none'; if (modalId === 'loginModal') { loginModal.style.display = 'block'; } else if (modalId === 'registerModal') { registerModal.style.display = 'block'; } else if (modalId === 'recoveryModal') { recoveryModal.style.display = 'block'; } else if (modalId === 'domainResultModal') { domainResultModal.style.display = 'block'; } else if (modalId === 'contactModal') { contactModal.style.display = 'block'; } else if (modalId === 'domainInfoModal') { domainInfoModal.style.display = 'block'; } } function closeModal() { modalOverlay.style.display = 'none'; document.body.classList.remove('modal-open'); } const desktopLoginBtn = document.getElementById('desktopLoginBtn'); const desktopRegisterBtn = document.getElementById('desktopRegisterBtn'); const desktopContactBtn = document.getElementById('desktopContactBtn'); const mobileLoginBtn = document.getElementById('mobileLoginBtn'); const mobileRegisterBtn = document.getElementById('mobileRegisterBtn'); const mobileContactBtn = document.getElementById('mobileContactBtn'); const mobileMenuContact = document.getElementById('mobileMenuContact'); if (desktopLoginBtn) { desktopLoginBtn.addEventListener('click', function() { openModal('loginModal'); }); } if (desktopRegisterBtn) { desktopRegisterBtn.addEventListener('click', function() { openModal('registerModal'); }); } if (desktopContactBtn) { desktopContactBtn.addEventListener('click', function() { openModal('contactModal'); }); } if (mobileLoginBtn) { mobileLoginBtn.addEventListener('click', function() { closeMobileMenu(); openModal('loginModal'); }); } if (mobileRegisterBtn) { mobileRegisterBtn.addEventListener('click', function() { closeMobileMenu(); openModal('registerModal'); }); } if (mobileContactBtn) { mobileContactBtn.addEventListener('click', function() { openModal('contactModal'); }); } if (mobileMenuContact) { mobileMenuContact.addEventListener('click', function(e) { e.preventDefault(); closeMobileMenu(); openModal('contactModal'); }); } if (closeLoginModal) closeLoginModal.addEventListener('click', closeModal); if (closeRegisterModal) closeRegisterModal.addEventListener('click', closeModal); if (closeRecoveryModal) closeRecoveryModal.addEventListener('click', closeModal); if (closeDomainResultModal) closeDomainResultModal.addEventListener('click', closeModal); if (closeContactModal) closeContactModal.addEventListener('click', closeModal); if (closeDomainInfoModal) closeDomainInfoModal.addEventListener('click', closeModal); modalOverlay.addEventListener('click', function(e) { const domainInfoModal = document.getElementById('domainInfoModal'); if (domainInfoModal && domainInfoModal.style.display === 'block') { return; } if (e.target === modalOverlay) { closeModal(); } }); const phoneNumberInput = document.getElementById('phoneNumber'); if (phoneNumberInput) { phoneNumberInput.addEventListener('input', function(e) { let value = e.target.value.replace(/\D/g, ''); if (value.length > 7) { value = value.substring(0, 7); } let formatted = ''; for (let i = 0; i < value.length; i++) { if (i === 3 || i === 5) { formatted += ' '; } formatted += value[i]; } e.target.value = formatted; }); } const recoveryForm = document.getElementById('recoveryForm'); if (recoveryForm) { recoveryForm.addEventListener('submit', function(e) { e.preventDefault(); const submitBtn = this.querySelector('.submit-btn'); const originalBtnText = submitBtn.innerHTML; const recoveryError = document.getElementById('recoveryError'); const recoverySuccess = document.getElementById('recoverySuccess'); submitBtn.innerHTML = ''; submitBtn.disabled = true; recoveryError.style.display = 'none'; recoverySuccess.style.display = 'none'; const formData = new FormData(this); formData.append('ajax', '1'); fetch(this.action, { method: 'POST', body: formData }) .then(response => response.json()) .then(data => { if (data.success) { recoverySuccess.textContent = data.message; recoverySuccess.style.display = 'block'; this.reset(); setTimeout(() => { window.location.href = baseUrl + "/#vps"; }, 3000); } else if (data.error) { recoveryError.textContent = data.error; recoveryError.style.display = 'block'; } }) .catch(error => { recoveryError.textContent = 'Xəta baş verdi!'; recoveryError.style.display = 'block'; }) .finally(() => { submitBtn.innerHTML = originalBtnText; submitBtn.disabled = false; }); }); } document.querySelectorAll('.modal-switch-btn').forEach(button => { button.addEventListener('click', function() { const targetModal = this.getAttribute('data-target'); openModal(targetModal); }); }); const loginForm = document.getElementById('loginForm'); if (loginForm) { loginForm.addEventListener('submit', function(e) { e.preventDefault(); const form = this; const submitBtn = form.querySelector('.submit-btn'); const originalBtnText = submitBtn.innerHTML; const loginError = document.getElementById('loginError'); submitBtn.innerHTML = ''; submitBtn.disabled = true; loginError.style.display = 'none'; const formData = new FormData(form); formData.append('ajax', '1'); fetch(form.action, { method: 'POST', body: formData }) .then(response => response.json()) .then(data => { if(data.success) { const successAlert = document.createElement('div'); successAlert.className = 'global-success-alert'; successAlert.innerHTML = ` Uğurla daxil oldunuz! Sizi kabinetə yönləndiririk... `; document.body.appendChild(successAlert); setTimeout(() => { window.location.href = baseUrl + "/user/cabinet"; }, 3000); } else if(data.error) { loginError.textContent = data.error; loginError.style.display = 'block'; } }) .catch(error => { loginError.textContent = 'Xəta baş verdi: ' + error.message; loginError.style.display = 'block'; }) .finally(() => { submitBtn.innerHTML = originalBtnText; submitBtn.disabled = false; }); }); } const contactForm = document.getElementById('contactForm'); if (contactForm) { contactForm.addEventListener('submit', function(e) { e.preventDefault(); const submitBtn = this.querySelector('.submit-btn'); const originalBtnText = submitBtn.innerHTML; const contactError = document.getElementById('contactError'); const contactSuccess = document.getElementById('contactSuccess'); submitBtn.innerHTML = ''; submitBtn.disabled = true; contactError.style.display = 'none'; contactSuccess.style.display = 'none'; const formData = new FormData(this); formData.append('ajax', '1'); fetch(this.action, { method: 'POST', body: formData }) .then(response => response.json()) .then(data => { if (data.success) { contactSuccess.textContent = data.message; contactSuccess.style.display = 'block'; this.reset(); } else if (data.error) { contactError.textContent = data.error; contactError.style.display = 'block'; } }) .catch(error => { contactError.textContent = 'Xəta baş verdi: ' + error.message; contactError.style.display = 'block'; }) .finally(() => { submitBtn.innerHTML = originalBtnText; submitBtn.disabled = false; }); }); } const registerForm = document.getElementById('registerForm'); if (registerForm) { registerForm.addEventListener('submit', function(e) { e.preventDefault(); const prefix = document.getElementById('phonePrefix').value; const number = document.getElementById('phoneNumber').value.replace(/\s/g, ''); document.getElementById('phoneNumber').value = number; const form = this; const submitBtn = form.querySelector('.submit-btn'); const originalBtnText = submitBtn.innerHTML; const registerError = document.getElementById('registerError'); submitBtn.innerHTML = ''; submitBtn.disabled = true; registerError.style.display = 'none'; document.querySelectorAll('.field-error').forEach(el => el.remove()); const formData = new FormData(form); formData.append('ajax', '1'); fetch(form.action, { method: 'POST', body: formData }) .then(response => response.json()) .then(data => { if(data.success) { const successAlert = document.createElement('div'); successAlert.className = 'global-success-alert'; successAlert.innerHTML = ` Uğurla qeydiyyatdan keçdiniz! Sizi kabinetə yönləndiririk... `; document.body.appendChild(successAlert); setTimeout(() => { window.location.href = baseUrl + "/user/cabinet"; }, 3000); } else if(data.fieldErrors) { let errorHtml = ''; for (const field in data.fieldErrors) { errorHtml += data.fieldErrors[field] + '
'; } registerError.innerHTML = errorHtml; registerError.style.display = 'block'; } else if(data.error) { registerError.innerHTML = data.error; registerError.style.display = 'block'; } }) .catch(error => { registerError.innerHTML = 'Xəta baş verdi: ' + error.message; registerError.style.display = 'block'; }) .finally(() => { submitBtn.innerHTML = originalBtnText; submitBtn.disabled = false; }); }); } const domainInput = document.getElementById('domainInput'); const suggestionsContainer = document.getElementById('suggestionsContainer'); const clearDomainInput = document.getElementById('clearDomainInput'); if (domainInput && clearDomainInput) { domainInput.addEventListener('input', function() { clearDomainInput.style.display = this.value ? 'block' : 'none'; if (!this.value.trim()) { suggestionsContainer.classList.remove('show'); } }); } clearDomainInput.addEventListener('click', function() { domainInput.value = ''; suggestionsContainer.classList.remove('show'); clearDomainInput.style.display = 'none'; domainInput.focus(); }); if (domainInput && suggestionsContainer) { let inputTimeout; function createSuggestionItem(domainPart, item) { const suggestionItem = document.createElement('div'); suggestionItem.className = 'suggestion-item'; suggestionItem.innerHTML = `
${domainPart}.${item.ext}
Qeydiyyat
${item.regPrice} AZN
Uzatma
${item.renewPrice} AZN
`; return suggestionItem; } function generateSuggestions(inputValue) { suggestionsContainer.innerHTML = ''; if (inputValue.length < 2) { suggestionsContainer.classList.remove('show'); return; } if (inputValue.includes('.')) { const parts = inputValue.split('.'); const domainPart = parts.slice(0, -1).join('.'); const tldPart = parts[parts.length - 1].toLowerCase(); const foundSuggestion = domainSuggestions.find(item => item.ext.toLowerCase() === tldPart); if (foundSuggestion) { suggestionsContainer.appendChild( createSuggestionItem(domainPart, foundSuggestion) ); } else { const contactRow = document.createElement('div'); contactRow.className = 'suggestion-item'; contactRow.innerHTML = `
"${tldPart}" uzantısı ilə bağlı məlumat yoxdur
`; suggestionsContainer.appendChild(contactRow); } } else { domainSuggestions.forEach(item => { suggestionsContainer.appendChild( createSuggestionItem(inputValue, item) ); }); } document.querySelectorAll('.check-btn').forEach(btn => { btn.addEventListener('click', function(e) { e.stopPropagation(); checkDomainAvailability(this); }); }); suggestionsContainer.classList.add('show'); } function checkDomainAvailability(button) { const domain = button.getAttribute('data-domain'); const tariffId = button.getAttribute('data-id'); const resultContainer = button.parentElement.querySelector('.result-container'); button.style.display = 'none'; resultContainer.innerHTML = ' Yoxlanılır...'; resultContainer.style.display = 'block'; resultContainer.style.color = '#007bff'; fetch(`https://netdata.az/incfiles/check_domain.php?domain=${encodeURIComponent(domain)}`) .then(response => response.json()) .then(data => { resultContainer.innerHTML = ''; if (data.success && data.available) { resultContainer.innerHTML = ` `; const orderBtn = resultContainer.querySelector('.order-btn'); if (orderBtn) { orderBtn.addEventListener('click', function(e) { e.stopPropagation(); const isLoggedIn = document.querySelector('.profile-dropdown') !== null || document.querySelector('.desktop-profile-dropdown') !== null; if (!isLoggedIn) { openModal('loginModal'); } else { window.location.href = `https://demo.netdata.az/tarif/domain/order/${tariffId}/domain/${domain}#vps`; } }); } } else if (data.success && !data.available) { resultContainer.innerHTML = ` `; const infoBtn = resultContainer.querySelector('.info-btn'); if (infoBtn) { infoBtn.addEventListener('click', function(e) { e.stopPropagation(); const domain = this.getAttribute('data-domain'); this.style.display = 'none'; resultContainer.innerHTML = ' Yoxlanılır...'; resultContainer.style.color = '#007bff'; fetchWhoisInfo(domain, resultContainer); }); } } else { resultContainer.innerHTML = ` Xəta baş verdi `; const retryBtn = resultContainer.querySelector('.retry-btn'); if (retryBtn) { retryBtn.addEventListener('click', function(e) { e.stopPropagation(); resultContainer.innerHTML = ' Yoxlanılır...'; resultContainer.style.color = '#007bff'; checkDomainAvailability(this); }); } } }) .catch(error => { resultContainer.innerHTML = ` Xəta baş verdi `; const retryBtn = resultContainer.querySelector('.retry-btn'); if (retryBtn) { retryBtn.addEventListener('click', function(e) { e.stopPropagation(); resultContainer.innerHTML = ' Yoxlanılır...'; resultContainer.style.color = '#007bff'; checkDomainAvailability(this); }); } }); } function fetchWhoisInfo(domain, resultContainer) { fetch(`https://netdata.az/incfiles/whois_domain.php?domain=${domain}`) .then(response => response.json()) .then(data => { showDomainInfoModal(data); resultContainer.innerHTML = ` `; const infoBtn = resultContainer.querySelector('.info-btn'); if (infoBtn) { infoBtn.addEventListener('click', function(e) { e.stopPropagation(); resultContainer.innerHTML = ' Yoxlanılır...'; resultContainer.style.color = '#007bff'; fetchWhoisInfo(domain, resultContainer); }); } }) .catch(error => { resultContainer.innerHTML = ` Xəta baş verdi `; const infoBtn = resultContainer.querySelector('.info-btn'); if (infoBtn) { infoBtn.addEventListener('click', function(e) { e.stopPropagation(); resultContainer.innerHTML = ' Yoxlanılır...'; resultContainer.style.color = '#007bff'; fetchWhoisInfo(domain, resultContainer); }); } }); } function showDomainInfoModal(data) { const modalContent = document.getElementById('domainInfoContent'); if (modalContent) { modalContent.innerHTML = `

${data.domain} - Domain Məlumatları

Domain Məlumatları

Qeydiyyat tarixi: ${data.domain_info.registered_on || 'Məlumat yoxdur'}
Bitmə tarixi: ${data.domain_info.expires_on || 'Məlumat yoxdur'}
Yenilənmə tarixi: ${data.domain_info.updated_on || 'Məlumat yoxdur'}

Əlaqə Məlumatları

Admin Adı: ${data.contacts.administrative.name || 'Məlumat yoxdur'}
Ünvan: ${[data.contacts.administrative.street, data.contacts.administrative.city, data.contacts.administrative.state, data.contacts.administrative.postal_code, data.contacts.administrative.country].filter(Boolean).join(', ') || 'Məlumat yoxdur'}
Telefon: ${data.contacts.administrative.phone ? `${data.contacts.administrative.phone}` : 'Məlumat yoxdur'}
Email: ${data.contacts.administrative.email ? `${data.contacts.administrative.email}` : 'Məlumat yoxdur'}
`; // Yeni bağlama düyməsinə hadisə dinləyicisi əlavə et const closeButton = document.getElementById('closeDomainInfoModalBtn'); if (closeButton) { closeButton.addEventListener('click', closeModal); } openModal('domainInfoModal'); } } domainInput.addEventListener('input', function() { const inputValue = this.value.trim(); clearTimeout(inputTimeout); if (inputValue === '') { suggestionsContainer.classList.remove('show'); return; } inputTimeout = setTimeout(() => { generateSuggestions(inputValue); }, 300); }); } document.addEventListener('click', function(event) { const domainInfoModal = document.getElementById('domainInfoModal'); const isDomainInfoModalOpen = domainInfoModal && window.getComputedStyle(domainInfoModal).display === 'block'; const domainInput = document.getElementById('domainInput'); if ((domainInput && domainInput.value.trim() !== '') || isDomainInfoModalOpen) { return; } if (suggestionsContainer && !event.target.closest('.search-container')) { suggestionsContainer.classList.remove('show'); } }); const navItems = document.querySelectorAll('.g, .nav_bar_panel'); const sections = { 'vps': document.getElementById('vps'), 'shop': document.getElementById('shop'), 'domains': document.getElementById('domains'), 'resel': document.getElementById('resel'), 'host': document.getElementById('host') }; const sectionMap = { 'show_shop': 'shop', 'show_vps': 'vps', 'show_resel': 'resel', 'show_host': 'host', 'show_domain': 'domains' }; function showSection(sectionId) { Object.values(sections).forEach(section => { if (section) section.classList.remove('active'); }); if (sections[sectionId]) { sections[sectionId].classList.add('active'); } window.location.hash = sectionId; navItems.forEach(item => { item.classList.remove('active'); const itemSection = sectionMap[item.id]; if (itemSection === sectionId) { item.classList.add('active'); } }); const element = document.getElementById(sectionId); if (element) { const headerContainer = document.querySelector('.fixed-header-container'); const headerHeight = headerContainer ? headerContainer.offsetHeight : 0; const stickyContainer = document.querySelector('.sticky-container'); const stickyHeight = stickyContainer ? stickyContainer.offsetHeight : 0; const totalOffset = headerHeight + stickyHeight + 20; const offsetPosition = element.offsetTop - totalOffset; window.scrollTo({ top: offsetPosition, behavior: 'smooth' }); } } navItems.forEach(item => { item.addEventListener('click', function(e) { const targetId = this.id; const sectionId = sectionMap[targetId]; if (sectionId) { showSection(sectionId); } }); }); function handleHash() { const hash = window.location.hash.substring(1); if (hash && sections[hash]) { showSection(hash); } else { showSection('vps'); } } handleHash(); window.addEventListener('hashchange', handleHash); const newsItems = document.querySelectorAll('.news-item'); const indicators = document.querySelectorAll('.news-indicators span'); const prevBtn = document.querySelector('.news-prev'); const nextBtn = document.querySelector('.news-next'); const dateElement = document.getElementById('news-date'); if (newsItems.length > 0 && indicators.length > 0 && prevBtn && nextBtn && dateElement) { let currentIndex = 0; function showNews(index) { newsItems.forEach(item => item.classList.remove('active')); indicators.forEach(indicator => indicator.classList.remove('active')); newsItems[index].classList.add('active'); indicators[index].classList.add('active'); currentIndex = index; const activeItem = newsItems[index]; const date = activeItem.getAttribute('data-date'); dateElement.textContent = `(${date})`; } indicators.forEach((indicator, index) => { indicator.addEventListener('click', () => showNews(index)); }); nextBtn.addEventListener('click', () => { const nextIndex = (currentIndex + 1) % newsItems.length; showNews(nextIndex); }); prevBtn.addEventListener('click', () => { const prevIndex = (currentIndex - 1 + newsItems.length) % newsItems.length; showNews(prevIndex); }); setInterval(() => { const nextIndex = (currentIndex + 1) % newsItems.length; showNews(nextIndex); }, 10000); } function setupCodeInputs() { document.querySelectorAll('.code-input').forEach(input => { input.addEventListener('input', function(e) { const value = e.target.value; if (!/^\d$/.test(value)) { e.target.value = ''; return; } const nextId = this.getAttribute('data-next'); if (nextId && value) { document.getElementById(nextId).focus(); } updateVerificationCode(); }); input.addEventListener('keydown', function(e) { if (e.key === 'Backspace' && this.value === '') { const prevId = this.getAttribute('data-prev'); if (prevId) { document.getElementById(prevId).focus(); } } }); }); } function updateVerificationCode() { var emailCode = document.getElementById('emailCode1').value + document.getElementById('emailCode2').value + document.getElementById('emailCode3').value + document.getElementById('emailCode4').value + document.getElementById('emailCode5').value + document.getElementById('emailCode6').value; document.getElementById('emailFullCode').value = emailCode; var phoneCode = document.getElementById('phoneCode1').value + document.getElementById('phoneCode2').value + document.getElementById('phoneCode3').value + document.getElementById('phoneCode4').value + document.getElementById('phoneCode5').value + document.getElementById('phoneCode6').value; document.getElementById('phoneFullCode').value = phoneCode; } const sendEmailCodeBtn = document.getElementById('sendEmailCode'); if (sendEmailCodeBtn) { sendEmailCodeBtn.addEventListener('click', function() { const email = document.getElementById('email').value; if (!validateEmail(email)) { alert('Düzgün email daxil edin'); return; } this.disabled = true; this.innerHTML = ''; fetch('https://demo.netdata.az/incfiles/send_verification.php?type=email', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ email }) }) .then(response => response.json()) .then(data => { if (data.success) { const emailValue = email; document.getElementById('verifiedEmail').value = emailValue; document.getElementById('emailCodeGroup').style.display = 'block'; const emailInput = document.getElementById('email'); emailInput.disabled = true; const emailInputGroup = document.getElementById('emailInputGroup'); if (emailInputGroup) { emailInputGroup.style.display = 'none'; } document.getElementById('emailCodeGroup').style.display = 'block'; } else { alert('Xəta: ' + (data.error || 'Bilinməyən xəta')); } this.disabled = false; this.innerHTML = 'Təstiqlə'; }) .catch(() => { alert('Xəta baş verdi'); this.disabled = false; this.innerHTML = 'Təstiqlə'; }); }); } const sendPhoneCodeBtn = document.getElementById('sendPhoneCode'); if (sendPhoneCodeBtn) { sendPhoneCodeBtn.addEventListener('click', function() { const prefix = document.getElementById('phonePrefix').value; const number = document.getElementById('phoneNumber').value.replace(/\s/g, ''); const adjustedPrefix = prefix.replace(/^0/, ''); if ((adjustedPrefix + number).length !== 9) { alert('Düzgün nömrə daxil edin (9 rəqəm)'); return; } this.disabled = true; this.innerHTML = ''; fetch('https://demo.netdata.az/incfiles/send_verification.php?type=phone', { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({ prefix: adjustedPrefix, number: number }) }) .then(response => response.json()) .then(data => { if (data.success) { const prefixValue = prefix; const numberValue = number; document.getElementById('verifiedPrefix').value = prefixValue; document.getElementById('verifiedNumber').value = numberValue; document.getElementById('phoneCodeGroup').style.display = 'block'; const phoneInput = document.getElementById('phoneNumber'); phoneInput.disabled = true; const phoneInputGroup = document.getElementById('phoneInputGroup'); if (phoneInputGroup) { phoneInputGroup.style.display = 'none'; } document.getElementById('phoneCodeGroup').style.display = 'block'; } else { alert('Xəta: ' + (data.error || 'Bilinməyən xəta')); } this.disabled = false; this.innerHTML = 'Təstiqlə'; }) .catch(() => { alert('Xəta baş verdi'); this.disabled = false; this.innerHTML = 'Təstiqlə'; }); }); } function validateEmail(email) { const re = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; return re.test(email); } setupCodeInputs(); // Sifariş düymələri üçün klik hadisəsi document.addEventListener('click', function(e) { if (e.target.classList.contains('buy-btn')) { const isLoggedIn = document.querySelector('.profile-dropdown') !== null || document.querySelector('.desktop-profile-dropdown') !== null; if (!isLoggedIn) { e.preventDefault(); openModal('loginModal'); } else { // İstifadəçi daxil olubsa, normal sifariş prosesi davam etsin const service = e.target.getAttribute('data-service'); const id = e.target.getAttribute('data-id'); // Domain sifarişi üçün xüsusi URL if (service === 'domain') { window.location.href = `https://demo.netdata.az/tarif/domain/order/${id}`; } else { window.location.href = `https://demo.netdata.az/tarif/${service}/order/${id}`; } } } }); });