mirror of
https://github.com/leoherzog/TorrentParts.git
synced 2026-01-24 04:08:04 -08:00
Improve accessibility
This commit is contained in:
8
parse.js
8
parse.js
@@ -120,6 +120,8 @@ function parseRemote(toLoad) {
|
||||
resetProperties();
|
||||
return;
|
||||
}
|
||||
originalSourceIcon.innerHTML = '<span class="fad fa-file fa-fw"></span>';
|
||||
originalSourceIcon.title = 'Currently loaded information sourced from remotely fetched Torrent file';
|
||||
parsed = result;
|
||||
display();
|
||||
});
|
||||
@@ -151,6 +153,7 @@ function display() {
|
||||
tracker.value = parsed.announce[i];
|
||||
tracker.dataset.index = i;
|
||||
tracker.dataset.group = 'announce';
|
||||
tracker.setAttribute('aria-label', 'Tracker URL #' + i);
|
||||
tracker.addEventListener('input', propertyChange);
|
||||
row.appendChild(tracker);
|
||||
let remove = document.createElement('a');
|
||||
@@ -176,6 +179,7 @@ function display() {
|
||||
webseed.value = parsed.urlList[i];
|
||||
webseed.dataset.index = i;
|
||||
webseed.dataset.group = 'urlList';
|
||||
webseed.setAttribute('aria-label', 'Webseed URL #' + i);
|
||||
webseed.addEventListener('input', propertyChange);
|
||||
row.appendChild(webseed);
|
||||
let remove = document.createElement('a');
|
||||
@@ -203,10 +207,10 @@ function display() {
|
||||
} else {
|
||||
if (client.torrents.length > 0) {
|
||||
getFiles.style.display = "none";
|
||||
files.innerHTML = '<input type="text" placeholder="Attempting fetching files from Webtorrent..." disabled>';
|
||||
files.innerHTML = '<input type="text" placeholder="Attempting fetching files from Webtorrent..." aria-label="Attempting fetching files from Webtorrent..." disabled>';
|
||||
} else {
|
||||
getFiles.style.display = "block";
|
||||
files.innerHTML = '<input type="text" placeholder="Not included in the URL/File provided" disabled>';
|
||||
files.innerHTML = '<input type="text" placeholder="Not included in the URL/File provided" aria-label="Files information not included in the URL/File provided" disabled>';
|
||||
}
|
||||
downloadTorrent.removeEventListener('click', saveTorrent);
|
||||
downloadTorrent.disabled = true;
|
||||
|
||||
Reference in New Issue
Block a user