diff --git a/docs/index.html b/docs/index.html index f194e6d..0531c68 100644 --- a/docs/index.html +++ b/docs/index.html @@ -441,7 +441,7 @@ Version Architecture - Date + Data Size @@ -810,8 +810,26 @@ container.innerHTML = 'Ошибка загрузки списка пакетов'; } } + + // логика для принудительного выбора ОС через URL параметры: + document.addEventListener('DOMContentLoaded', () => { + const query = window.location.search; + let osParam = ""; + if (query) { + const params = query.slice(1).split('&').filter(p => p.trim()); + if (params.length) { + osParam = params[0].toLowerCase(); + } + } + if (osParam && ['win', 'mac', 'linux'].includes(osParam)) { + const button = document.querySelector(`.filter-button[data-os="${osParam}"]`); + if (button) { + button.click(); + } + } + }); - +