Seite auf Deutsch

Magic trick with safety net

Nils Hörrmann

With our site’s redesign, our old website vanishes from the internet – naturally. Normally, this would’ve been worth a screenshot and a sigh (“What a great time we had!”) and off we go, heading into the bright new future. Normally – as in this case, it’s different.

At first sight, there didn’t seem to be anything conspicuous about our previous website’s construction. There was an introduction, a project overview and filtered sub pages. Yet, under the hood, this is the point that differed from most other websites we’ve designed: actually, there were no sub pages. The entire site was a single static HTML page – no CMS, no templates, all sub pages were just a clever trick.

Website design from 2014. Screenshot.
Figure Partial view of our previous website. The virtual sub pages were placed next to each other horizontally: On clicking a category, the page scrolled to to the top and the new filtered view slid in from right to left.

The concept was quite simple: each project had categories and meta information stored in data attributes in the markup that allowed the generation of virtual overviews. Using JavaScript, the general view was cloned and filtered by category, the navigation was operated and views switched with animations. Still, the website was fully functional without any scripts, just lacking the filters in that case. A magic trick with safety net.


A project’s markup looked like this, for example:

    class="project block-stilbluete"
    <aside class="meta centered">
        <a href="#stilbluete">
            <span class="meta-designer">hn</span>
            <span class="meta-number">01/1</span>
    <article class="text-slides">
            <a href="">
                Stil-Blüte Handarbeit &amp; Co.
            ist ein Wollgeschäft in Braunschweig, welches sich auf
            außergewöhnliche Handstrickgarne spezialisiert hat. Der
            Internetauftritt umfasst Onlineshop, Kursanmeldung und
            Informationen rund um das Ladengeschäft, bei denen auch
            Jack-Russel-Terrier Rudi seine Abenteuer als Ladenhüter mit
            den Lesern teilt. Die Gestaltung sollte sich in ihrer
            Klarheit bewusst von gängigen Onlineshops abheben. Für die
            Website entstanden ein eigenes Iconset sowie kleinere
    <small class="text-center fineprint">
        <time class="uppercase" datetime="2009">seit 2009</time>
        Website, Shop, Icons, Illustration, Symphony
    <div class="card centered grid">
        <div class="column size-12 ratio-3-2">
                → Link zum Bild

The attribute data-categories contained one or more categories that were used to create the navigation and the subpages:

function createCategoryFilters() {
    var ul = document.querySelector('#footer .footer-filters');

    // Add category filters
    categories.forEach(function (category) {
        var li = document.createElement('li'),
            a = document.createElement('a'),
            text = document.createTextNode(category);

        // Set filter link
        a.setAttribute('href', 'kategorie/' + createHandle(category));
        a.setAttribute('class', 'footer-filter');

        // Append Elements
        ul.insertBefore(li, ul.firstChild);

function createCategoryPages() {
    // Setup pages
    categories.forEach(function (name) {
        var clone = slides.querySelector('.slide-all').cloneNode(true);

        clone.classList.add('slide-' + createHandle(name));

        // Filter page by category
        []'section'), function (project) {
            var currentCategories = project
                .split(', ');

            if (currentCategories.indexOf(name) == -1) {


So, one last screenshot. What a great time we had!