-
- What do you want to watch?
-
- One catalog, many sources. Pick a stream, and if it dies mid-episode,
- switch source — your place is remembered.
-
-
-
-
-
diff --git a/web/js/home.js b/web/js/home.js
index 664f6df..15eb747 100644
--- a/web/js/home.js
+++ b/web/js/home.js
@@ -1,37 +1,13 @@
/*
- HOME — hero with search + continue-watching row + trending rows.
+ HOME — continue-watching row + trending rows.
*/
(function () {
'use strict';
- // quick-search chips in the hero — edit freely
- const QUICK_SEARCHES = ['Action', 'Comedy', 'Sci-Fi', 'Drama', 'Horror', 'Animation', 'Crime'];
-
SR.app.initChrome();
const sections = document.getElementById('sections');
- const form = document.getElementById('heroForm');
- const input = document.getElementById('heroInput');
- if (form && input) {
- form.addEventListener('submit', (e) => {
- e.preventDefault();
- const q = input.value.trim();
- location.href = q ? `search.html?q=${encodeURIComponent(q)}` : 'search.html';
- });
- }
-
- const chips = document.getElementById('heroChips');
- if (chips) {
- for (const term of QUICK_SEARCHES) {
- const a = document.createElement('a');
- a.className = 'chip';
- a.href = `search.html?q=${encodeURIComponent(term)}`;
- a.textContent = term;
- chips.appendChild(a);
- }
- }
-
const cont = SR.cards.continueRow();
if (cont) sections.appendChild(cont);
diff --git a/web/js/settings.js b/web/js/settings.js
index c16a834..5b44ae5 100644
--- a/web/js/settings.js
+++ b/web/js/settings.js
@@ -58,19 +58,13 @@
const checked = overrides ? overrides[name] !== false : serverEnabled.includes(name);
const label = document.createElement('label');
label.className = 'provider';
- const nameEl = document.createElement('span');
- nameEl.className = 'provider__name';
- nameEl.textContent = name;
- const sw = document.createElement('span');
- sw.className = 'switch';
const input = document.createElement('input');
input.type = 'checkbox';
input.checked = !!checked;
- const track = document.createElement('span');
- track.className = 'switch__track';
- track.innerHTML = '