System
Label Value Edit
Version 2.8.3
Language English (English)
Support Discord | Github | Blog
Donate Paypal
Appearance
Label Value Edit
Background Image View
Trianglify No
Trianglify Random Seed heimdall
Treat Tags As: Tags
Miscellaneous
Label Value Edit
Homepage Search No
Default Search Provider Google
Link opens in Open in a new tab
Advanced
Label Value Edit
Custom CSS
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@700;800&display=swap");

/* ============================================================
   HEIMDALL DASHBOARD v2.1
   Safe version - preserves original Heimdall layout behaviour
   ============================================================ */


/* ------------------------------------------------------------
   Main
   ------------------------------------------------------------ */

#app {
    background-position: right;
}

#app #sortable,
#app main {
    padding: 20px;
}


/* ------------------------------------------------------------
   Configuration buttons
   ------------------------------------------------------------ */

#config-buttons {
    bottom: 50%;
    transform: translateY(50%);

    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;

    background-color: rgba(110, 111, 110, 0.4);

    box-shadow:
        rgba(255, 255, 255, 0.1) -1px 1px 1px 0,
        rgba(255, 255, 255, 0.1) 0 -1px 1px 0,
        rgba(0, 0, 0, 0.1) -1px 0 20px 5px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#config-buttons a {
    background: none;
}

#config-buttons a svg {
    color: rgba(255, 255, 255, 0.5);

    transition:
        transform 0.1s ease-in-out,
        color 0.1s ease-in-out;
}

#config-buttons a:hover svg {
    transform: scale(1.1);
    color: rgba(192, 195, 193, 0.95);
}


/* ------------------------------------------------------------
   General text
   ------------------------------------------------------------ */

.black {
    color: white !important;
}

.details * {
    color: white !important;
}


/* ------------------------------------------------------------
   Heimdall application cards
   ------------------------------------------------------------ */

.item {
    box-shadow:
        rgba(0, 0, 0, 0.05) -1px -1px 5px 0,
        rgba(0, 0, 0, 0.15) 0 20px 25px -5px,
        rgba(0, 0, 0, 0.04) 0 10px 10px -5px !important;

    border-radius: 12px;

    background-image: none;

    border: none;
    outline: none;

    height: 100px;
    width: 300px;

    margin: 1.25rem;

    padding: 1rem 55px 1rem 1rem;

    background-color: rgba(110, 111, 110, 0.4) !important;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        transform 0.25s ease-in-out,
        box-shadow 0.25s ease-in-out,
        background-color 0.25s ease-in-out;
}

.item::after {
    height: 100px;
    opacity: 0.2;
}


/* ------------------------------------------------------------
   Card hover
   ------------------------------------------------------------ */

.item:hover {
    transform: scale(1.1);

    background-color: rgba(110, 111, 110, 0.4) !important;

    box-shadow:
        rgba(0, 0, 0, 0.1) 0 60px 40px -7px !important;
}


/* ------------------------------------------------------------
   Application icons
   ------------------------------------------------------------ */

.item .svg-inline--fa {
    height: 100px;
    vertical-align: middle;
    opacity: 0.2;
}

.app-icon {
    filter:
        drop-shadow(
            1px 1px 2px rgba(10, 0, 20, 0.1)
        );
}


/* ------------------------------------------------------------
   Details
   ------------------------------------------------------------ */

.details {
    padding: 0 0.5rem;
}

.details > .title {
    font-family: "Raleway", sans-serif;

    font-weight: 800;
    font-size: 1.3rem !important;

    letter-spacing: 1px;

    text-shadow:
        -1px -1px 1px rgba(255, 255, 255, 0.1),
        1px 1px 2px rgba(10, 0, 60, 0.25);

    transition:
        text-shadow 0.25s ease-in-out;
}

.item:hover .details > .title {
    text-shadow:
        -1px -1px 1px rgba(255, 255, 255, 0.1),
        1px 1px 5px rgba(10, 0, 60, 0.2);
}


/* ------------------------------------------------------------
   Tooltips
   ------------------------------------------------------------ */

.item-container .tooltip {
    z-index: -1;
}


/* ------------------------------------------------------------
   Live statistics
   ------------------------------------------------------------ */

.livestats-container {
    margin-top: 0.5rem;
}

.livestats-container .livestats .title {
    margin-bottom: 3px;
}

.livestats-container .livestats li {
    padding-right: 1rem;
}

.livestats-container strong {
    font-weight: 500 !important;
    padding: 0 2px;
}


/* ------------------------------------------------------------
   IMPORTANT:
   Preserve Heimdall's original sortable layout.
   ------------------------------------------------------------ */

#sortable {
    display: flex;
    flex-wrap: wrap;

    align-items: start !important;

    gap: 1rem;

    opacity: 0;
}


/* ------------------------------------------------------------
   Tag containers
   ------------------------------------------------------------ */

.tags-container-parent {
    background-color: rgb(255 255 255 / 26%);

    border-radius: 10px;

    /*
     * Small amount of glass styling without changing
     * the layout behaviour.
     */
    border: 1px solid rgba(255, 255, 255, 0.08);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.10),
        inset 0 1px 1px rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* ------------------------------------------------------------
   Tag contents
   ------------------------------------------------------------ */

.tags-container {
    flex: 1;

    display: grid;

    /*
     * Keep the original two-column layout.
     *
     * Do NOT use auto-fit/minmax here because Heimdall's
     * generated item layout is sensitive to this structure.
     */
    grid-template-columns: repeat(2, 50%);
}


/* ------------------------------------------------------------
   Tag titles
   ------------------------------------------------------------ */

.tags-title {
    color: #fff;

    font-family: "Raleway", sans-serif;

    font-weight: 800;
    font-size: 1.3rem !important;

    letter-spacing: 1px;

    text-shadow:
        -1px -1px 1px rgba(255, 255, 255, 0.1),
        1px 1px 2px rgba(10, 0, 60, 0.25);

    transition:
        text-shadow 0.25s ease-in-out;

    text-transform: capitalize;

    margin: 20px;
    margin-block-end: 0;
}


/* ------------------------------------------------------------
   Tag title hover
   ------------------------------------------------------------ */

.tags-container-parent:hover .tags-title {
    text-shadow:
        -1px -1px 1px rgba(255, 255, 255, 0.1),
        1px 1px 4px rgba(10, 0, 60, 0.20);
}


/* ------------------------------------------------------------
   Mobile
   ------------------------------------------------------------ */

@media only screen and (max-width: 750px) {

    .item {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    #config-buttons {
        display: none;
    }
}


/* ------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {

    .item,
    .details > .title,
    .tags-title,
    #config-buttons a svg {
        transition: none !important;
    }

    .item:hover {
        transform: none;
    }
}
Custom JavaScript
$(document).ready(function () {
  const base = (document.querySelector("base") || {}).href;
  const container = $("#sortable");

  const liveStats = () => {
    let hidden, visibilityChange;

    if (typeof document.hidden !== "undefined") {
      // Opera 12.10 and Firefox 18 and later support
      hidden = "hidden";
      visibilityChange = "visibilitychange";
    } else if (typeof document.msHidden !== "undefined") {
      hidden = "msHidden";
      visibilityChange = "msvisibilitychange";
    } else if (typeof document.webkitHidden !== "undefined") {
      hidden = "webkitHidden";
      visibilityChange = "webkitvisibilitychange";
    }

    const livestatsRefreshTimeouts = [];
    const livestatsFuncs = [];
    const livestatsContainers = $(".livestats-container");

    function stopLivestatsRefresh() {
      for (
        let _i = 0, _livestatsRefreshTime = livestatsRefreshTimeouts;
        _i < _livestatsRefreshTime.length;
        _i++
      ) {
        const timeoutId = _livestatsRefreshTime[_i];
        window.clearTimeout(timeoutId);
      }
    }

    function startLivestatsRefresh() {
      for (
        let _i2 = 0, _livestatsFuncs = livestatsFuncs;
        _i2 < _livestatsFuncs.length;
        _i2++
      ) {
        const fun = _livestatsFuncs[_i2];
        fun();
      }
    }

    if (livestatsContainers.length > 0) {
      if (
        typeof document.addEventListener === "undefined" ||
        hidden === undefined
      ) {
        console.log("This browser does not support visibilityChange");
      } else {
        document.addEventListener(
          visibilityChange,
          function () {
            if (document[hidden]) {
              stopLivestatsRefresh();
            } else {
              startLivestatsRefresh();
            }
          },
          false
        );
      }

      livestatsContainers.each(function (index) {
        const id = $(this).data("id");
        const dataonly = $(this).data("dataonly");
        const increaseby = dataonly == 1 ? 20000 : 1000;
        const container = $(this);
        const max_timer = 30000;
        let timer = 5000;

        const fun = function worker() {
          $.ajax({
            url: base + "get_stats/" + id,
            dataType: "json",
            success: function success(data) {
              container.html(data.html);
              if (data.status == "active") timer = increaseby;
              else {
                if (timer < max_timer) timer += 2000;
              }
            },
            complete: function complete() {
              // Schedule the next request when the current one's complete
              livestatsRefreshTimeouts[index] = window.setTimeout(
                worker,
                timer
              );
            },
          });
        };

        livestatsFuncs[index] = fun;
        fun();
      });
    }
  };

  const customMain = () => {
    if (window.location.pathname !== "/") return;

    container.html("");
    container.css("opacity", "1");
    $.get(base + "tags", function (data) {
      const tagArr = Array.from($("tbody tr td a", data));
      tags = tagArr
        .filter((_d, idx) => idx % 2 === 0)
        .map((node) => node.href.split("/").pop());
      const tagPromises = tags.map((tag) => $.get(base + "tag/" + tag));

      if (tags.length === 0) return;
      Promise.all(tagPromises)
        .then((tagsHtml) => {
          const tagsNodes = tagsHtml.map((html, idx) => {
            const inner = $("#sortable", html).html();
            const wrapper1 = document.createElement("div");
            const wrapper2 = document.createElement("div");
            wrapper1.classList.add("tags-container-parent");
            wrapper2.classList.add("tags-container");
            wrapper2.innerHTML = inner;
            const tagTitle = document.createElement("h4");
            tagTitle.classList.add("tags-title");
            tagTitle.textContent = tags[idx].replaceAll("-", " ");
            wrapper1.append(tagTitle);
            wrapper1.append(wrapper2);
            return wrapper1;
          });
          container.append(tagsNodes);
        })
        .finally(() => liveStats());
    });
  };

  customMain();
});

$(document).ready(function () {

    // Don't add the button more than once
    if ($('#pin-all-button').length) {
        return;
    }

    // Create the Pin All button
    const pinAllButton = $(
        '<a id="pin-all-button" class="config" href="#" title="Pin All">' +
            '<i class="fas fa-thumbtack"></i>' +
        '</a>'
    );

    // Add it to the existing Heimdall configuration buttons
    $('#config-buttons').append(pinAllButton);

    // Handle click
    $('#pin-all-button').on('click', function (e) {

        e.preventDefault();

        if (!confirm('Pin all Heimdall items?')) {
            return;
        }

        const button = $(this);

        // Prevent double-clicks
        button.css('pointer-events', 'none');
        button.css('opacity', '0.5');

        $.ajax({
            url: 'items/pin-all',
            type: 'POST',
            headers: {
                'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
            },
            success: function (response) {

                alert(response.message);

                // Reload dashboard so the newly pinned items appear
                window.location.reload();
            },
            error: function (xhr) {

                console.error('Pin All failed:', xhr);

                alert(
                    'Unable to pin the items.\n\n' +
                    'HTTP Status: ' + xhr.status
                );

                button.css('pointer-events', '');
                button.css('opacity', '');
            }
        });

    });

});
Default tag My Links
Skip TLS Verification (for self-signed certificates) No