export const seoEvents = () => { try { const elements = document.querySelectorAll('[href="https://t.me/kgmauto"]'); if (elements) { elements.forEach(function (element) { element.addEventListener('click', function (event) { try { ym(99219793,'reachGoal','click_tg') } catch (e) { console.log(e); } }); }); } } catch (e) { console.log(e); } try { const elements = document.querySelectorAll('[href="https://vk.com/kgmauto"]'); if (elements) { elements.forEach(function (element) { element.addEventListener('click', function (event) { try { ym(99219793,'reachGoal','click_vk') } catch (e) { console.log(e); } }); }); } } catch (e) { console.log(e); } }; export const ymapsObjectClick = function (data) { } export const rangeControl = function (data) { } if (document.readyState === 'loading') { document.addEventListener("DOMContentLoaded", function () { seoEvents(); }); } else { seoEvents(); }