Uname:
Linux server.thebazaar99.com 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64
Software:
Apache
PHP version:
8.3.32 [ PHP INFO ] PHP os:
Linux
Server Ip:
163.227.92.254
Your Ip:
216.73.217.24
User:
gutlooks (1003) | Group:
gutlooks (1005)
Safe Mode:
OFF
Disable Function:
exec,passthru,shell_exec,system
/*=====================
User Dashboard js
==========================*/
const tabBoxEl = document.querySelectorAll(".option-wrap .tab-box");
const btnLink = document.querySelectorAll(".nav-tabs .nav-link");
btnLink.forEach(el => {
el.addEventListener("click", function () {
window.scroll({
top: 0,
behavior: 'smooth'
});
})
})
tabBoxEl.forEach(function (el) {
el.addEventListener("click", function () {
const boxData = this.getAttribute('data-class')
btnLink.forEach(function (el) {
const activeEl = el.getAttribute('aria-controls')
if (activeEl === boxData) {
el.click();
}
})
})
})
const productElementTab = document.querySelectorAll("[data-productDetail='product-detail']");
const tabElement = document.querySelectorAll(".tab-pane");
const orderSidebarlink = document.querySelector("#orders-tab");
const tabRemoveClassFunction = function (tabHtmlElement) {
tabHtmlElement.forEach(tabEl => {
tabEl.classList.remove("show", "active")
})
}
productElementTab.forEach(el => {
el.addEventListener("click", function () {
tabRemoveClassFunction(tabElement)
const orderDetailTab = document.querySelector("#orders-details");
orderDetailTab.classList.add("show", "active");
})
});
orderSidebarlink.addEventListener("click", function () {
tabRemoveClassFunction(tabElement);
const orderTabContentEl = document.querySelector("#orders")
orderTabContentEl.classList.add("show", "active");
})