Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions user/plugins/sleeky-backend/assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $( document ).ready(function() {
} else if ($('meta[name=sleeky_theme]').attr("content") == 'dark') {
theme = "dark";
}

console.log("Theme is", theme)

// Update favicon
Expand All @@ -40,7 +40,7 @@ $( document ).ready(function() {
$("#login").prepend(`<img class="login-logo" src="${url}/assets/img/utc-wordmark-reverse.svg">`);
}


} else if ($("body").hasClass("index")) {
// Index page
console.log("Index page");
Expand Down Expand Up @@ -99,7 +99,7 @@ $( document ).ready(function() {
}
} else {
console.warn("Unknown page");

handleNav();
}

Expand Down Expand Up @@ -137,8 +137,8 @@ $( document ).ready(function() {
// Update footer
var content = $(this).html();
var i = 77
var updated_content = "Running on" + content.slice(13, i) + '& <a href="https://sleeky.flynntes.com/" title="Sleeky">Sleeky</a>' + content.slice(i-1)
var updated_content = "Running on" + content.slice(13, i) + ' & <a href="https://sleeky.flynntes.com/" title="Sleeky">Sleeky</a>' + content.slice(i-0)
$(this).html(updated_content);
}
});
});
});