PageSourceSearch

https://sexualhealthrankings.com/shr3/assets/js/app.js

js sexualhealthrankings.com collected 2026-10-05 08:09:21 UTC 6,304 bytes, 190 lines download raw bytes

1/*
2 * Template Name: Unify - Responsive Bootstrap Template
3 * Description: Business, Corporate, Portfolio, E-commerce and Blog Theme.
4 * Version: 1.7
5 * Author: @htmlstream
6 * Website: http://htmlstream.com
7*/
8
9var App = function () {
10    //Fixed Header
11    function handleHeader() {
12         jQuery(window).scroll(function() {
13            if (jQuery(window).scrollTop()>100){
14                jQuery(".header-fixed .header-sticky").addClass("header-fixed-shrink");
15            }
16            else {
17                jQuery(".header-fixed .header-sticky").removeClass("header-fixed-shrink");
18            }
19        });
20    }
21
22    //Header Mega Menu
23    function handleMegaMenu() {
24        jQuery(document).on('click', '.mega-menu .dropdown-menu', function(e) {
25            e.stopPropagation();
26        })
27    }
28
29    //Search Box (Header)
30    function handleSearch() {    
31        jQuery('.search').click(function () {
32            if(jQuery('.search-btn').hasClass('fa-search')){
33                jQuery('.search-open').fadeIn(500);
34                jQuery('.search-btn').removeClass('fa-search');
35                jQuery('.search-btn').addClass('fa-times');
36            } else {
37                jQuery('.search-open').fadeOut(500);
38                jQuery('.search-btn').addClass('fa-search');
39                jQuery('.search-btn').removeClass('fa-times');
40            }   
41        }); 
42    }
43
44    //Search Box v1 (Header v5)
45    function handleSearchV1() {
46        jQuery('.header-v5 .search-button').click(function () {
47            jQuery('.header-v5 .search-open').slideDown();
48        });
49
50        jQuery('.header-v5 .search-close').click(function () {
51            jQuery('.header-v5 .search-open').slideUp();
52        });
53
54        jQuery(window).scroll(function(){
55          if(jQuery(this).scrollTop() > 1) jQuery('.header-v5 .search-open').fadeOut('fast');
56        });
57    }
58
59    //Sidebar Navigation Toggle
60    function handleToggle() {
61        jQuery('.list-toggle').on('click', function() {
62            jQuery(this).toggleClass('active');
63        });
64
65        /*
66        jQuery('#serviceList').on('shown.bs.collapse'), function() {
67            jQuery(".servicedrop").addClass('glyphicon-chevron-up').removeClass('glyphicon-chevron-down');
68        }
69
70        jQuery('#serviceList').on('hidden.bs.collapse'), function() {
71            jQuery(".servicedrop").addClass('glyphicon-chevron-down').removeClass('glyphicon-chevron-up');
72        }
73        */
74    }
75
76    //Equal Height Columns    
77    function handleEqualHeightColumns() {
78        var EqualHeightColumns = function () {            
79            $(".equal-height-columns").each(function() {
80                heights = [];              
81                $(".equal-height-column", this).each(function() {
82                    $(this).removeAttr("style");
83                    heights.push($(this).height()); // write column's heights to the array
84                });
85                $(".equal-height-column", this).height(Math.max.apply(Math, heights)); //find and set max
86            });
87        }
88
89        EqualHeightColumns();        
90        $(window).resize(function() {            
91            EqualHeightColumns();
92        });
93        $(window).load(function() {
94            EqualHeightColumns("img.equal-height-column");
95        });
96    }    
97
98    //Hover Selector
99    function handleHoverSelector() {
100        $('.hoverSelector').on('hover', function(e) {        
101            $('.hoverSelectorBlock', this).toggleClass('show');
102            e.stopPropagation();            
103        });
104    }    
105
106    //Bootstrap Tooltips and Popovers
107    function handleBootstrap() {
108        /*Bootstrap Carousel*/
109        jQuery('.carousel').carousel({
110            interval: 15000,
111            pause: 'hover'
112        });
113
114        /*Tooltips*/
115        jQuery('.tooltips').tooltip();
116        jQuery('.tooltips-show').tooltip('show');      
117        jQuery('.tooltips-hide').tooltip('hide');       
118        jQuery('.tooltips-toggle').tooltip('toggle');       
119        jQuery('.tooltips-destroy').tooltip('destroy');       
120
121        /*Popovers*/
122        jQuery('.popovers').popover();
123        jQuery('.popovers-show').popover('show');
124        jQuery('.popovers-hide').popover('hide');
125        jQuery('.popovers-toggle').popover('toggle');
126        jQuery('.popovers-destroy').popover('destroy');
127    }
128
129    return {
130        init: function () {
131            handleBootstrap();
132            handleSearch();
133            handleSearchV1();
134            handleToggle();
135            handleHeader();
136            handleMegaMenu();
137            handleHoverSelector();
138            handleEqualHeightColumns();
139        },
140
141        //Scroll Bar 
142        initScrollBar: function () {
143            jQuery('.mCustomScrollbar').mCustomScrollbar({
144                theme:"minimal",
145                scrollInertia: 300,
146                scrollEasing: "linear"
147            });
148        },
149
150        //Counters 
151        initCounter: function () {
152            jQuery('.counter').counterUp({
153                delay: 10,
154                time: 1000
155            });
156        },
157
158        //Parallax Backgrounds
159        initParallaxBg: function () {
160             jQuery(window).load(function() {
161                jQuery('.parallaxBg').parallax("50%", 0.2);
162                jQuery('.parallaxBg1').parallax("50%", 0.4);
163            });
164        },
165
166        //Animate Dropdown
167        initAnimateDropdown: function () {
168            function MenuMode() {
169                jQuery('.dropdown').on('show.bs.dropdown', function(e){
170                    jQuery(this).find('.dropdown-menu').first().stop(true, true).slideDown();
171                });
172                jQuery('.dropdown').on('hide.bs.dropdown', function(e){
173                    jQuery(this).find('.dropdown-menu').first().stop(true, true).slideUp();
174                });
175            }
176         
177            jQuery(window).resize(function(){
178                if (jQuery(window).width() > 768) {
179                    MenuMode();
180                }
181            });
182
183            if (jQuery(window).width() > 768) {
184                MenuMode();
185            }
186        },
187
188    };
189
190}();

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.