Website source for SplatSuRe.
Built as plain HTML, CSS and JavaScript — no framework and no build step, so what is in the repository is what the browser gets. The notes below cover the parts that are not obvious from reading the markup.
Template. This site began as the excellent academic paper template by the authors of
Nerfies
https://github.com/nerfies/nerfies.github.io
Huge thanks to them for open-sourcing a clean, well-structured starting point. The page has since
been substantially rewritten — the stylesheets, the JavaScript and the media pipeline are our own —
but the page architecture and much of the class vocabulary (publication-title,
publication-authors, author-block, the footer glyph row) are still theirs, and these pages
would not look the way they do without it.
Before/after slider. The bal-* comparison slider (script.js) is adapted from a
third-party CodePen component that arrived with the original template rather than from
Nerfies itself. The version here has been rewritten around a ResizeObserver.
Libraries. Bulma (MIT), purged to the rules this page uses; Font Awesome and Academicons (SIL OFL 1.1), subset to the glyphs in use; Noto Sans (SIL OFL 1.1), self-hosted; MathJax and PDF.js (Apache 2.0), both loaded from a CDN on demand.
Licence. The Nerfies template is released under CC BY-SA 4.0, so this site is offered under the same terms. If you build on it, please credit both Nerfies and this repository, and pass the same terms along.
- Purged Bulma. Only the rules this page actually uses are shipped — 14 KB of the framework's ~200 KB. jQuery, bulma-carousel and the full Font Awesome bundle are gone entirely. Because the purge is per-site, each of these pages carries a slightly different subset.
- Self-hosted, subset fonts. Noto Sans is served as a variable font subset from this repo
rather than from Google's CDN, which removed a third-party round-trip before any text could
paint. The icon fonts are subset to only the glyphs in use — 13 of Font Awesome's ~2000
and Academicons' ~150, about 3 KB in total. Regenerate with
tools/build-webfonts.sh, which scans the markup and JavaScript for the classes actually referenced, so no list needs maintaining by hand, and refuses to finish if a glyph is missing an outline or a stylesheet rule. - Media loaded on demand. The results carousel's images are promoted from
loading="lazy"only once the carousel itself is on screen — an off-screen slide never enters the viewport by scrolling, so the browser would otherwise defer it indefinitely and the first step round the ring would show empty boxes. The one video here is the hero comparison slider, which is above the fold and eager by design: the slider initialises from its ownonplayhandler. - Dual-codec video delivery. The hero comparison prefers AV1 and retains its existing fast-start H.264 source as a compatibility fallback.
- Space reserved before decode. Images and canvases declare their source aspect ratio, so nothing shifts as media arrives.
cache_bust.pystamps a version query on every local asset — in the HTML, inurl()inside our own stylesheets, and in versioned URLs built in JavaScript. Covering all three matters: a<link rel="preload">and the@font-faceurl()it preloads must agree byte-for-byte, query string included, or the browser treats them as two resources and the preload is wasted.
theme.css+theme-switcher.js. Every colour resolves through a custom property, so a theme is one attribute on<html>rather than a cascade of overrides. The sun/moon glyph in the footer colophon toggles it and the choice persists inlocalStorage.- Light is the default, deliberately. There is no
prefers-color-schemedetection: these are paper pages usually reached from a link and read once, and the light rendering is the one the figures were authored against. Dark is opt-in. - No flash. A small inline script at the very top of
<head>sets the theme before the first paint. A deferred file would let the page paint light and then correct itself. - Dark is a palette, not an inversion. Inverting a page turns drop shadows into glows and makes the link blue vibrate. The dark values are chosen against the surface each one actually sits on, and every text colour clears WCAG AA with room to spare.
- Paper figures get a light card in dark mode. Plots and tables lifted from the paper have a white background baked into the image; on a dark page they would become glowing rectangles whose black text you had to read out of a bright panel. They are set on a light card instead, so the white reads as a sheet of paper laid on the page — which is how the figure looks in the PDF anyway. Inverting them was rejected: it would wreck the colour-coded cells and highlight swatches that carry meaning.
- Landmarks and a heading outline that follows the document, one
<h1>per page. - Every image has a meaningful
alt; every link and control has a discernible name. - Visible focus rings on everything focusable, in both themes.
prefers-reduced-motiondisables the carousel animation, the hover polish and the theme transition. The carousel checksmatchMediain JavaScript as well, because its transition is set as an inline style and a stylesheet media query cannot override one.- Long words wrap rather than overflow: Bulma sets
html { overflow-x: hidden }, so an overflowing word is clipped and unreachable rather than merely off-screen. - Display equations shrink to fit a narrow screen instead of scrolling. MathJax writes its own
font-sizeinline, so the scaling is a transform on the inner box; a scroll container is retained underneath for anything the scaling cannot rescue, so nothing is ever unreachable.
.
├── index.html
├── static/
│ ├── css/
│ │ ├── bulma.min.css # purged to this page's rules
│ │ ├── icons.css # @font-face + the glyphs in use
│ │ ├── index.css # this page's own styles
│ │ ├── interactions.css # hover and focus polish
│ │ ├── noto-sans.css # self-hosted body typeface
│ │ ├── pdf-modal.css # shared with the sibling sites
│ │ ├── rhythm.css # vertical spacing scale, footer layout
│ │ ├── slideshow.css # carousel layout
│ │ └── theme.css # colour tokens, both themes, the colophon
│ ├── js/
│ │ ├── math-fit.js # scales display equations to narrow screens
│ │ ├── pdf-modal.js # focus-trapped PDF overlay, PDF.js on demand
│ │ ├── script.js # BibTeX copy button + before/after slider
│ │ ├── slideshow.js # the results carousel
│ │ ├── theme-switcher.js # light/dark, persisted in localStorage
│ │ └── video_comparison.js # canvas-drawn split video
│ ├── webfonts/ # subset icon fonts + Noto Sans
│ ├── images/ # stills, figures, favicons
│ ├── videos/ # web-delivery encodes
│ └── files/ # poster PDF + its scaled-down viewer copy
├── tools/
│ ├── build-webfonts.sh # rebuild the font subsets
│ └── build-media.sh # re-encode video from the HQ masters
├── cache_bust.py # stamp ?v= on every local asset
├── run_server.sh
├── robots.txt
└── sitemap.xml
- Results carousel (
slideshow.js,slideshow.css)
A dependency-free replacement for bulma-carousel, which needed jQuery and ~40 KB of library to do this. The track is a true ring: each slide is positioned by its cyclic distance from the active one, so last-to-first animates as one step rather than snapping across a seam. Draggable by mouse and touch; deliberately no auto-advance, since yanking a result away mid-inspection is worse than a click. Only the visible slide decodes — the rest are paused viaIntersectionObserver. On phones the peek is dropped so the active slide takes the full column, and the neighbours sit off-screen behind a clip rather than being faded out, so a step is one transform on one curve instead of a fade and a slide fighting each other. - Before/after image sliders (
script.js)
Draggable split comparisons. On desktop the divider snaps back to 50/50 when the pointer leaves. Discovered by class rather than by a hand-maintained list of ids, so the list cannot drift out of sync with the markup. The container's aspect ratio is declared inline per slider from its own image dimensions, so the box is reserved before the image decodes and stepping the carousel does not jump. - Video comparison sliders (
video_comparison.js)
Side-by-side video with a draggable divider, drawn to a canvas. On desktop the divider snaps back to its 50/50 default when the pointer leaves. The draw loop runs only while the canvas is on screen and the clip is playing, so two sliders do not burn CPU for the whole page. The backing store is capped at 2× DPR — beyond that the extra pixels cost real per-frame time for no perceptible gain. The container is sized to the canvas, so the rounded, shadowed surface always coincides with the picture. - In-page PDF viewer (
pdf-modal.js)
Opens any PDF link in a focus-trapped overlay, loading PDF.js from cdnjs on first use rather than shipping it, and falling back to the browser's own viewer on mobile. A poster link is rewritten to its_viewer.pdftwin before being handed to the iframe — a conference poster is authored at print resolution, so the original is several megabytes that no on-screen reader needs. - Footer colophon (
.colophonintheme.css)
Copyright, theme toggle and source link on one line, after the row of paper glyphs. The two·separators are literal text in the markup: they are punctuation between three peers, not decoration. The toggle is a<button>rather than an<a>because it acts on this page instead of going anywhere, and it inherits itsfont-sizefrom the line rather than being pinned to the glyph row's 25px, so it stays the size of the copyright beside it at every breakpoint. The source glyph takes the glyph row's lift-and-glow on hover rather than the sliding underline that every other link inside a.contentparagraph gets — hence the:not(.colophon)on those prose selectors. The toggle is excluded from the lift, since it already answers a hover by setting the sun and raising the moon. The copyright year is the paper's publication year, not the current one: these pages are archival, so a fixed year needs no yearly re-stamping and cannot drift.
These paper pages share this foundation — the same purged Bulma, the self-hosted font subsets,
the carousel, the theme switcher, cache_bust.py and the tools/ scripts. Where a fix applies
to all of them it is made in each, so the shared files are byte-identical once the version query
strings are normalised. Read any of them as reference code, and borrow freely:
- GOFish — source
- RIDE-Splat — source
- PUP 3D-GS — source
- Speedy-Splat — source
- SpeeDe3DGS — source
- TransFIRA — source
My personal site, tuallen.github.io (source), is a separate lineage — a different template, no Bulma, and its own component system — but it shares the carousel behaviour, theme toggle, cache-busting approach, and other web-delivery conventions used across these sites.
If you are starting a paper page from scratch, take Nerfies as the base and treat these as worked examples of where to go next. Anything from these repositories carries the CC BY-SA 4.0 terms noted above.
./run_server.sh # serve at http://localhost:8000
python3 cache_bust.py # dry run: show which asset versions would change
python3 cache_bust.py --apply
tools/build-webfonts.sh # regenerate the font subsets after adding an icon