Skip to content

Commit

Permalink
test&
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkwolfs committed Jun 22, 2024
1 parent a8d8f1e commit a714171
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"type": "chrome",
"request": "launch",
"name": "Open index.html",
"url": "https://drunkwolfs.github.io/a/index.html"
"url": "https://drunkwolfs.github.io/a/index.html?users=eNpdks1OwkAUhV%2BlYe2iEKJxZ4xh4cKFCzeEmBFHQKCQUhbs%2BAnRBBJEXRijkUcoAqHyU1%2Fhzht57jQtlbRpO9N7z5xvzmSziXNRaAo7cZDgO3eQTWQqoloqxyboidaqq3qqTz59G%2FRKC9qSpzoGPdOaXJqTRxtMtPk%2F3g%2FoPDkV%2BXL6TAqnGOmMUTuFTjvQ%2BVJjyLYN%2BkT%2FCnOstdgpOMVmRVaFJWMCni7zacYF%2BVq9VRcNR94EALrmDWaHaqQ6wSITtGzJVV0DGEv%2BiJu8LFnCMZOpdCp5HCm8w8ZGDdSj5lyF0C5D41obWGNGPjBiZq9k3qnZ9q2MyfiqH9WqIQzg1Q35w0YhhGmae8%2BdiOrRHG0juOEml3eLIdwA878XgLJkoWBLaRWlZbdakdKHbhkgRGwI83Bi2H4Mfwx60axbDlMN41yFO6d4f32UOtwJwdJaZzVjSfQveIP4kAxpSguGNLgKEcTz5PDJi2QmGC8htdHxAAQG4Wamnx4T7mlq%2FoCQfvVB2PIPBOSGohfSrrHpjLQadZkPpxuOsKMDnfsDAD2Yng%3D%3D&items=eNqLjlZyLC3KL8qsUDA2MMhNB5IlSjpKhgYGINLS1EApVgehxNAUSYkRiDCBqnBNKcrPS6xQMAHKm4HlzYHYGGQOurSJQYlCaV5BYnI2UAXIECOYKseizOKc%2FHIF1yAFQ6BCIwuQOWYgFcaYKozgKkA2GVlgqjBBUWEMNiMWAA7bPsk%3D"
}
]
}
6 changes: 3 additions & 3 deletions common.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ function addNumberInput(){
}
}

function initComboBox(){
var comboBox = document.getElementById('cmbTop');
function initComboBox(el){
var comboBox = el.getElementById('cmbTop');
for (var i = 0; i < items.length; i++) {
if (items[i][1] == 0){
continue;
}
var option = document.createElement('option');
var option = el.createElement('option');
option.text = items[i][0];
option.value = option.text;

Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
console.error('Ошибка при загрузке страницы:', error);
document.getElementById('content').innerHTML = '<p>Ошибка загрузки страницы.</p>';
});
initComboBox();
initComboBox(document.getElementById('content'));
}
// Загружаем начальный контент
loadContent(currentPage);
Expand Down

0 comments on commit a714171

Please sign in to comment.