PageSourceSearch

https://gabonactu.com/wp-content/themes/newscard-pro/assets/js/scripts.js?ver=7.1.2

js gabonactu.com collected 2026-09-24 20:51:07 UTC 2,412 bytes, 78 lines download raw bytes

1jQuery( function() {
2
3	// toggle to display search form
4	jQuery('.search-toggle').on( "click", function(event) {
5		var that = jQuery('.search-toggle'),
6			wrapper = jQuery('.search-block');
7
8		that.toggleClass('active');
9		wrapper.toggleClass('off').toggleClass('on');
10		jQuery('.search-block.on').fadeIn();
11		jQuery('.search-block.off').fadeOut();
12		if ( that.is('.active') || jQuery('.search-toggle')[0] === event.target ) {
13			wrapper.find('.s').focus();
14		}
15
16		// search form escape while pressing ESC key
17		jQuery(document).on('keydown', function (e) {
18			if ( e.keyCode === 27 && that.hasClass('active') ) {
19				that.removeClass('active');
20				wrapper.addClass('off').removeClass('on');
21				jQuery('.search-block.off').fadeOut();
22			}
23		});
24	});
25
26	// toggle to display top right menu
27	var nav = jQuery('.info-bar .infobar-links');
28	if ( !nav ) {
29		return;
30	}
31	button = nav.find('.info-bar-links-menu-toggle');
32	if ( !button ) {
33		return;
34	}
35	jQuery('.infobar-links-menu-toggle').on( 'click', function() {
36		nav.toggleClass('toggled-link-on');
37	} );
38
39	// hide #back-top first
40	jQuery(".back-to-top").hide();
41
42	// fade in #back-top
43	jQuery(function () {
44		jQuery(window).scroll(function () {
45			if (jQuery(this).scrollTop() > 1000) {
46				jQuery('.back-to-top').fadeIn();
47			} else {
48				jQuery('.back-to-top').fadeOut();
49			}
50		});
51
52		// scroll body to 0px on click
53		jQuery('.back-to-top a').on( "click", function () {
54			jQuery('body,html,header').animate({
55				scrollTop: 0
56			}, 800);
57			return false;
58		});
59	});
60
61	// toggle to hide and show the dropdown Submenu in smaller screen
62	jQuery('.main-navigation').find( '.sub-menu, .children' ).before( '<span class="dropdown-toggle"><span class="dropdown-icon"></span></span>' );
63	jQuery('.main-navigation').find( '.sub-menu, .children' ).parent().addClass('dropdown-parent');
64	jQuery('.main-navigation').find( '.dropdown-toggle').on('click',function(e){
65		e.preventDefault();
66		jQuery(this).next('.sub-menu, .children').toggleClass('dropdown-active');
67		jQuery(this).toggleClass( 'toggle-on' );
68	});
69
70	jQuery(window).on("load resize",function(e){
71		var screenwidth = jQuery(window).outerWidth();
72		if ( screenwidth >= 992 ) {
73			jQuery('.main-navigation').find( '.sub-menu.dropdown-active, .children.dropdown-active' ).removeClass('dropdown-active');
74			jQuery('.main-navigation').find( '.dropdown-toggle.toggle-on').removeClass('toggle-on');
75		}
76	});
77
78});

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.