System
Label Value Edit
Version 2.7.0
Language English (English)
Support Discord | Github | Blog
Donate Paypal
Appearance
Label Value Edit
Background Image - not set -
Trianglify No
Trianglify Random Seed heimdall
Treat Tags As: Folders
Miscellaneous
Label Value Edit
Homepage Search No
Default Search Provider Google
Link opens in Open in the same tab
Advanced
Label Value Edit
Custom CSS
#sortable {
  display: flex;
  flex-wrap: wrap;
  align-items: start !important;
  gap: 1rem;
  opacity: 0;
}

.module-container {
  border: 0px;
  border-radius: 18px;
  box-shadow: 0 0 20px 0 #0053;
  margin: 10px 40px;
  max-width: 1000px;
  overflow: hidden;
  width: 100%;
}
 
.tags-container {
   flex: 1;
   background-color: rgba(255,255,255,0.4);
   backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
   border-radius: 18px;
   display: grid;
   grid-template-columns: repeat(2, 50%);
}
 
.tags-title {
    color: #fff;
    text-transform: capitalize;
    margin: 20px;
    text-shadow: 0px 0px 3px #0053;
    display: none;
    visibility: hidden;
}
 
@media (max-width: 680px) {
    #sortable {
         justify-content: center !important;
    }
   .tags-container {
        display: flex;
        flex-direction: column;
    }
}
 
/* Reference: https://www.reddit.com/r/selfhosted/comments/nzw76z/i_went_a_bit_overboard_customising_heimdall/ */
 
#config-buttons {
  bottom: 50%;
  transform: translateY(50%);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  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;
  background-color: rgba(40, 40, 40, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#config-buttons a {
  background: none;
}
#config-buttons a svg {
  transition: all 0.1s ease-in-out;
  color: rgba(255, 255, 255, 0.5);
}
#config-buttons a:hover svg {
  transform: scale(1.1);
  color: rgba(255, 255, 255, 0.95);
}

/* completely by leo */

.item {
  border:0px;
  border-radius:12px;
  box-shadow: 0px 0px 20px #0053;
  transition:all .15s ease-in-out;
}

.item:hover {
   border:2px solid #fff;
   box-shadow: 0px 0px 8px #0058;
}

.module-container header .section-title {
  color: #ffff;
  font-size: 18px;
  margin-left: 25px;
}

div.create .input input {
  background-color: #0003;
  border: hidden;
  color: #fff;
}

div.create .input label:not(.switch) {
  color: #fff;
}

/* new */
.module-container .table tr {
  background-color: #fff0;
}
.module-container .table tr {
  background-color: #fff0;
}
.module-container .table tr td {
  color: #ffff;
}
.module-container .table thead th {
  background-color: #fff2;
  color: #fff;
  border-top: hidden;
}
.module-container header, #sapconfig h2, .module-container footer {
  background-color: #fff2;
  border-bottom: hidden;
  border-top: hidden !important;
}
.module-container {
    backdrop-filter: blur(10px);
    background: #5578;
}
.module-container .table {
  background: #fff0; 
}
.module-container .table tbody a {
  color: #ffff;
}
.module-container .module-actions .button {
  border: hidden;
  color: #ffff;
}
.module-actions .button span {
  color: #fff;
}
#sapconfig h2 {
  color: #fff
}

.toggleinput {
  background-color: #fff3;
  border-radius: 8px;
  .name {
    color: #fff;
    margin: 5px;
  }
  .switch {
    margin: 5px;
  }
  .switch .slider {
    box-shadow: 0px 0px 5px 0 #0004 inset;
  }
}
.textarea textarea {
  border: hidden;
  background-color: #0004;
  color: #fff;
  box-shadow: 0px 0px 10px 0 #0002 inset;
}
.input .select2-container .select2-selection {
  background-color: #0003;
  border-radius: 8px;
  border: hidden;
}
.input .select2-container .select2-selection__choice {
  background-color: #fff3;
  border: 1px solid #fff7;
  color: #fff
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #ffff;
}
.module-actions .button::after {
  border-right: hidden;
}
div.create .input input, div.create .input select {
  border: hidden;
  border-radius: 8px;
  background-color: #0003;
  color: #fff;
}
.module-container .table tbody tr:hover {
  background:#fff3;
}
.module-container .table tbody tr:hover td:first-child:before { 
  display: none;
}
.alert {
  background: #5578;
  border-radius: 18px;
  box-shadow: 0 0 15px 0 #0053;
  backdrop-filter: blur(10px);
  color: #ffff;
}
.alert.alert-danger::before, .alert.alert-success::before {
  border-radius: 13px;
  box-shadow: 0px 0px 20px #0034;
  margin: 5px;
}

/*new*/
.searchform {
  align-self: flex-start;
  background: none;
  border-bottom: none;
  border-top: none;
  box-shadow: none;
  z-index: 0;
}

.searchform .input-container {
  background: #fff7;
  border-radius: 13px;
  box-shadow: none;
  display: flex;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}
.searchform select, .searchform button {
  background: #fff9;
  border: none;
  margin: 7px;
  border-radius: 8px;
  color: #333;
  font-weight: bold;
}
.searchform button {
  display: none; 
  background: #0000;
  color: #0000;
}
.searchform input:focus-visible {
  outline: none;
}

/*new*/
.select2-container--default .select2-selection--single .select2-selection__rendered{
  color: #fff;
}

.select2-dropdown {
  background-color: #0003;
  border: none;
  border-radius: 8px;
  color: #fff;
  backdrop-filter: blur(10px);
}

.select2-search__field {
  border: hidden;
  background-color: #0004;
  color: #fff;
  border-radius: 8px;
  border: none;
  box-shadow: 0px 0px 10px 0 #0002 inset;
}

.select2-search__field:focus-visible {
  outline: none;
  box-shadow: 0px 0px 15px 0 #0005 inset;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #fff3;
  color: #fff;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: #fff6;
}
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");
            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();
});