changed positions
This commit is contained in:
1 parent
c07a08dfc0
commit
ebc22d9c3a
1 file changed
+41
-65
+41
-65
@@ -1,6 +1,6 @@
|
||||
<%- 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="pill-toggle" id="pillToggle">
|
||||
<div class="pill-option active" data-mode="series" id="pillSeries">
|
||||
@@ -18,39 +18,29 @@
|
||||
<div id="seriesFields">
|
||||
<div class="mb-3">
|
||||
<label class="form-label">ID</label>
|
||||
<input
|
||||
class="form-control"
|
||||
name="id"
|
||||
type="number"
|
||||
placeholder="ID"
|
||||
/>
|
||||
<input class="form-control" name="id" type="number" placeholder="ID" />
|
||||
</div>
|
||||
|
||||
<!-- UPDATED: EPISODE RANGE (FROM / TO) -->
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Episodes</label>
|
||||
<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"
|
||||
/>
|
||||
<label class="form-label">Titel (ohne Extension)</label>
|
||||
<input class="form-control" name="name" placeholder="Titel S01E01" />
|
||||
</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">
|
||||
<label class="form-label">Language</label>
|
||||
<select class="form-select" name="language">
|
||||
@@ -60,33 +50,19 @@
|
||||
<option value="gerdub">GerDub</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- UPDATED: EPISODE RANGE (FROM / TO) -->
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Titel (ohne Extension)</label>
|
||||
<input
|
||||
class="form-control"
|
||||
name="name"
|
||||
placeholder="Titel S01E01"
|
||||
/>
|
||||
<label class="form-label">Episodes</label>
|
||||
<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>
|
||||
|
||||
<!-- 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">Speichern Als</label>
|
||||
<input class="form-control" name="filename" placeholder="Titel S01E01.mp4" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- TOKEN -->
|
||||
<div class="mb-3">
|
||||
@@ -99,19 +75,19 @@
|
||||
<a class="btn btn-outline-light" href="/status">View Queue</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const pill = document.getElementById("pillToggle");
|
||||
const indicator = document.getElementById("pillIndicator");
|
||||
const btnSeries = document.getElementById("pillSeries");
|
||||
const btnVideo = document.getElementById("pillVideo");
|
||||
<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");
|
||||
const modeInput = document.getElementById("modeInput");
|
||||
const seriesFields = document.getElementById("seriesFields");
|
||||
const videoFields = document.getElementById("videoFields");
|
||||
|
||||
function updateMode(mode) {
|
||||
function updateMode(mode) {
|
||||
if (mode === "series") {
|
||||
indicator.style.transform = "translateX(0)";
|
||||
btnSeries.classList.add("active");
|
||||
@@ -130,10 +106,10 @@ function updateMode(mode) {
|
||||
seriesFields.style.display = "none";
|
||||
videoFields.style.display = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
btnSeries.onclick = () => updateMode("series");
|
||||
btnVideo.onclick = () => updateMode("video");
|
||||
</script>
|
||||
btnSeries.onclick = () => updateMode("series");
|
||||
btnVideo.onclick = () => updateMode("video");
|
||||
</script>
|
||||
|
||||
<%- include("partials/footer") %>
|
||||
<%- include("partials/footer") %>
|
||||
Reference in new issue
Block a user