mirror of
https://github.com/leoherzog/TorrentParts.git
synced 2026-01-24 04:08:04 -08:00
More Alignment Fixes
This commit is contained in:
@@ -33792,8 +33792,6 @@ function display() {
|
|||||||
|
|
||||||
console.log(parsed);
|
console.log(parsed);
|
||||||
|
|
||||||
resetProperties();
|
|
||||||
|
|
||||||
hash.value = parsed.infoHash;
|
hash.value = parsed.infoHash;
|
||||||
name.value = parsed.name ? parsed.name : "";
|
name.value = parsed.name ? parsed.name : "";
|
||||||
if (parsed.created) {
|
if (parsed.created) {
|
||||||
@@ -33866,10 +33864,11 @@ function display() {
|
|||||||
downloadTorrent.addEventListener('click', saveTorrent);
|
downloadTorrent.addEventListener('click', saveTorrent);
|
||||||
downloadTorrent.disabled = false;
|
downloadTorrent.disabled = false;
|
||||||
} else {
|
} else {
|
||||||
getFiles.style.display = "block";
|
|
||||||
if (client.torrents.length > 0) {
|
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..." disabled>';
|
||||||
} else {
|
} 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" disabled>';
|
||||||
}
|
}
|
||||||
downloadTorrent.removeEventListener('click', saveTorrent);
|
downloadTorrent.removeEventListener('click', saveTorrent);
|
||||||
@@ -33976,7 +33975,7 @@ function resetProperties() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function addCurrentTrackers() {
|
async function addCurrentTrackers() {
|
||||||
addTrackers.disabled = true;
|
addTrackers.className = 'disabled';
|
||||||
addTrackers.innerHTML = 'Adding...';
|
addTrackers.innerHTML = 'Adding...';
|
||||||
try {
|
try {
|
||||||
let response = await fetch("https://newtrackon.com/api/100"); // get trackers with 100% uptime
|
let response = await fetch("https://newtrackon.com/api/100"); // get trackers with 100% uptime
|
||||||
@@ -33991,7 +33990,7 @@ async function addCurrentTrackers() {
|
|||||||
console.error(e); // TODO: Alert user to error
|
console.error(e); // TODO: Alert user to error
|
||||||
}
|
}
|
||||||
addTrackers.innerHTML = 'Add Known Working Trackers';
|
addTrackers.innerHTML = 'Add Known Working Trackers';
|
||||||
addTrackers.disabled = false;
|
addTrackers.className = '';
|
||||||
display();
|
display();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
2
bundle.min.js
vendored
2
bundle.min.js
vendored
File diff suppressed because one or more lines are too long
9
parse.js
9
parse.js
@@ -129,8 +129,6 @@ function display() {
|
|||||||
|
|
||||||
console.log(parsed);
|
console.log(parsed);
|
||||||
|
|
||||||
resetProperties();
|
|
||||||
|
|
||||||
hash.value = parsed.infoHash;
|
hash.value = parsed.infoHash;
|
||||||
name.value = parsed.name ? parsed.name : "";
|
name.value = parsed.name ? parsed.name : "";
|
||||||
if (parsed.created) {
|
if (parsed.created) {
|
||||||
@@ -203,10 +201,11 @@ function display() {
|
|||||||
downloadTorrent.addEventListener('click', saveTorrent);
|
downloadTorrent.addEventListener('click', saveTorrent);
|
||||||
downloadTorrent.disabled = false;
|
downloadTorrent.disabled = false;
|
||||||
} else {
|
} else {
|
||||||
getFiles.style.display = "block";
|
|
||||||
if (client.torrents.length > 0) {
|
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..." disabled>';
|
||||||
} else {
|
} 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" disabled>';
|
||||||
}
|
}
|
||||||
downloadTorrent.removeEventListener('click', saveTorrent);
|
downloadTorrent.removeEventListener('click', saveTorrent);
|
||||||
@@ -313,7 +312,7 @@ function resetProperties() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function addCurrentTrackers() {
|
async function addCurrentTrackers() {
|
||||||
addTrackers.disabled = true;
|
addTrackers.className = 'disabled';
|
||||||
addTrackers.innerHTML = 'Adding...';
|
addTrackers.innerHTML = 'Adding...';
|
||||||
try {
|
try {
|
||||||
let response = await fetch("https://newtrackon.com/api/100"); // get trackers with 100% uptime
|
let response = await fetch("https://newtrackon.com/api/100"); // get trackers with 100% uptime
|
||||||
@@ -328,7 +327,7 @@ async function addCurrentTrackers() {
|
|||||||
console.error(e); // TODO: Alert user to error
|
console.error(e); // TODO: Alert user to error
|
||||||
}
|
}
|
||||||
addTrackers.innerHTML = 'Add Known Working Trackers';
|
addTrackers.innerHTML = 'Add Known Working Trackers';
|
||||||
addTrackers.disabled = false;
|
addTrackers.className = '';
|
||||||
display();
|
display();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
30
style.css
30
style.css
@@ -67,12 +67,16 @@ button:disabled {
|
|||||||
|
|
||||||
a {
|
a {
|
||||||
color: var(--grey);
|
color: var(--grey);
|
||||||
font-size: 85%;
|
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.disabled {
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: not-allowed;
|
||||||
|
}
|
||||||
|
|
||||||
header {
|
header {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 80px;
|
height: 80px;
|
||||||
@@ -177,6 +181,11 @@ label[for="torrent"] {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.labels > a {
|
||||||
|
font-size: 80%;
|
||||||
|
margin-top: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
.content, #files {
|
.content, #files {
|
||||||
width: 460px;
|
width: 460px;
|
||||||
}
|
}
|
||||||
@@ -205,7 +214,7 @@ input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.remove {
|
.remove {
|
||||||
/* position: absolute; */
|
margin-left: 6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 1080px) {
|
@media (max-width: 1080px) {
|
||||||
@@ -243,7 +252,7 @@ input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#properties {
|
#properties {
|
||||||
margin: 0 1.5vw;
|
margin: 0;
|
||||||
padding: 0 1.5vw;
|
padding: 0 1.5vw;
|
||||||
width: 95vw;
|
width: 95vw;
|
||||||
}
|
}
|
||||||
@@ -257,8 +266,8 @@ input {
|
|||||||
margin: 12px 0;
|
margin: 12px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
input, button, #addTracker, #addWebseed {
|
input, button {
|
||||||
width: 94vw;
|
width: 80vw;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -269,12 +278,23 @@ input {
|
|||||||
|
|
||||||
.labels, .content, #files {
|
.labels, .content, #files {
|
||||||
width: auto;
|
width: auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#announce, #urlList {
|
#announce, #urlList {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#announce > * > *, #urlList > * > *, #addTracker, #addWebseed {
|
||||||
|
width: 80vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
#addTracker, #addWebseed {
|
||||||
|
margin-right: 22px !important;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 460px) {
|
@media (max-width: 460px) {
|
||||||
|
|||||||
Reference in New Issue
Block a user