| Server IP : 62.72.47.131 / Your IP : 216.73.217.34 Web Server : Apache/2.4.66 (Debian) System : Linux 975cdb959a49 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : ( 501) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/html/wp-content/themes/medicate/assets/js/ |
Upload File : |
/*
Template: Medicate - Health & Medical WordPress Theme
Author: peacefulqode.co.in
Version: 3.2
Design and Developed by: Peacefulqode
NOTE: This is main javasctipt file of template.
*/
/*====================================
[ Table of contents ]
======================================
==> Page Loader
==> Search Button
==> Sidebar Toggle
==> Sticky Header
==> Back To Top
======================================
[ End table content ]
======================================
*/
(function($) {
"use strict";
/*+++++++++++++
Page Loader
+++++++++++++*/
function pageloader() {
jQuery("#pt-loading").fadeOut();
jQuery("#pt-loading").delay(0).fadeOut("slow");
}
/*+++++++++++++
Search Button
+++++++++++++*/
function searchbutton() {
jQuery('#pt-seacrh-btn').on('click', function() {
jQuery('.pt-search-form').slideToggle();
jQuery('.pt-search-form').toggleClass('pt-form-show');
if (jQuery('.pt-search-form').hasClass("pt-form-show")) {
jQuery(this).html('<i class="ti-close"></i>');
} else {
jQuery(this).html('<i class="ti-search"></i>');
}
});
}
/*+++++++++++++
Sidebar Toggle
+++++++++++++*/
function sidebartoggle() {
jQuery("#pt-toggle-btn").on('click', function() {
jQuery('#pt-sidebar-menu-contain').toggleClass("active");
});
jQuery('.pt-toggle-btn').click(function() {
jQuery('body').addClass('pt-siderbar-open');
});
jQuery('.pt-close').click(function() {
jQuery('body').removeClass('pt-siderbar-open');
});
}
/*+++++++++++++
Sticky Header
+++++++++++++*/
function stickyheader() {
var view_width = jQuery(window).width();
if (!jQuery('header').hasClass('pt-header-default') && view_width >= 1023) {
var height = jQuery('header').height();
jQuery('.pt-breadcrumb').css('padding-top', height * 1.3);
}
if (jQuery('header').hasClass('pt-header-default.pt-has-sticky')) {
jQuery(window).scroll(function() {
var scrollTop = jQuery(window).scrollTop();
if (scrollTop > 300) {
jQuery('.pt-bottom-header').addClass('pt-header-sticky animated fadeInDown animate__faster');
} else {
jQuery('.pt-bottom-header').removeClass('pt-header-sticky animated fadeInDown animate__faster');
}
});
}
if (jQuery('header').hasClass('pt-has-sticky')) {
jQuery(window).scroll(function() {
var scrollTop = jQuery(window).scrollTop();
if (scrollTop > 300) {
jQuery('header').addClass('pt-header-sticky animated fadeInDown animate__faster');
} else {
jQuery('header').removeClass('pt-header-sticky animated fadeInDown animate__faster');
}
});
}
}
/*+++++++++++++
Back To Top
+++++++++++++*/
function backtotop() {
jQuery('#back-to-top').fadeOut();
jQuery(window).on("scroll", function() {
if (jQuery(this).scrollTop() > 250) {
jQuery('#back-to-top').fadeIn(1400);
} else {
jQuery('#back-to-top').fadeOut(400);
}
});
jQuery('#top').on('click', function() {
jQuery('top').tooltip('hide');
jQuery('body,html').animate({
scrollTop: 0
}, 800);
return false;
});
}
// Dom Ready Function
jQuery(document).on('ready', function() {
(function($) {
})(jQuery);
});
// Instance Of Fuction while Window Load event
jQuery(window).on('load', function() {
(function($) {
backtotop();
stickyheader();
sidebartoggle();
searchbutton();
pageloader();
})(jQuery);
});
})(jQuery);