PageSourceSearch

https://proedcs.com/wp-content/themes/medicate/assets/js/script.js?ver=1.0

js proedcs.com collected 2026-10-05 19:53:39 UTC 4,843 bytes, 127 lines download raw bytes

1/*
2
3Template: Medicate - Health & Medical WordPress Theme
4Author: Peacefulqode.com
5Version: 3.0
6Design and Developed by: Peacefulqode
7NOTE: This is main javasctipt file of template.
8
9*/
10/*====================================
11[  Table of contents  ]
12======================================
13==> Page Loader
14==> Search Button
15==> Sidebar Toggle
16==> Sticky Header
17==> Back To Top
18======================================
19[ End table content ]
20======================================
21*/
22(function($) {
23    "use strict";
24    /*+++++++++++++
25            Page Loader
26            +++++++++++++*/
27            function pageloader() {
28                jQuery("#pt-loading").fadeOut();
29                jQuery("#pt-loading").delay(0).fadeOut("slow");
30            }
31    /*+++++++++++++
32            Search Button
33            +++++++++++++*/
34
35            function searchbutton() {
36                jQuery('#pt-seacrh-btn').on('click', function() {
37              
38
39                    jQuery('.pt-search-form').slideToggle();
40                    jQuery('.pt-search-form').toggleClass('pt-form-show');
41                    if (jQuery('.pt-search-form').hasClass("pt-form-show")) {
42                        jQuery(this).html('<i class="ti-close"></i>');
43                    } else {
44                        jQuery(this).html('<i class="ti-search"></i>');
45                    }
46                });
47            }
48    /*+++++++++++++
49            Sidebar Toggle
50            +++++++++++++*/
51            function sidebartoggle() {
52                jQuery("#pt-toggle-btn").on('click', function() {
53                    jQuery('#pt-sidebar-menu-contain').toggleClass("active");
54                });
55                jQuery('.pt-toggle-btn').click(function() {
56                    jQuery('body').addClass('pt-siderbar-open');
57                });
58                jQuery('.pt-close').click(function() {
59                    jQuery('body').removeClass('pt-siderbar-open');
60                });
61            }
62    /*+++++++++++++
63            Sticky Header
64            +++++++++++++*/
65            function stickyheader() {
66                var view_width = jQuery(window).width();
67                if (!jQuery('header').hasClass('pt-header-default') && view_width >= 1023) {
68                    var height = jQuery('header').height();
69                    jQuery('.pt-breadcrumb').css('padding-top', height * 1.3);
70                }
71                if (jQuery('header').hasClass('pt-header-default')) {
72                    jQuery(window).scroll(function() {
73                        var scrollTop = jQuery(window).scrollTop();
74                        if (scrollTop > 300) {
75                            jQuery('.pt-bottom-header').addClass('pt-header-sticky animated fadeInDown animate__faster');
76                        } else {
77                            jQuery('.pt-bottom-header').removeClass('pt-header-sticky animated fadeInDown animate__faster');
78                        }
79                    });
80                }
81                if (jQuery('header').hasClass('pt-has-sticky')) {
82                    jQuery(window).scroll(function() {
83                        var scrollTop = jQuery(window).scrollTop();
84                        if (scrollTop > 300) {
85                            jQuery('header').addClass('pt-header-sticky animated fadeInDown animate__faster');
86                        } else {
87                            jQuery('header').removeClass('pt-header-sticky animated fadeInDown animate__faster');
88                        }
89                    });
90                }
91            }
92    /*+++++++++++++
93            Back To Top
94            +++++++++++++*/
95            function backtotop() {
96                jQuery('#back-to-top').fadeOut();
97                jQuery(window).on("scroll", function() {
98                    if (jQuery(this).scrollTop() > 250) {
99                        jQuery('#back-to-top').fadeIn(1400);
100                    } else {
101                        jQuery('#back-to-top').fadeOut(400);
102                    }
103                });
104                jQuery('#top').on('click', function() {
105                    jQuery('top').tooltip('hide');
106                    jQuery('body,html').animate({
107                        scrollTop: 0
108                    }, 800);
109                    return false;
110                });
111            }
112    // Dom Ready Function
113    jQuery(document).on('ready', function() {
114        (function($) {
115        })(jQuery);
116    });
117    // Instance Of Fuction while Window Load event
118    jQuery(window).on('load', function() {
119        (function($) {
120            backtotop();
121            stickyheader();
122            sidebartoggle();
123            searchbutton();
124            pageloader();
125        })(jQuery);
126    });
127})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.