PageSourceSearch

https://okuman7.biz/wp-content/themes/laziale/js/customscript.js?ver=7.0.7

js okuman7.biz collected 2026-10-07 01:49:52 UTC 2,594 bytes, 107 lines download raw bytes

1/*
2 * Copyright (c) 2016 Gian MR
3 * Gian MR Theme Custom Javascript
4 */
5 
6var $ = jQuery.noConflict();
7
8(function( $ ) {
9	/* http://www.w3schools.com/js/js_strict.asp */
10	"use strict";
11	
12	$( document ).ready( function () {
13		
14		/* JS SEARCH EFFECT */
15		$('.gmr-search input').hide();
16		$('.gmr-search .search-trigger').click(function(e){
17			e.preventDefault();
18			$('.gmr-search input').slideToggle('fast').focus(); 
19			$('.gmr-search .search-trigger').toggleClass('active');
20		});
21		
22		/* Sidr Resposive Menu */
23		$('#gmr-responsive-menu').sidr({
24			name: 'menus',
25			source: '.gmr-mainmenu',
26			displace: false
27		});
28		$( window ).resize(function() {
29			$.sidr('close', 'menus');
30		});
31		$('#sidr-id-close-menu-button').click(function(e){
32			e.preventDefault();
33			$.sidr('close', 'menus');
34		});
35		$('#gmr-secondaryresponsive-menu').sidr({
36			name: 'secondmenus',
37			source: '.gmr-secondmenu',
38			displace: false
39		});
40		$( window ).resize(function() {
41			$.sidr('close', 'secondmenus');
42		});
43		$('#sidr-id-close-secondmenu-button').click(function(e){
44			e.preventDefault();
45			$.sidr('close', 'secondmenus');
46		});
47	}); /* End document Ready */
48		
49	/* Accessibility Drop Down Menu */
50	jQuery(function($) {
51		$('.menu-item-has-children a').focus( function () {
52			$(this).siblings('.sub-menu').addClass('focused');
53		}).blur(function(){
54			$(this).siblings('.sub-menu').removeClass('focused');
55		});
56		// Sub Menu
57		$('.sub-menu a').focus( function () {
58			$(this).parents('.sub-menu').addClass('focused');
59		}).blur(function(){
60			$(this).parents('.sub-menu').removeClass('focused');
61		});
62	}); /* End jQuery(function($) { */
63	
64	/* Sticky Menu */
65	jQuery(function($) {
66		$(window).scroll(function() {
67			if ( $(this).scrollTop() > 85 ) {
68				$('.top-header').addClass('sticky-menu');
69			} else {
70				$('.top-header').removeClass('sticky-menu');
71			}
72		});
73	}); /* End jQuery(function($) { */
74	
75})(jQuery);
76
77/**
78 * File skip-link-focus-fix.js.
79 *
80 * Helps with accessibility for keyboard only users.
81 *
82 * Learn more: https://git.io/vWdr2
83 */
84(function() {
85	var isIe = /(trident|msie)/i.test( navigator.userAgent );
86
87	if ( isIe && document.getElementById && window.addEventListener ) {
88		window.addEventListener( 'hashchange', function() {
89			var id = location.hash.substring( 1 ),
90				element;
91
92			if ( ! ( /^[A-z0-9_-]+$/.test( id ) ) ) {
93				return;
94			}
95
96			element = document.getElementById( id );
97
98			if ( element ) {
99				if ( ! ( /^(?:a|select|input|button|textarea)$/i.test( element.tagName ) ) ) {
100					element.tabIndex = -1;
101				}
102
103				element.focus();
104			}
105		}, false );
106	}
107})();

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.