FlameNet Classic: a 90s set-top skin for Jellyfin 10.11

CSS theme that restyles Jellyfin as a 1999-era DVR: gold selection bar,
chunky bevels, a proper grid channel guide, CRT phosphor.

Selectors were read out of a live 10.11.11 server's own shipped bundles
rather than from memory. Includes an offline preview harness that uses
Jellyfin's real DOM structure, an optional Web Audio + guide-NOW-line
extras layer, and install/rollback scripts.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Paul Hitt
2026-08-07 10:37:39 -04:00
co-authored by Claude Opus 5
commit 51abf2cf26
10 changed files with 4532 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
# local snapshots of the live server's branding config — not source, and it is
# the user's own server state. rollback.sh reads these from the working copy.
backups/
.DS_Store
*.swp
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 Paul Hitt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+195
View File
@@ -0,0 +1,195 @@
# FlameNet Classic — a 90s set-top skin for Jellyfin
A custom CSS theme that makes Jellyfin look like a 1999-era DVR: fat rounded
corners, hard bevels, a gold selection bar that follows you around, a proper
grid channel guide, and CRT phosphor.
Visual reference is the classic TiVo Series 1/2 interface. No TiVo trademarks,
artwork, or assets are used — the flame mark is an inline SVG you can swap.
Built against **Jellyfin 10.11.11** (`jellyfin.example.com`). Selectors were read
out of that server's own shipped bundles, not from memory — see
[Sourcing the selectors](#sourcing-the-selectors).
```
flamenet.css the theme — this is the whole product
flamenet-extras.js OPTIONAL js layer (sounds + guide NOW line)
install-extras.sh installer for the above (UNTESTED on a live server)
preview.html offline preview using Jellyfin's real DOM structure
preview-standalone.html the same, fully inlined — one portable file
build-preview.sh rebuilds the standalone from the parts
```
## Install the theme
1. Open `flamenet.css`, copy all of it.
2. Jellyfin → **Dashboard → General → Custom CSS** → paste → **Save**.
3. **Display → Theme → Dark** (the skin assumes a dark base).
4. Hard-reload the client (`Cmd/Ctrl + Shift + R`).
To remove: clear the Custom CSS box. Nothing on the server changes, and a
Jellyfin upgrade can't break it beyond the usual risk of upstream renaming a
class.
## What it themes
| Area | Status | Selectors |
|---|---|---|
| Top banner + flame mark | verified | `.skinHeader`, `.headerLeft::before` |
| Left menu (FlameNet Central) | verified | `.mainDrawer`, `.navMenuOption` |
| **Channel guide** | verified | `.tvguide`, `.timeslotHeader*`, `.guide-channelHeaderCell`, `.programCell`, `.guideProgram*` |
| On Demand tiles | verified | `.card`, `.cardBox`, `.cardText` |
| Recorded / list views | verified | `.listItem`, `.listItemBodyText` |
| Detail pages, dialogs, inputs | verified | `.detailPagePrimaryContainer`, `.dialog`, `.emby-input` |
| Now Playing bar | verified | `.nowPlayingBar*` |
| Volume / brightness popups | verified | `.iconOsd*`, `.brightnessOsd*` |
| Login / splash | verified | `.login`, `.splashLogo` |
| Search + A–Z picker | verified | `.search`, `.searchfields-icon`, `.alphaPicker*` |
| Dashboard / admin | verified | `.dashboardSection*`, `.adminSection`, `.sessionCard*` |
| Progress, toasts, spinners, sheets | verified | `.itemProgressBar*`, `.toast`, `.progressring*`, `.actionSheet*` |
| **Video player OSD** | **unverified** | `.videoOsdBottom`, `.osdControls`, `.osdTitle`, … |
"verified" = the class appears in a stylesheet this server actually serves.
The OSD row is the exception and section 18 says so in the file. The video OSD's
stylesheet is not in any CSS chunk 10.11.11 serves, so those names come from
Jellyfin's long-standing markup rather than something confirmable on this build.
An unmatched selector is a no-op, so the worst case is the player keeps its stock
look. If it does, inspect the OSD and fix the names in section 18.
Live TV badges are colour-coded: **LIVE** red, **NEW/PREMIERE** green,
**REPEAT** teal, **HD** gold, record dot red.
## The one thing to be careful about
Jellyfin's guide is **two independent scrolling columns** — the channel list and
the program grid — kept in sync only by having identical row heights.
Adding `margin` to a row, or a border to a content-box element, changes the row
pitch on one side and the columns silently desynchronise. **The error is
cumulative**: the first draft added `margin-bottom: 3px` to the channel cells,
which drifted 3px per row — fine across the 7 rows in the preview, but ~1600px of
drift across the 552 channels on this server, i.e. channel names lining up
against completely the wrong programmes.
So every gutter in the guide is a **transparent border on a `border-box`
element**, drawn *inside* the stock `4.42em` row height and `12vw` column width.
Same for the `-1px` sibling pull stock Jellyfin applies to *both* columns — zero
it on one side only and you reintroduce 1px/row.
Verified 0px row drift and 0px ribbon offset at 1440 / 1024 / mobile. If you edit
section 7, re-check with the preview open:
```js
var ch=[...document.querySelectorAll('.guide-channelHeaderCell')];
var pr=[...document.querySelectorAll('.channelPrograms')];
console.log(ch.map((x,i)=>Math.round(x.getBoundingClientRect().top-pr[i].getBoundingClientRect().top)));
// want all zeros
```
## Optional: the extras layer
`flamenet-extras.js` adds the things CSS cannot:
- **Navigation sounds** — a set-top "bloop" on moving the selection and a "ding"
on choosing. Synthesised with Web Audio, so there are no audio files to host,
404, or trip a CSP.
- **Guide NOW line** — a live red time marker down the channel guide, positioned
from the time-slot headers. It is a pure overlay and never touches the guide's
own layout, so it cannot cause the drift described above.
- **Boot chime** on first load.
Runtime controls (browser console):
```js
FlameNet.status() // what's on
FlameNet.sound(false) // mute — persists in localStorage
FlameNet.volume(0.1) // 0.01 – 1.0
FlameNet.nowLine(false) // hide the guide marker
```
Verified in the preview against Jellyfin's real guide markup: the marker lands
where the arithmetic says it should (checked in both percentage and pixel space),
handles 12-hour and 24-hour labels identically, puts `12:00 PM` at 720 minutes
and `12:00 AM` at 0, wraps correctly past midnight, and hides itself when the
guide is scrolled to a time window that doesn't contain now.
### Installing the extras
Jellyfin has no supported hook for custom JavaScript — the only way in is a
`<script>` tag in `index.html`:
```bash
./install-extras.sh --dry-run # show exactly what would change
./install-extras.sh --install
./install-extras.sh --status
./install-extras.sh --uninstall
```
Takes `--container NAME` (default `jellyfin`) and `--host USER@HOST` to work over
ssh. It finds the web root rather than hardcoding it, backs up `index.html`
first, and is idempotent — reinstalling replaces the block instead of stacking.
Three caveats, in order of how likely they are to bite:
1. **This script has never been run against a live server.** It was written for
`jellyfin.example.com` but not executed there. Use `--dry-run` and read it first.
2. **The change is inside the container, so an image update erases it.** That's
how containers work, not a bug. Re-run `--install` after each update;
`--status` tells you whether it's currently present.
3. It deliberately does **not** bind-mount `index.html`. That would survive
updates but pin a stale `index.html` over a newer web client, which breaks the
app confusingly the next time bundle names change. Re-running a script is the
lesser evil.
The CSS theme is completely independent of all this.
## Preview
```bash
./build-preview.sh # rebuild preview-standalone.html after editing
```
Open `preview-standalone.html` anywhere, or serve the folder and open
`preview.html`. Four screens, deep-linkable by hash:
`#home`, `#guide`, `#vod`, `#parts`.
It reproduces Jellyfin's actual markup — same class names, same
absolutely-positioned guide grid — so what you see is the real theme, not a
mockup. Everything inside the `PREVIEW HARNESS ONLY` block is layout scaffolding
Jellyfin's own bundles normally provide; none of it ships in `flamenet.css`.
## Sourcing the selectors
Worth recording, because it is not obvious and it is how to do this again:
1. `curl /web/index.html` → lists `main.jellyfin.*.css` and `runtime.bundle.js`.
2. `runtime.bundle.js` contains **two** webpack chunk maps. The smaller one is
the CSS chunk map; there is also a chunk-id → readable-name map.
3. Download the CSS chunks and grep them for the classes you need.
The important part: **the Live TV guide CSS is a lazy chunk** (`36154.*.css`),
absent from `main.jellyfin.*.css` entirely. Read only the main bundle and every
guide class looks missing. Not all ids in the map resolve — several 404, which is
why the video OSD stayed unverified.
Fetch the chunks **serially**. A parallel sweep returned 91 empty files; this box
runs CrowdSec, which reacts to bursts.
## Tweaks
- **Phosphor** — `--fn-crt-scanline` (0 = off) and `--fn-crt-vignette` in section 11,
or delete the block.
- **Accent** — `--fn-gold` / `--fn-gold-2` / `--fn-gold-dk`.
- **Logo** — the data URI in `.skinHeader .headerLeft::before`.
- **Less rounding** — `--fn-r`, `--fn-r-sm`.
## Gotchas hit while building this
- `.videoPlayerContainer body::after` can never match — `body` is not a
descendant of anything. Playback state in 10.11 is `body.noScroll` /
`body.hide-scroll` / `.hiddenViewMenuBar`.
- `.button-submit` alone (0,1,0) loses to the base rule's `button.emby-button`
(0,1,1), so primary buttons silently stayed blue.
- Don't force `background` on the scrub slider: Jellyfin paints the played
portion with an inline gradient, and `!important` erases it. Use `accent-color`.
+42
View File
@@ -0,0 +1,42 @@
#!/usr/bin/env bash
# Build preview-standalone.html: preview.html with flamenet.css and
# flamenet-extras.js inlined, so the preview is one portable file with zero
# external requests (openable from anywhere, no web server needed).
set -euo pipefail
cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
python3 - <<'PY'
import pathlib, sys
d = pathlib.Path('.')
html = (d / 'preview.html').read_text()
css = (d / 'flamenet.css').read_text()
js = (d / 'flamenet-extras.js').read_text()
link = '<link rel="stylesheet" href="flamenet.css">'
script = '<script src="flamenet-extras.js"></script>'
if link not in html:
sys.exit('build failed: stylesheet link tag not found in preview.html')
if script not in html:
sys.exit('build failed: extras script tag not found in preview.html')
out = html.replace(
link,
'<style>\n/* ===== flamenet.css inlined for a portable single-file preview ===== */\n'
+ css + '\n</style>')
out = out.replace(
script,
'<script>\n/* ===== flamenet-extras.js inlined ===== */\n' + js + '\n</script>')
# fail loudly rather than shipping a half-inlined file
for bad, msg in ((link, 'stylesheet link survived'), (script, 'script tag survived')):
if bad in out:
sys.exit(f'build failed: {msg}')
for need, msg in (('--fn-gold', 'css missing'), ('window.FlameNet', 'extras missing')):
if need not in out:
sys.exit(f'build failed: {msg}')
(d / 'preview-standalone.html').write_text(out)
print(f'preview-standalone.html {len(out):,} bytes (css {len(css):,} + js {len(js):,})')
PY
+264
View File
@@ -0,0 +1,264 @@
/* =============================================================================
FlameNet Classic — extras
-----------------------------------------------------------------------------
The things Custom CSS cannot do:
1. Navigation sounds — synthesised set-top "bloop"/"ding", no audio files
2. Guide NOW line — a live red time marker down the channel guide
3. Boot chime — one tone on first load
OPTIONAL. The theme is complete without this file; nothing here is required
for flamenet.css to work.
Install: see install-extras.sh (injects one <script> tag into index.html).
Toggle at runtime from the browser console:
FlameNet.sound(false) // mute (persists in localStorage)
FlameNet.sound(true) // unmute
FlameNet.nowLine(false) // hide the guide time marker
FlameNet.status() // what's on
Everything is defensive: if Jellyfin's DOM changes, features disable
themselves rather than throwing. No globals beyond `window.FlameNet`.
============================================================================= */
(function () {
'use strict';
if (window.FlameNet) return; // idempotent — double-inject is a no-op
var LS = 'flamenet.extras';
var prefs = { sound: true, nowLine: true, volume: 0.22 };
try {
var saved = JSON.parse(localStorage.getItem(LS) || '{}');
Object.keys(saved).forEach(function (k) {
if (k in prefs) prefs[k] = saved[k];
});
} catch (e) { /* corrupt or blocked storage — fall back to defaults */ }
function save() {
try { localStorage.setItem(LS, JSON.stringify(prefs)); } catch (e) {}
}
/* ---------------------------------------------------------------------------
1. SOUND
Synthesised with Web Audio — no asset files, so nothing to 404 and nothing
for a CSP to block. Two voices:
bloop : short triangle blip, for moving the selection
ding : two-tone rise, for committing to something
--------------------------------------------------------------------------- */
var ctx = null;
function audio() {
if (ctx) return ctx;
var AC = window.AudioContext || window.webkitAudioContext;
if (!AC) return null;
try { ctx = new AC(); } catch (e) { return null; }
return ctx;
}
// Browsers block audio until the user has interacted. Resume on the first
// real gesture, then stop listening.
function unlock() {
var c = audio();
if (c && c.state === 'suspended') c.resume();
window.removeEventListener('pointerdown', unlock, true);
window.removeEventListener('keydown', unlock, true);
}
window.addEventListener('pointerdown', unlock, true);
window.addEventListener('keydown', unlock, true);
function tone(freq, dur, type, delay, peak) {
var c = audio();
if (!c || c.state !== 'running') return;
var t0 = c.currentTime + (delay || 0);
var osc = c.createOscillator();
var gain = c.createGain();
osc.type = type || 'triangle';
osc.frequency.setValueAtTime(freq, t0);
// quick attack, exponential decay — the percussive set-top blip
gain.gain.setValueAtTime(0.0001, t0);
gain.gain.exponentialRampToValueAtTime(peak || prefs.volume, t0 + 0.008);
gain.gain.exponentialRampToValueAtTime(0.0001, t0 + dur);
osc.connect(gain).connect(c.destination);
osc.start(t0);
osc.stop(t0 + dur + 0.02);
}
var lastSound = 0;
function play(kind) {
if (!prefs.sound) return;
var now = Date.now();
if (now - lastSound < 45) return; // don't machine-gun on fast scrolling
lastSound = now;
if (kind === 'bloop') tone(660, 0.09, 'triangle');
else if (kind === 'ding') { tone(784, 0.10, 'triangle'); tone(1175, 0.16, 'triangle', 0.07); }
else if (kind === 'boot') { tone(523, 0.14, 'triangle'); tone(784, 0.14, 'triangle', 0.11);
tone(1047, 0.28, 'triangle', 0.22); }
}
// What counts as "moving the selection" vs "choosing something".
var NAV = '.navMenuOption, .listItem, .card, .programCell, .guide-channelHeaderCell,' +
' .alphaPickerButton, .emby-tab-button, .actionSheetMenuItem';
var GO = '.emby-button, .raised, .cardOverlayButton, .detailButton, .paper-icon-button-light';
var lastNav = null;
document.addEventListener('mouseover', function (e) {
var t = e.target.closest && e.target.closest(NAV);
if (t && t !== lastNav) { lastNav = t; play('bloop'); }
}, true);
document.addEventListener('focusin', function (e) {
var t = e.target.closest && e.target.closest(NAV);
if (t && t !== lastNav) { lastNav = t; play('bloop'); }
}, true);
document.addEventListener('click', function (e) {
if (!e.target.closest) return;
if (e.target.closest(GO) || e.target.closest(NAV)) play('ding');
}, true);
/* ---------------------------------------------------------------------------
2. GUIDE "NOW" LINE
Jellyfin's guide lays programmes out as absolutely-positioned .programCell
inside .channelPrograms, using percentage left/width across the visible time
span. We read that span off the time-slot headers and drop a red marker at
the current time. Pure overlay: nothing in the guide's own layout is touched,
so it cannot desync the channel column (see the row-pitch note in README).
--------------------------------------------------------------------------- */
var lineTimer = null;
function parseSlotTime(text) {
// ".timeslotHeader" renders localised times like "7:00 PM" or "19:00"
var m = /(\d{1,2}):(\d{2})\s*([AaPp])?/.exec(text || '');
if (!m) return null;
var h = parseInt(m[1], 10), min = parseInt(m[2], 10);
if (m[3]) {
var pm = /[Pp]/.test(m[3]);
if (h === 12) h = pm ? 12 : 0; else if (pm) h += 12;
}
return h * 60 + min;
}
function drawNowLine() {
var grid = document.querySelector('.programGrid');
var inner = document.querySelector('.timeslotHeadersInner');
var slots = document.querySelectorAll('.timeslotHeader');
if (!prefs.nowLine || !grid || !inner || slots.length < 2) {
var stale = document.getElementById('fnNowLine');
if (stale) stale.remove();
return;
}
var startMin = parseSlotTime(slots[0].textContent);
var secondMin = parseSlotTime(slots[1].textContent);
if (startMin === null || secondMin === null) return;
var step = secondMin - startMin;
if (step <= 0) step += 24 * 60; // wrapped past midnight
var spanMin = step * slots.length;
var d = new Date();
var nowMin = d.getHours() * 60 + d.getMinutes() + d.getSeconds() / 60;
var offset = nowMin - startMin;
if (offset < 0) offset += 24 * 60;
var line = document.getElementById('fnNowLine');
// outside the visible window (guide scrolled to another time) — hide it
if (offset < 0 || offset > spanMin) {
if (line) line.style.display = 'none';
return;
}
var container = grid.querySelector('.programContainer') || grid;
if (!line) {
line = document.createElement('div');
line.id = 'fnNowLine';
line.setAttribute('aria-hidden', 'true');
line.style.cssText =
'position:absolute;top:0;bottom:0;width:2px;z-index:6;pointer-events:none;' +
'background:#e0453c;box-shadow:0 0 6px 1px rgba(224,69,60,.85);';
var dot = document.createElement('div');
dot.style.cssText =
'position:absolute;top:-4px;left:-4px;width:10px;height:10px;border-radius:50%;' +
'background:#e0453c;box-shadow:0 0 6px 1px rgba(224,69,60,.85);';
line.appendChild(dot);
if (getComputedStyle(container).position === 'static') {
container.style.position = 'relative';
}
container.appendChild(line);
}
line.style.display = '';
line.style.left = (offset / spanMin * 100).toFixed(4) + '%';
}
function startNowLine() {
if (lineTimer) clearInterval(lineTimer);
lineTimer = setInterval(function () {
try { drawNowLine(); } catch (e) { /* guide gone or markup changed */ }
}, 30000);
try { drawNowLine(); } catch (e) {}
}
// Jellyfin is a SPA: the guide mounts and unmounts without a page load, so
// watch for it rather than running once.
var mo = new MutationObserver(function () {
if (document.querySelector('.programGrid')) {
try { drawNowLine(); } catch (e) {}
}
});
function boot() {
try {
mo.observe(document.body, { childList: true, subtree: true });
} catch (e) {}
startNowLine();
play('boot');
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', boot);
} else {
boot();
}
/* ---------------------------------------------------------------------------
3. PUBLIC API
--------------------------------------------------------------------------- */
window.FlameNet = {
sound: function (on) {
if (on === undefined) return prefs.sound;
prefs.sound = !!on; save();
if (prefs.sound) play('ding');
return prefs.sound;
},
volume: function (v) {
if (v === undefined) return prefs.volume;
prefs.volume = Math.max(0.01, Math.min(1, Number(v) || 0.22)); save();
play('bloop');
return prefs.volume;
},
nowLine: function (on) {
if (on === undefined) return prefs.nowLine;
prefs.nowLine = !!on; save();
try { drawNowLine(); } catch (e) {}
return prefs.nowLine;
},
status: function () {
return {
sound: prefs.sound,
volume: prefs.volume,
nowLine: prefs.nowLine,
audioContext: ctx ? ctx.state : 'not created',
guidePresent: !!document.querySelector('.programGrid')
};
},
_redraw: drawNowLine
};
})();
+1198
View File
File diff suppressed because it is too large Load Diff
+175
View File
@@ -0,0 +1,175 @@
#!/usr/bin/env bash
#
# FlameNet Classic — installer for the OPTIONAL extras layer (flamenet-extras.js)
#
# The CSS theme does NOT need this. flamenet.css goes in Dashboard -> General ->
# Custom CSS and is entirely reversible from the UI. This script exists only for
# the JS extras (navigation sounds + the guide NOW line), because Jellyfin has no
# supported hook for custom JavaScript — the only way in is a <script> tag in
# index.html.
#
# ./install-extras.sh --dry-run show exactly what would change
# ./install-extras.sh --install
# ./install-extras.sh --uninstall
# ./install-extras.sh --status
#
# --container NAME docker container (default: jellyfin)
# --host USER@HOST run over ssh (default: local docker)
#
# ---------------------------------------------------------------------------
# READ THIS FIRST
#
# 1. This edits index.html INSIDE the running container. Container filesystems
# are ephemeral: `docker compose pull && up -d` recreates the container and
# your change is GONE. That is not a bug in this script, it is how containers
# work. Re-run --install after every image update. --status tells you whether
# it is currently present.
#
# 2. It is deliberately NOT a bind-mount. Bind-mounting index.html would survive
# updates but would also PIN a stale index.html over a newer web client, which
# breaks the app in confusing ways the next time Jellyfin's bundle names change.
# Re-running a script is the lesser evil.
#
# 3. A backup is written next to the original as index.html.flamenet-bak before
# the first edit. --uninstall restores from it.
#
# 4. UNTESTED against a live server. It was written against, but never run on,
# jellyfin.example.com. Use --dry-run first and read the diff.
# ---------------------------------------------------------------------------
set -euo pipefail
CONTAINER="jellyfin"
SSH_HOST=""
MODE=""
MARK_BEGIN="<!-- flamenet-extras:begin -->"
MARK_END="<!-- flamenet-extras:end -->"
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
JS_SRC="$SCRIPT_DIR/flamenet-extras.js"
while [[ $# -gt 0 ]]; do
case "$1" in
--install|--uninstall|--status|--dry-run) MODE="${1#--}"; shift ;;
--container) CONTAINER="$2"; shift 2 ;;
--host) SSH_HOST="$2"; shift 2 ;;
-h|--help) sed -n '2,40p' "$0"; exit 0 ;;
*) echo "unknown argument: $1" >&2; exit 2 ;;
esac
done
if [[ -z "$MODE" ]]; then
echo "nothing to do — pass --dry-run, --install, --uninstall or --status" >&2
exit 2
fi
# run a command either locally or on the remote docker host
run() {
if [[ -n "$SSH_HOST" ]]; then ssh "$SSH_HOST" "$@"; else bash -c "$*"; fi
}
dexec() { run "docker exec $CONTAINER sh -c '$1'"; }
say() { printf '%s\n' "$*"; }
die() { printf 'error: %s\n' "$*" >&2; exit 1; }
# --- locate the web root -----------------------------------------------------
# Do not hardcode: it differs between the official image, the linuxserver image
# and a native install. Find the directory that actually contains index.html
# alongside the client bundle.
say "==> locating Jellyfin web root in container '$CONTAINER'"
WEBROOT="$(dexec 'for d in /usr/share/jellyfin/web /usr/lib/jellyfin/bin/jellyfin-web /jellyfin/jellyfin-web /app/jellyfin/jellyfin-web; do [ -f "$d/index.html" ] && echo "$d" && break; done' || true)"
if [[ -z "$WEBROOT" ]]; then
say " common paths missed — searching (this can take a moment)"
WEBROOT="$(dexec 'dirname "$(find / -name index.html -path "*web*" -maxdepth 6 2>/dev/null | head -1)"' || true)"
fi
[[ -n "$WEBROOT" && "$WEBROOT" != "." ]] || die "could not find the web root. Is the container named '$CONTAINER' and running?"
say " web root: $WEBROOT"
INDEX="$WEBROOT/index.html"
BAK="$WEBROOT/index.html.flamenet-bak"
is_installed() {
dexec "grep -q 'flamenet-extras:begin' '$INDEX'" >/dev/null 2>&1
}
case "$MODE" in
status)
if is_installed; then
say "==> INSTALLED — flamenet-extras.js is injected into $INDEX"
dexec "ls -la '$WEBROOT/flamenet-extras.js'" || say " WARNING: script tag present but the JS file is missing"
else
say "==> NOT installed (index.html has no flamenet-extras marker)"
say " if you installed it before, an image update has since replaced the container"
fi
;;
dry-run)
[[ -f "$JS_SRC" ]] || die "flamenet-extras.js not found next to this script"
say ""
say "would copy : $JS_SRC"
say " -> $CONTAINER:$WEBROOT/flamenet-extras.js ($(wc -c < "$JS_SRC" | tr -d ' ') bytes)"
say ""
say "would back up $INDEX -> $BAK"
say ""
say "would insert immediately before </body> in $INDEX:"
say " $MARK_BEGIN"
say " <script defer src=\"flamenet-extras.js\"></script>"
say " $MARK_END"
say ""
if is_installed; then
say "NOTE: already installed — --install would replace the existing block, not duplicate it."
fi
say "current </body> context:"
dexec "grep -n -B2 '</body>' '$INDEX' | tail -8" || true
;;
install)
[[ -f "$JS_SRC" ]] || die "flamenet-extras.js not found next to this script"
# remove any previous block first so repeat runs never stack up
if is_installed; then
say "==> existing install found — removing it before reinstalling"
dexec "sed -i '/flamenet-extras:begin/,/flamenet-extras:end/d' '$INDEX'"
else
say "==> backing up index.html"
dexec "[ -f '$BAK' ] || cp '$INDEX' '$BAK'"
fi
say "==> copying flamenet-extras.js into the container"
if [[ -n "$SSH_HOST" ]]; then
# stage on the remote host, then into the container
scp -q "$JS_SRC" "$SSH_HOST:/tmp/flamenet-extras.js"
run "docker cp /tmp/flamenet-extras.js $CONTAINER:$WEBROOT/flamenet-extras.js && rm -f /tmp/flamenet-extras.js"
else
docker cp "$JS_SRC" "$CONTAINER:$WEBROOT/flamenet-extras.js"
fi
say "==> injecting the script tag"
dexec "sed -i 's#</body>#$MARK_BEGIN\n<script defer src=\"flamenet-extras.js\"></script>\n$MARK_END\n</body>#' '$INDEX'"
if is_installed; then
say ""
say "==> done. Hard-reload the client (Cmd/Ctrl+Shift+R)."
say " Console check: FlameNet.status()"
say " Mute sounds: FlameNet.sound(false)"
say ""
say " REMINDER: this lives inside the container. Re-run after any image update."
else
die "injection did not take — index.html may have no </body> tag. Restore with --uninstall."
fi
;;
uninstall)
if dexec "[ -f '$BAK' ]"; then
say "==> restoring index.html from backup"
dexec "cp '$BAK' '$INDEX'"
else
say "==> no backup found; stripping the injected block instead"
dexec "sed -i '/flamenet-extras:begin/,/flamenet-extras:end/d' '$INDEX'"
fi
dexec "rm -f '$WEBROOT/flamenet-extras.js'" || true
say "==> removed. Hard-reload the client."
say " (The CSS theme is unaffected — clear the Custom CSS box to remove that.)"
;;
esac
File diff suppressed because it is too large Load Diff
+571
View File
@@ -0,0 +1,571 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>FlameNet Classic — Jellyfin theme preview</title>
<!-- THE THEME UNDER TEST -->
<link rel="stylesheet" href="flamenet.css">
<style>
/* ===========================================================================
PREVIEW HARNESS ONLY — none of this ships in flamenet.css.
It reproduces the layout geometry Jellyfin's own bundles provide
(flex scaffolding + the absolute-positioned guide grid) so the theme
can be judged against real markup offline.
=========================================================================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
.screen { display: none; }
.screen.active { display: block; }
/* --- switcher chrome (harness furniture) --- */
#switcher {
position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%);
z-index: 10000; display: flex; gap: 8px;
background: rgba(4,8,14,.85); padding: 8px; border-radius: 999px;
border: 2px solid #b9740a;
}
#switcher button {
font: 700 12px/1 "Trebuchet MS", Verdana, sans-serif;
letter-spacing: .08em; text-transform: uppercase;
padding: 9px 16px; border-radius: 999px; cursor: pointer;
border: 1px solid rgba(255,255,255,.2); color: #f3f1e4;
background: linear-gradient(180deg,#33587e,#1b3049);
}
#switcher button.on { background: linear-gradient(180deg,#ffd24a,#f2a516); color: #14100a; }
/* lift the switcher clear of the now-playing bar on the components screen */
#s-parts.active ~ #switcher { bottom: 5.6em; }
/* --- Jellyfin layout scaffolding (from main.jellyfin.css) --- */
.skinHeader {
display: flex; flex-direction: column; position: sticky; top: 0; z-index: 999;
}
.skinHeader .headerLeft { display: flex; align-items: center; padding: .5em .8em; gap: .3em; }
.headerButton { background: none; border: 0; font-size: 1.5em; cursor: pointer; color: inherit; padding: .2em .4em; }
.pageTitle { margin: 0 0 0 .4em; font-size: 1.15em; }
.headerRight { margin-left: auto; display: flex; gap: .2em; }
.layoutRow { display: flex; min-height: calc(100vh - 4em); }
.mainDrawer { width: 17em; flex-shrink: 0; padding: .8em 0; }
.drawerContent { padding: 0; }
.navMenuOption { display: flex; align-items: center; gap: .7em; text-decoration: none; cursor: pointer; }
.navMenuOptionIcon { width: 1.4em; text-align: center; font-size: 1.1em; }
.pageContent { flex: 1; padding: 1.2em 1.6em 5em; min-width: 0; }
.verticalSection { margin-bottom: 2em; }
.itemsContainer { display: flex; gap: 14px; flex-wrap: wrap; margin-top: .9em; }
.card { width: 190px; text-decoration: none; display: block; }
.card.backdropCard { width: 300px; }
.cardScalable { position: relative; }
.cardPadder { padding-bottom: 150%; }
.cardPadder-backdrop { padding-bottom: 56.25%; }
.cardImageContainer {
position: absolute; inset: 0; background-size: cover; background-position: center;
display: flex; align-items: center; justify-content: center;
font: 700 13px/1.3 "Trebuchet MS", Verdana, sans-serif; text-align: center;
color: rgba(255,255,255,.9); padding: 8px; text-shadow: 0 2px 4px rgba(0,0,0,.8);
}
.cardOverlayContainer { position: absolute; inset: 0; opacity: 0; }
.card:hover .cardOverlayContainer { opacity: 1; }
.cardIndicators { position: absolute; top: 6px; right: 6px; }
.indicator { padding: 2px 8px; font: 700 11px/1.6 "Trebuchet MS", Verdana, sans-serif; }
/* --- guide geometry (from the lazy chunk 36154) --- */
.tvguide { display: flex; flex-direction: column; }
.tvGuideHeader { display: flex; flex-direction: column; flex-shrink: 0; white-space: nowrap; }
.guideHeaderDateSelection { padding: .4em .5em; display: flex; gap: .3em; }
.guide-date-tab-button { border: 0; cursor: pointer; background: none; padding: .3em .7em; }
.guide-headerTimeslots { display: flex; }
.guide-channelTimeslotHeader {
width: 12vw; min-width: 150px; height: 2.8em; flex-shrink: 0; border: 0; cursor: pointer;
display: flex; align-items: center; justify-content: center;
}
.timeslotHeaders { flex: 1; overflow: hidden; font-size: 120%; font-weight: 500; }
.timeslotHeadersInner { position: relative; width: 100%; display: flex; }
.timeslotHeader { display: inline-flex; align-items: center; height: 2.8em; width: 16.6667%; text-indent: .3em; }
.guideVerticalScroller { display: flex; }
.channelsContainer { display: flex; flex-direction: column; flex-shrink: 0; width: 12vw; min-width: 150px; }
.guide-channelHeaderCell {
display: flex; align-items: center; height: 4.42em; width: 100%; cursor: pointer;
border: 0; text-align: left; overflow: hidden; position: relative; font-size: inherit;
font-family: inherit; padding: 0;
}
.guideChannelNumber { margin: 0; }
.guideChannelName { margin-left: auto; margin-right: 1em; overflow: hidden; text-overflow: ellipsis; }
.programGrid { flex-grow: 1; overflow: hidden; }
.programContainer { position: relative; }
.channelPrograms { position: relative; height: 4.42em; width: 100%; }
.programCell {
position: absolute; top: 0; bottom: 0; cursor: pointer; text-align: left;
display: flex; align-items: center; overflow: hidden; border: 0;
font-family: inherit; font-size: inherit; padding: 0; margin: 0;
}
.guideProgramName { display: flex; flex-direction: column; justify-content: center; padding: 0 .7em; overflow: hidden; width: 100%; }
.guideProgramNameText { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guideProgramSecondaryInfo { display: flex; align-items: center; gap: .35em; margin-top: .15em; }
.guide-programTextIcon { padding: .16em .35em; font-size: .74em; }
/* --- components screen geometry (chunk 14245 + main bundle) --- */
.nowPlayingBar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; text-align: center; }
.nowPlayingBarPositionContainer { position: relative; height: 0; }
.nowPlayingBarPositionSlider { width: 100%; margin: 0; position: relative; top: -.3em; }
.nowPlayingBarTop { display: flex; align-items: center; height: 4.2em; padding: 0 .8em; }
.nowPlayingBarInfoContainer { display: flex; align-items: center; height: 100%; width: 40%; overflow: hidden; }
.nowPlayingBar .nowPlayingImage { height: 70%; width: 4.2em; flex-shrink: 0; background-size: contain; }
.nowPlayingBarText { flex-grow: 1; font-size: 92%; margin-left: .5em; text-align: left; }
.nowPlayingBarCenter { display: flex; align-items: center; justify-content: center; flex-grow: 1; gap: .2em; }
.nowPlayingBarRight { display: flex; align-items: center; justify-content: flex-end; flex-shrink: 0; margin-left: auto; }
.nowPlayingBarCurrentTime { display: inline-block; padding-left: 1.5em; }
.dashboardSection { margin-bottom: 1.1em; }
.sessionNowPlayingName { margin: 0 0 .2em; }
.sessionNowPlayingTime, .sessionAppName, .sessionAppInfo { font-size: .88em; }
.sessionAppName { margin-top: .5em; }
.itemProgressBar { height: .5em; width: 100%; max-width: 460px; margin: .45em 0; position: relative; }
.itemProgressBarForeground { height: 100%; }
.alphaPicker { display: flex; gap: .3em; flex-wrap: wrap; }
.alphaPickerButton { width: 2.2em; height: 2.2em; border: 0; cursor: pointer; background: none; font-family: inherit; }
.iconOsd { display: flex; align-items: center; gap: .7em; padding: .8em 1.1em; }
.iconOsdIcon { font-size: 1.4em; }
.iconOsdProgressOuter { width: 9em; height: .55em; overflow: hidden; }
.iconOsdProgressInner { height: 100%; }
.toast { padding: .7em 1.3em; display: inline-block; }
.listItem { display: flex; align-items: center; gap: .8em; padding: .6em .8em; cursor: pointer; }
.listItemBody { display: flex; flex-direction: column; }
.listItemBodyText { margin: 0; }
.listItemImage {
width: 3.4em; height: 3.4em; border-radius: 7px; flex-shrink: 0;
background: linear-gradient(160deg,#33587e,#1b3049);
display: flex; align-items: center; justify-content: center; font-size: 1.3em;
}
</style>
</head>
<body>
<!-- ======================= 1. FLAMENET CENTRAL (home) ======================= -->
<div class="screen active" id="s-home">
<div class="skinHeader skinHeader-withBackground">
<div class="headerLeft">
<button class="headerButton paper-icon-button-light">&#9776;</button>
<h3 class="pageTitle">FlameNet Central</h3>
<div class="headerRight">
<button class="headerButton paper-icon-button-light">&#128269;</button>
<button class="headerButton paper-icon-button-light">&#9881;</button>
<button class="headerButton paper-icon-button-light">&#128100;</button>
</div>
</div>
</div>
<div class="layoutRow">
<div class="mainDrawer">
<div class="drawerContent mainDrawer-scrollContainer">
<a class="navMenuOption navMenuOption-selected"><span class="navMenuOptionIcon">&#9679;</span><span class="navMenuOptionText">Now Playing List</span></a>
<a class="navMenuOption"><span class="navMenuOptionIcon">&#128250;</span><span class="navMenuOptionText">Live TV</span></a>
<a class="navMenuOption"><span class="navMenuOptionIcon">&#128197;</span><span class="navMenuOptionText">Channel Guide</span></a>
<a class="navMenuOption"><span class="navMenuOptionIcon">&#127916;</span><span class="navMenuOptionText">Movies on Demand</span></a>
<a class="navMenuOption"><span class="navMenuOptionIcon">&#128253;</span><span class="navMenuOptionText">TV Shows</span></a>
<a class="navMenuOption"><span class="navMenuOptionIcon">&#127925;</span><span class="navMenuOptionText">Music</span></a>
<a class="navMenuOption"><span class="navMenuOptionIcon">&#128308;</span><span class="navMenuOptionText">To Do List</span></a>
<a class="navMenuOption"><span class="navMenuOptionIcon">&#9881;</span><span class="navMenuOptionText">Messages &amp; Setup</span></a>
</div>
</div>
<div class="pageContent">
<div class="verticalSection">
<h2 class="sectionTitle">Continue Watching</h2>
<div class="itemsContainer">
<a class="card backdropCard"><div class="cardBox"><div class="cardScalable">
<div class="cardPadder cardPadder-backdrop"></div>
<div class="cardImageContainer" style="background:linear-gradient(140deg,#3b2f5e,#141024)">The Sopranos</div>
<div class="cardOverlayContainer"></div>
<div class="cardIndicators"><span class="indicator">S2 E4</span></div>
</div><div class="cardText cardText-first">The Sopranos</div><div class="cardText cardText-secondary">28 min left</div></div></a>
<a class="card backdropCard"><div class="cardBox"><div class="cardScalable">
<div class="cardPadder cardPadder-backdrop"></div>
<div class="cardImageContainer" style="background:linear-gradient(140deg,#0f3f3a,#07211f)">Law &amp; Order</div>
<div class="cardOverlayContainer"></div>
<div class="cardIndicators"><span class="indicator">S9 E12</span></div>
</div><div class="cardText cardText-first">Law &amp; Order</div><div class="cardText cardText-secondary">41 min left</div></div></a>
<a class="card backdropCard"><div class="cardBox"><div class="cardScalable">
<div class="cardPadder cardPadder-backdrop"></div>
<div class="cardImageContainer" style="background:linear-gradient(140deg,#5e3a1a,#231407)">Antiques Roadshow</div>
<div class="cardOverlayContainer"></div>
</div><div class="cardText cardText-first">Antiques Roadshow</div><div class="cardText cardText-secondary">12 min left</div></div></a>
</div>
</div>
<div class="verticalSection">
<h2 class="sectionTitle">Recorded This Week</h2>
<div class="itemsContainer">
<div class="listItem" style="width:100%"><div class="listItemImage">&#128308;</div>
<div class="listItemBody"><h3 class="listItemBodyText">Monday Night Football</h3>
<div class="listItemBodyText listItemBodyText-secondary">CH 206 &middot; Mon 8:00 PM &middot; 3h 15m</div></div></div>
<div class="listItem" style="width:100%"><div class="listItemImage">&#128250;</div>
<div class="listItemBody"><h3 class="listItemBodyText">Seinfeld &mdash; The Contest</h3>
<div class="listItemBodyText listItemBodyText-secondary">CH 112 &middot; Tue 7:30 PM &middot; 30m</div></div></div>
<div class="listItem" style="width:100%"><div class="listItemImage">&#127916;</div>
<div class="listItemBody"><h3 class="listItemBodyText">The Matrix</h3>
<div class="listItemBodyText listItemBodyText-secondary">CH 301 &middot; Wed 9:00 PM &middot; 2h 16m</div></div></div>
</div>
</div>
</div>
</div>
</div>
<!-- ======================= 2. CHANNEL GUIDE ======================= -->
<div class="screen" id="s-guide">
<div class="skinHeader skinHeader-withBackground">
<div class="headerLeft">
<button class="headerButton paper-icon-button-light">&#9776;</button>
<h3 class="pageTitle">Channel Guide</h3>
<div class="headerRight">
<button class="headerButton paper-icon-button-light">&#128269;</button>
<button class="headerButton paper-icon-button-light">&#9881;</button>
</div>
</div>
</div>
<div class="tvguide">
<div class="tvGuideHeader">
<div class="guideHeaderDateSelection">
<button class="guide-date-tab-button emby-tab-button emby-tab-button-active">Today</button>
<button class="guide-date-tab-button emby-tab-button">Fri 8</button>
<button class="guide-date-tab-button emby-tab-button">Sat 9</button>
<button class="guide-date-tab-button emby-tab-button">Sun 10</button>
</div>
<div class="guide-headerTimeslots">
<button class="guide-channelTimeslotHeader"></button>
<div class="timeslotHeaders">
<div class="timeslotHeadersInner">
<div class="timeslotHeader">7:00 PM</div>
<div class="timeslotHeader">7:30 PM</div>
<div class="timeslotHeader">8:00 PM</div>
<div class="timeslotHeader">8:30 PM</div>
<div class="timeslotHeader">9:00 PM</div>
<div class="timeslotHeader">9:30 PM</div>
</div>
</div>
</div>
</div>
<div class="guideVerticalScroller">
<div class="channelsContainer">
<button class="guide-channelHeaderCell"><h3 class="guideChannelNumber">102</h3><div class="guideChannelName">TNT</div></button>
<button class="guide-channelHeaderCell"><h3 class="guideChannelNumber">112</h3><div class="guideChannelName">TBS</div></button>
<button class="guide-channelHeaderCell"><h3 class="guideChannelNumber">206</h3><div class="guideChannelName">ESPN</div></button>
<button class="guide-channelHeaderCell"><h3 class="guideChannelNumber">301</h3><div class="guideChannelName">HBO</div></button>
<button class="guide-channelHeaderCell"><h3 class="guideChannelNumber">044</h3><div class="guideChannelName">Discovery</div></button>
<button class="guide-channelHeaderCell"><h3 class="guideChannelNumber">318</h3><div class="guideChannelName">AMC</div></button>
<button class="guide-channelHeaderCell"><h3 class="guideChannelNumber">029</h3><div class="guideChannelName">Cartoon Net</div></button>
</div>
<div class="programGrid">
<div class="programContainer">
<div class="channelPrograms">
<button class="programCell" style="left:0%;width:33.33%"><div class="guideProgramName">
<div class="guideProgramNameText">NBA on TNT: Bulls at Knicks</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon liveTvProgram">LIVE</span><span class="guide-programTextIcon guideHdIcon">HD</span>7:00 - 9:00 PM</div>
</div></button>
<button class="programCell" style="left:33.33%;width:33.34%"><div class="guideProgramName">
<div class="guideProgramNameText">Inside the NBA</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon newTvProgram">NEW</span>9:00 - 10:00 PM</div>
</div></button>
<button class="programCell" style="left:66.67%;width:33.33%"><div class="guideProgramName">
<div class="guideProgramNameText">Law &amp; Order</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon repeatTvProgram">REP</span>10:00 - 11:00 PM</div>
</div></button>
</div>
<div class="channelPrograms">
<button class="programCell" style="left:0%;width:16.66%"><div class="guideProgramName">
<div class="guideProgramNameText">Seinfeld</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon repeatTvProgram">REP</span>7:00 PM</div>
</div></button>
<button class="programCell" style="left:16.66%;width:16.67%"><div class="guideProgramName">
<div class="guideProgramNameText">Friends</div>
<div class="guideProgramSecondaryInfo">7:30 PM</div>
</div></button>
<button class="programCell" style="left:33.33%;width:33.34%"><div class="guideProgramName">
<div class="guideProgramNameText">Movie: Ghostbusters</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon guideHdIcon">HD</span>8:00 - 10:00 PM</div>
</div></button>
<button class="programCell" style="left:66.67%;width:33.33%"><div class="guideProgramName">
<div class="guideProgramNameText">Family Guy</div>
<div class="guideProgramSecondaryInfo">10:00 PM</div>
</div></button>
</div>
<div class="channelPrograms">
<button class="programCell" style="left:0%;width:16.66%"><div class="guideProgramName">
<div class="guideProgramNameText">SportsCenter</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon liveTvProgram">LIVE</span>7:00 PM</div>
</div></button>
<button class="programCell" style="left:16.66%;width:66.68%"><div class="guideProgramName">
<div class="guideProgramNameText">Monday Night Football: Packers at Vikings</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon liveTvProgram">LIVE</span><span class="guide-programTextIcon guideHdIcon">HD</span>7:30 - 11:00 PM</div>
</div></button>
<button class="programCell" style="left:83.34%;width:16.66%"><div class="guideProgramName">
<div class="guideProgramNameText">NFL PrimeTime</div>
<div class="guideProgramSecondaryInfo">11:00 PM</div>
</div></button>
</div>
<div class="channelPrograms">
<button class="programCell" style="left:0%;width:50%"><div class="guideProgramName">
<div class="guideProgramNameText">The Sopranos: Pine Barrens</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon newTvProgram">NEW</span><span class="guide-programTextIcon guideHdIcon">HD</span>7:00 - 8:30 PM</div>
</div></button>
<button class="programCell" style="left:50%;width:50%"><div class="guideProgramName">
<div class="guideProgramNameText">Movie: The Matrix</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon guideHdIcon">HD</span>8:30 - 11:00 PM</div>
</div></button>
</div>
<div class="channelPrograms">
<button class="programCell" style="left:0%;width:33.33%"><div class="guideProgramName">
<div class="guideProgramNameText">Shark Week: Air Jaws</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon newTvProgram">NEW</span>7:00 - 9:00 PM</div>
</div></button>
<button class="programCell" style="left:33.33%;width:16.67%"><div class="guideProgramName">
<div class="guideProgramNameText">MythBusters</div>
<div class="guideProgramSecondaryInfo">9:00 PM</div>
</div></button>
<button class="programCell" style="left:50%;width:50%"><div class="guideProgramName">
<div class="guideProgramNameText">How It's Made Marathon</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon repeatTvProgram">REP</span>9:30 PM - 12:00 AM</div>
</div></button>
</div>
<div class="channelPrograms">
<button class="programCell" style="left:0%;width:50%"><div class="guideProgramName">
<div class="guideProgramNameText">Movie: Goodfellas</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon guideHdIcon">HD</span>7:00 - 9:30 PM</div>
</div></button>
<button class="programCell" style="left:50%;width:50%"><div class="guideProgramName">
<div class="guideProgramNameText">Mad Men</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon newTvProgram">NEW</span>9:30 - 10:30 PM</div>
</div></button>
</div>
<div class="channelPrograms">
<button class="programCell" style="left:0%;width:16.66%"><div class="guideProgramName">
<div class="guideProgramNameText">Dexter's Laboratory</div>
<div class="guideProgramSecondaryInfo">7:00 PM</div>
</div></button>
<button class="programCell" style="left:16.66%;width:16.67%"><div class="guideProgramName">
<div class="guideProgramNameText">Johnny Bravo</div>
<div class="guideProgramSecondaryInfo">7:30 PM</div>
</div></button>
<button class="programCell" style="left:33.33%;width:16.67%"><div class="guideProgramName">
<div class="guideProgramNameText">Ed, Edd n Eddy</div>
<div class="guideProgramSecondaryInfo">8:00 PM</div>
</div></button>
<button class="programCell" style="left:50%;width:50%"><div class="guideProgramName">
<div class="guideProgramNameText">Toonami: Dragon Ball Z</div>
<div class="guideProgramSecondaryInfo"><span class="guide-programTextIcon repeatTvProgram">REP</span>8:30 - 11:00 PM</div>
</div></button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ======================= 3. ON DEMAND ======================= -->
<div class="screen" id="s-vod">
<div class="skinHeader skinHeader-withBackground">
<div class="headerLeft">
<button class="headerButton paper-icon-button-light">&#9776;</button>
<h3 class="pageTitle">Movies on Demand</h3>
<div class="headerRight">
<button class="headerButton paper-icon-button-light">&#128269;</button>
<button class="headerButton paper-icon-button-light">&#9881;</button>
</div>
</div>
<div class="headerTabs">
<button class="emby-tab-button emby-tab-button-active">Movies</button>
<button class="emby-tab-button">Collections</button>
<button class="emby-tab-button">Genres</button>
<button class="emby-tab-button">Favorites</button>
</div>
</div>
<div class="pageContent">
<div class="verticalSection">
<h2 class="sectionTitle">Showcase &mdash; New Arrivals</h2>
<div class="itemsContainer" id="vodGrid"></div>
</div>
</div>
</div>
<!-- ======================= 4. COMPONENTS ======================= -->
<div class="screen" id="s-parts">
<div class="skinHeader skinHeader-withBackground">
<div class="headerLeft">
<button class="headerButton paper-icon-button-light">&#9776;</button>
<h3 class="pageTitle">Components</h3>
</div>
</div>
<div class="pageContent">
<div class="verticalSection">
<h2 class="sectionTitle">Dashboard &mdash; Active Sessions</h2>
<div class="dashboardSection">
<div class="sessionNowPlayingContent">
<h3 class="sessionNowPlayingName">Monday Night Football</h3>
<div class="sessionNowPlayingTime">1:42:08 / 3:15:00</div>
<div class="itemProgressBar"><div class="itemProgressBarForeground" style="width:52%"></div></div>
<div class="sessionAppName">Jellyfin Web &middot; Chrome</div>
<div class="sessionAppInfo">FlameNet &middot; 10.0.0.42</div>
</div>
</div>
<div class="dashboardSection">
<div class="sessionNowPlayingContent">
<h3 class="sessionNowPlayingName">The Sopranos &mdash; Pine Barrens</h3>
<div class="sessionNowPlayingTime">0:12:41 / 0:58:00</div>
<div class="itemProgressBar"><div class="itemProgressBarForeground" style="width:22%"></div></div>
<div class="sessionAppName">Infuse &middot; Apple TV</div>
<div class="sessionAppInfo">Direct Play</div>
</div>
</div>
</div>
<div class="verticalSection">
<h2 class="sectionTitle">Search &amp; Alpha Picker</h2>
<div style="display:flex;align-items:center;gap:.7em;margin-bottom:1em">
<span class="searchfields-icon">&#128269;</span>
<input class="emby-input" style="flex:1;max-width:380px" value="sopranos" >
</div>
<div class="alphaPicker">
<button class="alphaPickerButton">#</button><button class="alphaPickerButton">A</button>
<button class="alphaPickerButton">B</button><button class="alphaPickerButton alphaPickerButton-selected">C</button>
<button class="alphaPickerButton">D</button><button class="alphaPickerButton">E</button>
<button class="alphaPickerButton">F</button><button class="alphaPickerButton">G</button>
<button class="alphaPickerButton">H</button><button class="alphaPickerButton">I</button>
</div>
</div>
<div class="verticalSection">
<h2 class="sectionTitle">Popups</h2>
<div style="display:flex;gap:1.4em;align-items:center;flex-wrap:wrap">
<div class="iconOsd">
<span class="iconOsdIcon">&#128266;</span>
<div class="iconOsdProgressOuter"><div class="iconOsdProgressInner" style="width:68%"></div></div>
</div>
<div class="toast">Recording scheduled &mdash; Monday Night Football</div>
<button class="emby-button raised">Watch Now</button>
<button class="emby-button raised button-submit">Record</button>
</div>
</div>
</div>
<!-- now playing bar, pinned bottom -->
<div class="nowPlayingBar">
<div class="nowPlayingBarPositionContainer">
<input type="range" class="nowPlayingBarPositionSlider mdl-slider" value="52" >
</div>
<div class="nowPlayingBarTop">
<div class="nowPlayingBarInfoContainer">
<div class="nowPlayingImage" style="background:linear-gradient(150deg,#4a3a12,#191305)"></div>
<div class="nowPlayingBarText">Monday Night Football<br><span style="opacity:.75;font-weight:400">ESPN &middot; CH 206</span></div>
</div>
<div class="nowPlayingBarCenter">
<button class="headerButton paper-icon-button-light">&#9198;</button>
<button class="headerButton paper-icon-button-light">&#9199;</button>
<button class="headerButton paper-icon-button-light">&#9197;</button>
<span class="nowPlayingBarCurrentTime">1:42:08 / 3:15:00</span>
</div>
<div class="nowPlayingBarRight">
<button class="headerButton paper-icon-button-light">&#128266;</button>
<button class="headerButton paper-icon-button-light">&#9776;</button>
</div>
</div>
</div>
</div>
<div id="switcher">
<button data-t="s-home" class="on">FlameNet Central</button>
<button data-t="s-guide">Channel Guide</button>
<button data-t="s-vod">On Demand</button>
<button data-t="s-parts">Components</button>
</div>
<script>
// harness only: fake poster grid + screen switching
var titles = [
["The Matrix","1999",["#1d3f2a","#07140d"]],
["Fight Club","1999",["#4a1f1f","#180909"]],
["Goodfellas","1990",["#4a3a12","#191305"]],
["Jurassic Park","1993",["#1b3f4a","#08181c"]],
["Pulp Fiction","1994",["#4a1230","#1a0611"]],
["Terminator 2","1991",["#2a2a35","#0d0d12"]],
["Heat","1995",["#173049","#07131d"]],
["The Big Lebowski","1998",["#3d4a12","#151a05"]],
["Fargo","1996",["#39496b","#141828"]],
["Toy Story","1995",["#4a3812","#1a1305"]],
["Se7en","1995",["#1f1f1f","#080808"]],
["Ghostbusters","1984",["#0f3f3a","#051917"]]
];
var g = document.getElementById('vodGrid');
titles.forEach(function (t) {
var a = document.createElement('a');
a.className = 'card';
a.innerHTML =
'<div class="cardBox"><div class="cardScalable">' +
'<div class="cardPadder"></div>' +
'<div class="cardImageContainer" style="background:linear-gradient(150deg,' + t[2][0] + ',' + t[2][1] + ')">' + t[0] + '</div>' +
'<div class="cardOverlayContainer"></div>' +
'</div>' +
'<div class="cardText cardText-first">' + t[0] + '</div>' +
'<div class="cardText cardText-secondary">' + t[1] + '</div></div>';
g.appendChild(a);
});
function show(id) {
if (!document.getElementById(id)) return false;
[].forEach.call(document.querySelectorAll('#switcher button'), function (x) {
x.classList.toggle('on', x.dataset.t === id);
});
[].forEach.call(document.querySelectorAll('.screen'), function (x) {
x.classList.toggle('active', x.id === id);
});
return true;
}
document.getElementById('switcher').addEventListener('click', function (e) {
var b = e.target.closest('button');
if (!b) return;
show(b.dataset.t);
history.replaceState(null, '', '#' + b.dataset.t.replace(/^s-/, ''));
});
// deep-link a screen: preview.html#guide / #vod / #parts / #home
(function () {
var h = (location.hash || '').replace(/^#/, '');
if (h) show(h.indexOf('s-') === 0 ? h : 's-' + h);
})();
window.addEventListener('hashchange', function () {
var h = (location.hash || '').replace(/^#/, '');
if (h) show(h.indexOf('s-') === 0 ? h : 's-' + h);
});
</script>
<!-- optional extras layer (sounds + guide NOW line); theme works without it -->
<script src="flamenet-extras.js"></script>
</body>
</html>
Executable
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env bash
# Restore jellyfin.example.com's branding config to the pre-FlameNet backup
# (which had NO custom CSS). Reverts the theme completely.
# ./rollback.sh uses backups/branding-BEFORE-flamenet.json
# ./rollback.sh FILE.json restore a specific backup
set -euo pipefail
cd "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
: "${JELLYFIN_URL:=https://jellyfin.example.com}"
: "${JELLYFIN_TOKEN:?set JELLYFIN_TOKEN to a Jellyfin API key}"
SRC="${1:-backups/branding-BEFORE-flamenet.json}"
[[ -f "$SRC" ]] || { echo "backup not found: $SRC" >&2; exit 1; }
echo "restoring $SRC -> $JELLYFIN_URL"
code=$(curl -s -m 40 -o /dev/null -w '%{http_code}' -X POST \
"$JELLYFIN_URL/System/Configuration/branding" \
-H "X-Emby-Token: $JELLYFIN_TOKEN" -H "Content-Type: application/json" \
--data-binary @"$SRC")
echo "POST -> $code"
[[ "$code" == "204" ]] || { echo "unexpected status" >&2; exit 1; }
n=$(curl -s -m 20 "$JELLYFIN_URL/Branding/Css" | wc -c | tr -d ' ')
echo "served /Branding/Css is now $n bytes (0 = theme removed)"
echo "hard-reload the client to see it."