jesus christ
This commit is contained in:
1 parent
d97600122e
commit
49309d6733
9 files changed
+505
-295
No files matched your search
+120
-88
@@ -1,99 +1,131 @@
|
||||
<%- include("partials/header") %>
|
||||
|
||||
<div class="card card-dark p-4">
|
||||
<div class="d-flex justify-content-center mb-3">
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" id="modeToggle">
|
||||
<label class="form-check-label " for="modeToggle" id="modeLabel">Series</label>
|
||||
</div>
|
||||
<div class="card card-dark p-4">
|
||||
<div class="d-flex justify-content-center mb-4">
|
||||
<div class="pill-toggle" id="pillToggle">
|
||||
<div class="pill-option active" data-mode="series" id="pillSeries">
|
||||
Series
|
||||
</div>
|
||||
<div class="pill-option" data-mode="video" id="pillVideo">Video</div>
|
||||
<div class="pill-indicator" id="pillIndicator"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form method="POST" action="/queue" id="jobForm">
|
||||
<input type="hidden" name="mode" id="modeInput" value="series" />
|
||||
|
||||
<!-- SERIES FIELDS -->
|
||||
<div id="seriesFields">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Series ID</label>
|
||||
<input class="form-control" name="id" placeholder="12345" />
|
||||
</div>
|
||||
|
||||
<!-- UPDATED: EPISODE RANGE (FROM / TO) -->
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Episode Range</label>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<input
|
||||
class="form-control"
|
||||
name="episode_from"
|
||||
placeholder="From (e.g. 1)"
|
||||
/>
|
||||
</div>
|
||||
<div class="col">
|
||||
<input
|
||||
class="form-control"
|
||||
name="episode_to"
|
||||
placeholder="To (e.g. 12)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form method="POST" action="/queue" id="jobForm">
|
||||
<input type="hidden" name="mode" id="modeInput" value="series">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Language</label>
|
||||
<select class="form-select" name="language">
|
||||
<option value="engsub">engsub</option>
|
||||
<option value="engdub">engdub</option>
|
||||
<option value="gersub">gersub</option>
|
||||
<option value="gerdub">gerdub</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- SERIES FIELDS -->
|
||||
<div id="seriesFields">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Series ID</label>
|
||||
<input class="form-control" name="id" placeholder="12345">
|
||||
</div>
|
||||
|
||||
<!-- UPDATED: EPISODE RANGE (FROM / TO) -->
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Episode Range</label>
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<input class="form-control" name="episode_from" placeholder="From (e.g. 1)">
|
||||
</div>
|
||||
<div class="col">
|
||||
<input class="form-control" name="episode_to" placeholder="To (e.g. 12)">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Language</label>
|
||||
<select class="form-select" name="language">
|
||||
<option value="engsub">engsub</option>
|
||||
<option value="engdub">engdub</option>
|
||||
<option value="gersub">gersub</option>
|
||||
<option value="gerdub">gerdub</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name (optional)</label>
|
||||
<input class="form-control" name="name" placeholder="OnePiece_1_engsub">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- VIDEO FIELDS -->
|
||||
<div id="videoFields" style="display:none">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Video URL</label>
|
||||
<input class="form-control" name="url" placeholder="https://proxer.me/watch/...">
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Filename (optional)</label>
|
||||
<input class="form-control" name="filename" placeholder="MyVideo.mp4">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TOKEN -->
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Token suffix</label>
|
||||
<input class="form-control" name="token" placeholder="user-token">
|
||||
<div class="form-text">Full token = TOKEN_PREFIX + this value</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-content-between">
|
||||
<button class="btn btn-danger">Queue Download</button>
|
||||
<a class="btn btn-outline-light" href="/status">View Queue</a>
|
||||
</div>
|
||||
</form>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Name (optional)</label>
|
||||
<input
|
||||
class="form-control"
|
||||
name="name"
|
||||
placeholder="OnePiece_1_engsub"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const toggle = document.getElementById('modeToggle');
|
||||
const modeLabel = document.getElementById('modeLabel');
|
||||
const modeInput = document.getElementById('modeInput');
|
||||
const seriesFields = document.getElementById('seriesFields');
|
||||
const videoFields = document.getElementById('videoFields');
|
||||
<!-- VIDEO FIELDS -->
|
||||
<div id="videoFields" style="display: none">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Video URL</label>
|
||||
<input
|
||||
class="form-control"
|
||||
name="url"
|
||||
placeholder="https://proxer.me/watch/..."
|
||||
/>
|
||||
</div>
|
||||
|
||||
toggle.addEventListener('change', () => {
|
||||
if (toggle.checked) {
|
||||
modeLabel.innerText = 'Video';
|
||||
modeInput.value = 'video';
|
||||
seriesFields.style.display = 'none';
|
||||
videoFields.style.display = '';
|
||||
} else {
|
||||
modeLabel.innerText = 'Series';
|
||||
modeInput.value = 'series';
|
||||
seriesFields.style.display = '';
|
||||
videoFields.style.display = 'none';
|
||||
}
|
||||
});
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Filename (optional)</label>
|
||||
<input class="form-control" name="filename" placeholder="MyVideo.mp4" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TOKEN -->
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Token suffix</label>
|
||||
<input class="form-control" name="token" placeholder="user-token" />
|
||||
<div class="form-text">Full token = TOKEN_PREFIX + this value</div>
|
||||
</div>
|
||||
|
||||
<div class="d-flex justify-content-between">
|
||||
<button class="btn btn-danger">Queue Download</button>
|
||||
<a class="btn btn-outline-light" href="/status">View Queue</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const pill = document.getElementById("pillToggle");
|
||||
const indicator = document.getElementById("pillIndicator");
|
||||
const btnSeries = document.getElementById("pillSeries");
|
||||
const btnVideo = document.getElementById("pillVideo");
|
||||
|
||||
const modeInput = document.getElementById("modeInput");
|
||||
const seriesFields = document.getElementById("seriesFields");
|
||||
const videoFields = document.getElementById("videoFields");
|
||||
|
||||
function updateMode(mode) {
|
||||
if (mode === "series") {
|
||||
indicator.style.transform = "translateX(0)";
|
||||
btnSeries.classList.add("active");
|
||||
btnVideo.classList.remove("active");
|
||||
|
||||
modeInput.value = "series";
|
||||
seriesFields.style.display = "";
|
||||
videoFields.style.display = "none";
|
||||
|
||||
} else {
|
||||
indicator.style.transform = "translateX(100%)";
|
||||
btnVideo.classList.add("active");
|
||||
btnSeries.classList.remove("active");
|
||||
|
||||
modeInput.value = "video";
|
||||
seriesFields.style.display = "none";
|
||||
videoFields.style.display = "";
|
||||
}
|
||||
}
|
||||
|
||||
btnSeries.onclick = () => updateMode("series");
|
||||
btnVideo.onclick = () => updateMode("video");
|
||||
</script>
|
||||
|
||||
<%- include("partials/footer") %>
|
||||
Reference in new issue
Block a user