| Server IP : 138.197.107.151 / Your IP : 216.73.217.7 Web Server : Apache/2.4.58 (Ubuntu) System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : wpbetasites_mrakzqskir ( 1022) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/silversharkadmindev/public/assets/js/ |
Upload File : |
$(document).on("click", ".metismenu li a, .navbar-nav li a", function(e) {
e.preventDefault();
var page = $(this).attr("href");
if ($(this).attr("target") == "_self") {window.location.href= page; return true};
if ($(this).attr("target") == "_blank") window.open(page, "_blank");
if (page == "javascript: void(0);") return false;
window.location.hash = page;
$(".metismenu li, .metismenu li a").removeClass("active");
$(".metismenu ul").removeClass("in");
$(".metismenu a").each(function() {
var pageUrl = window.location.hash.substr(1);
if ($(this).attr("href") == pageUrl) {
$(this).addClass("active");
$(this).parent().addClass("mm-active"); // add active to li of the current link
$(this).parent().parent().addClass("mm-show");
$(this).parent().parent().prev().addClass("mm-active"); // add active class to an anchor
$(this).parent().parent().parent().addClass("mm-active");
$(this).parent().parent().parent().parent().addClass("mm-show"); // add active to li of the current link
$(this).parent().parent().parent().parent().parent().addClass("mm-active");
}
});
$(".navbar-nav a").removeClass("active");
$(".navbar-nav li").removeClass("active");
$(".navbar-nav a").each(function () {
var pageUrl = window.location.hash.substr(1);
if ( $(this).attr('href') == pageUrl) {
$(this).addClass("active");
$(this).parent().addClass("active");
$(this).parent().parent().addClass("active");
$(this).parent().parent().parent().addClass("active");
$(this).parent().parent().parent().parent().addClass("active");
$(this).parent().parent().parent().parent().parent().addClass("active");
}
});
if (page == "javascript: void(0);") return false;
call_ajax_page(page);
});
function call_ajax_page(page) {
if(page === "index.html")
{
document.title = "Dashboard | Skote - Responsive Bootstrap 5 Admin Dashboard";
}
else
{
var title = page.replace(".html", "");
var title1 = title.replace("-", " ");
document.title = title1.charAt(0).toUpperCase() + title1.slice(1) + " | Skote - Responsive Bootstrap 5 Admin Dashboard";
}
$.ajax({
url: "ajax/" + page,
cache: false,
dataType: "html",
type: "GET",
success: function(data) {
$("#result").empty();
$("#result").html(data);
window.location.hash = page;
$(window).scrollTop(0);
}
});
}
$(document).ready(function() {
var path = window.location.hash.substr(1);
if (path == "index.html") {
call_ajax_page("index.html");
} else {
call_ajax_page("index.html");
}
});