changed positions
This commit is contained in:
1 parent
c07a08dfc0
commit
ebc22d9c3a
1 file changed
+69
-93
+69
-93
@@ -1,56 +1,46 @@
|
|||||||
<%- include("partials/header") %>
|
<%- include("partials/header") %>
|
||||||
|
|
||||||
<div class="card card-dark p-4">
|
<div class="card card-dark p-4">
|
||||||
<div class="d-flex justify-content-center mb-4">
|
<div class="d-flex justify-content-center mb-4">
|
||||||
<div class="pill-toggle" id="pillToggle">
|
<div class="pill-toggle" id="pillToggle">
|
||||||
<div class="pill-option active" data-mode="series" id="pillSeries">
|
<div class="pill-option active" data-mode="series" id="pillSeries">
|
||||||
Series
|
Series
|
||||||
|
</div>
|
||||||
|
<div class="pill-option" data-mode="video" id="pillVideo">Video</div>
|
||||||
|
<div class="pill-indicator" id="pillIndicator"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="pill-option" data-mode="video" id="pillVideo">Video</div>
|
|
||||||
<div class="pill-indicator" id="pillIndicator"></div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<form method="POST" action="/queue" id="jobForm">
|
<form method="POST" action="/queue" id="jobForm">
|
||||||
<input type="hidden" name="mode" id="modeInput" value="series" />
|
<input type="hidden" name="mode" id="modeInput" value="series" />
|
||||||
|
|
||||||
<!-- SERIES FIELDS -->
|
<!-- SERIES FIELDS -->
|
||||||
<div id="seriesFields">
|
<div id="seriesFields">
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label class="form-label">ID</label>
|
<label class="form-label">ID</label>
|
||||||
<input
|
<input class="form-control" name="id" type="number" placeholder="ID" />
|
||||||
class="form-control"
|
</div>
|
||||||
name="id"
|
|
||||||
type="number"
|
|
||||||
placeholder="ID"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- UPDATED: EPISODE RANGE (FROM / TO) -->
|
<div class="mb-3">
|
||||||
<div class="mb-3">
|
<label class="form-label">Titel (ohne Extension)</label>
|
||||||
<label class="form-label">Episodes</label>
|
<input class="form-control" name="name" placeholder="Titel S01E01" />
|
||||||
<div class="row">
|
|
||||||
<div class="col">
|
|
||||||
<input
|
|
||||||
class="form-control"
|
|
||||||
name="episode_from"
|
|
||||||
type="number"
|
|
||||||
min="1"
|
|
||||||
placeholder="From"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
<div class="col">
|
|
||||||
<input
|
|
||||||
class="form-control"
|
|
||||||
name="episode_to"
|
|
||||||
type="number"
|
|
||||||
min="1"
|
|
||||||
placeholder="To"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- VIDEO FIELDS -->
|
||||||
|
<div id="videoFields" style="display: none">
|
||||||
|
<div class="mb-3">
|
||||||
|
<label class="form-label">URL</label>
|
||||||
|
<input class="form-control" name="url" placeholder="https://proxer.me/watch/..." />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mb-3">
|
||||||
|
<label class="form-label">Titel</label>
|
||||||
|
<input class="form-control" name="filename" placeholder="Titel S01E01" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label class="form-label">Language</label>
|
<label class="form-label">Language</label>
|
||||||
<select class="form-select" name="language">
|
<select class="form-select" name="language">
|
||||||
@@ -60,59 +50,45 @@
|
|||||||
<option value="gerdub">GerDub</option>
|
<option value="gerdub">GerDub</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- UPDATED: EPISODE RANGE (FROM / TO) -->
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label class="form-label">Titel (ohne Extension)</label>
|
<label class="form-label">Episodes</label>
|
||||||
<input
|
<div class="row">
|
||||||
class="form-control"
|
<div class="col">
|
||||||
name="name"
|
<input class="form-control" name="episode_from" type="number" min="1" placeholder="From" />
|
||||||
placeholder="Titel S01E01"
|
</div>
|
||||||
/>
|
<div class="col">
|
||||||
</div>
|
<input class="form-control" name="episode_to" type="number" min="1" placeholder="To" />
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
<!-- VIDEO FIELDS -->
|
|
||||||
<div id="videoFields" style="display: none">
|
|
||||||
<div class="mb-3">
|
|
||||||
<label class="form-label">URL</label>
|
|
||||||
<input
|
|
||||||
class="form-control"
|
|
||||||
name="url"
|
|
||||||
placeholder="https://proxer.me/watch/..."
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<!-- TOKEN -->
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label class="form-label">Speichern Als</label>
|
<label class="form-label">Token</label>
|
||||||
<input class="form-control" name="filename" placeholder="Titel S01E01.mp4" />
|
<input class="form-control" name="token" placeholder="Token" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- TOKEN -->
|
<div class="d-flex justify-content-between">
|
||||||
<div class="mb-3">
|
<button class="btn btn-danger">Queue Download</button>
|
||||||
<label class="form-label">Token</label>
|
<a class="btn btn-outline-light" href="/status">View Queue</a>
|
||||||
<input class="form-control" name="token" placeholder="Token" />
|
</div>
|
||||||
</div>
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="d-flex justify-content-between">
|
<script>
|
||||||
<button class="btn btn-danger">Queue Download</button>
|
const pill = document.getElementById("pillToggle");
|
||||||
<a class="btn btn-outline-light" href="/status">View Queue</a>
|
const indicator = document.getElementById("pillIndicator");
|
||||||
</div>
|
const btnSeries = document.getElementById("pillSeries");
|
||||||
</form>
|
const btnVideo = document.getElementById("pillVideo");
|
||||||
</div>
|
|
||||||
|
|
||||||
<script>
|
const modeInput = document.getElementById("modeInput");
|
||||||
const pill = document.getElementById("pillToggle");
|
const seriesFields = document.getElementById("seriesFields");
|
||||||
const indicator = document.getElementById("pillIndicator");
|
const videoFields = document.getElementById("videoFields");
|
||||||
const btnSeries = document.getElementById("pillSeries");
|
|
||||||
const btnVideo = document.getElementById("pillVideo");
|
|
||||||
|
|
||||||
const modeInput = document.getElementById("modeInput");
|
function updateMode(mode) {
|
||||||
const seriesFields = document.getElementById("seriesFields");
|
if (mode === "series") {
|
||||||
const videoFields = document.getElementById("videoFields");
|
|
||||||
|
|
||||||
function updateMode(mode) {
|
|
||||||
if (mode === "series") {
|
|
||||||
indicator.style.transform = "translateX(0)";
|
indicator.style.transform = "translateX(0)";
|
||||||
btnSeries.classList.add("active");
|
btnSeries.classList.add("active");
|
||||||
btnVideo.classList.remove("active");
|
btnVideo.classList.remove("active");
|
||||||
@@ -121,7 +97,7 @@ function updateMode(mode) {
|
|||||||
seriesFields.style.display = "";
|
seriesFields.style.display = "";
|
||||||
videoFields.style.display = "none";
|
videoFields.style.display = "none";
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
indicator.style.transform = "translateX(100%)";
|
indicator.style.transform = "translateX(100%)";
|
||||||
btnVideo.classList.add("active");
|
btnVideo.classList.add("active");
|
||||||
btnSeries.classList.remove("active");
|
btnSeries.classList.remove("active");
|
||||||
@@ -129,11 +105,11 @@ function updateMode(mode) {
|
|||||||
modeInput.value = "video";
|
modeInput.value = "video";
|
||||||
seriesFields.style.display = "none";
|
seriesFields.style.display = "none";
|
||||||
videoFields.style.display = "";
|
videoFields.style.display = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
btnSeries.onclick = () => updateMode("series");
|
btnSeries.onclick = () => updateMode("series");
|
||||||
btnVideo.onclick = () => updateMode("video");
|
btnVideo.onclick = () => updateMode("video");
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<%- include("partials/footer") %>
|
<%- include("partials/footer") %>
|
||||||
Reference in new issue
Block a user