Подписаться на наш канал в Telegram (откроется в новом окне)
1С Образование
Название компании: 1С Образование
Сегмент рынка: EDTECH

-

Владелец

Владелец

Динамика выручки, млн ₽

* - оценка Smart Ranking

Подпишись на обновление рейтингов и аналитику

document.addEventListener('DOMContentLoaded', function() { // Handle clickable dropdown toggles const clickableDropdowns = document.querySelectorAll('.dropdown-toggle[href]:not([href="#"])'); clickableDropdowns.forEach(function(dropdown) { dropdown.addEventListener('click', function(e) { // If the user clicked directly on the dropdown toggle itself (not child elements) if (e.target === this || e.target.closest('.dropdown-toggle') === this) { // If the user held Ctrl, Meta key (⌘), or right-clicked, let default behavior happen if (e.ctrlKey || e.metaKey || e.button !== 0) { return; } // Store the href const href = this.getAttribute('href'); // If user clicks without moving mouse (it's a pure click, not trying to open the dropdown) if (!this.classList.contains('show')) { // Let Bootstrap toggle the dropdown e.stopPropagation(); } else { // Navigate to the href e.preventDefault(); window.location.href = href; } } }); }); // Same for dropend items const clickableDropends = document.querySelectorAll('.dropend .dropdown-toggle[href]:not([href="#"])'); clickableDropends.forEach(function(dropdown) { dropdown.addEventListener('click', function(e) { if (e.target === this || e.target.closest('.dropdown-toggle') === this) { if (e.ctrlKey || e.metaKey || e.button !== 0) { return; } const href = this.getAttribute('href'); if (!this.classList.contains('show')) { e.stopPropagation(); } else { e.preventDefault(); window.location.href = href; } } }); }); });