PageSourceSearch

https://polioeradication.org/wp-content/themes/gpei/assets/js/gpei-nav.js?ver=1784039934

js polioeradication.org collected 2026-09-24 07:30:00 UTC 3,644 bytes, 92 lines download raw bytes

1'use strict';
2
3jQuery(document).ready(function($) {
4    $('.main-nav .see-more-icon').click(function(e) {
5        var $this = $(this);
6
7        if ( $this.hasClass('plus') ) {
8            $this.parent().find('ul').slideDown(); //.addClass('show-children');
9            $this.removeClass('plus').addClass('minus');
10            $this.find('.fa').removeClass('fa-angle-down').addClass('fa-angle-up');
11        }
12        else {
13            $this.parent().find('ul').slideUp(); //.removeClass('show-children');
14            $this.removeClass('minus').addClass('plus');
15            $this.find('.fa').removeClass('fa-angle-up').addClass('fa-angle-down');
16        }
17    });
18
19    var $window = $(window);
20    var $mobileMenuIcon = $('.mobile-menu-icon');
21    var $mobileMenuClose = $('.mobile-menu-close');
22    var $navigation = $('.main-nav');
23    var $mainNavigation = $('.main-navigation');
24
25    $mobileMenuIcon.click(function(event) {
26        event.preventDefault();
27
28        $navigation.addClass('slideInUp').removeClass('slideOutUp d-none');
29        $mobileMenuIcon.addClass('slideOutUp d-none').removeClass('slideInUp');
30        $mobileMenuClose.addClass('slideInUp').removeClass('slideOutUp d-none');
31
32        $mainNavigation.addClass('height-helper');
33    });
34
35    $mobileMenuClose.click(function(event) {
36        event.preventDefault();
37
38        $navigation.addClass('slideOutUp d-none').removeClass('slideInUp');
39        $mobileMenuClose.addClass('slideOutUp d-none').removeClass('slideInUp');
40        $mobileMenuIcon.addClass('slideInUp').removeClass('slideOutUp d-none');
41
42        $mainNavigation.removeClass('height-helper');
43    });
44
45    // $('.main-nav li, .level-2-sec').hover(function(){
46    //     $('.main-nav').addClass('menu-hover');
47    //     $('.level-2-sec ul').css('min-width','170px');
48    //     //$(this).parent().parent().find('.level-2-sec').addClass('menu-hover');
49    // }, function(){
50    //     $('.main-nav').removeClass('menu-hover');
51    //     $('.level-2-sec ul').css('min-width','80px');
52    //     //$(this).parent().parent().find('.level-2-sec').removeClass('menu-hover');
53    // });
54
55    $window.resize(function() {
56        var windowWidth = $window.width();
57
58        if ( windowWidth > 991 ) {
59            $navigation.addClass('d-none').removeClass('slideOutUp slideInUp');
60            $mainNavigation.removeClass('height-helper');
61            $mobileMenuIcon.removeClass('slideOutUp d-none').addClass('slideInUp');
62            $mobileMenuClose.removeClass('slideInUp').addClass('slideOutUp d-none');
63        }
64    });
65
66    //Footer Navigation
67    $('.sub-menu-item a .down').click(function(e) {
68        e.preventDefault();
69        
70        var $this = $(this);
71    
72
73        if ( $this.hasClass('down') ) {
74            // $this.parent().find('ul').slideUp(); //.addClass('show-children');
75            // $this.parent().find('ul').hide();
76            $this.parent().parent().find('ul').slideDown(); 
77            $this.parent().parent().find('ul').removeClass('hide').addClass('show');
78            $this.find('.fa').removeClass('fa-angle-down').addClass('fa-angle-up');
79            $this.removeClass('down').addClass('up');
80            
81        }
82        else {
83            // $this.parent().find('ul').slideDown(); //.removeClass('show-children');
84            $this.parent().parent().find('ul').slideUp(); 
85            $this.parent().parent().find('ul').removeClass('show').addClass('hide');
86            $this.find('.fa').removeClass('fa-angle-up').addClass('fa-angle-down');
87            $this.removeClass('up').addClass('down');
88            $this.addClass('else-sworking');
89            
90        }
91    });
92});

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.