PageSourceSearch

https://firstpointlaw.com/wp-content/themes/lawyers/js/init.js

js firstpointlaw.com collected 2026-10-05 00:44:50 UTC 3,509 bytes, 162 lines download raw bytes

1/*
2 * Lawyers - WP Theme
3 *
4 * Author: https://matchthemes.com
5 *
6 */
7 
8(function($) {
9    "use strict";
10	
11	// home slider
12	$('.home-slider').owlCarousel({
13    items:1,
14    loop:true,
15	autoplay:true,
16	autoplayTimeout:5000,
17	animateOut: 'fadeOut',
18	dots:false,
19	nav:true,
20	navText:''
21});
22
23	// testimonials slider
24	$('.testimonials-slider').owlCarousel({
25    items:1,
26    loop:true,
27	autoplay:true,
28	autoplayTimeout:7000,
29	animateOut: 'fadeOut',
30	dots:true,
31	nav:false,
32	navText:''
33});
34
35//mobile menu
36$('.nav-button').on('click', function(e){
37	
38	e.preventDefault();
39	
40    $('.mobile-menu-holder, .menu-mask').addClass('is-active');
41	$('body').addClass('has-active-menu');
42
43});
44
45$('.exit-mobile, .menu-mask').on('click', function(e){
46	
47	e.preventDefault();
48
49    $('.mobile-menu-holder, .menu-mask').removeClass('is-active');
50	$('body').removeClass('has-active-menu');
51
52});
53
54$('.menu-mobile > li.menu-item-has-children > a').on('click', function(e){
55			
56			e.preventDefault();
57			e.stopPropagation();
58			
59			if ( $(this).parent().hasClass('menu-open') )
60			
61			$(this).parent().removeClass('menu-open');
62			
63			else {
64			
65			$(this).parent().addClass('menu-open');
66			
67			}
68																  
69			});
70	
71	// end mobile menu
72	
73// menu edge screen turn left
74
75$(".menu-nav li").on('mouseenter mouseleave', function (e) {
76        if ($('ul', this).length) {
77            var elm = $('.sub-menu', this);
78            var off = elm.offset();
79            var l = off.left;
80            var w = elm.width();
81            var docW = $(window).width();
82
83            var isEntirelyVisible = (l + w <= docW);
84
85            if (!isEntirelyVisible) {
86                $(this).addClass('edge');
87            } else {
88                $(this).removeClass('edge');
89            }
90        }
91    });		
92	
93$(window).on('load', function() {
94	
95	//masonry
96   var portfolioItems = $('.layout-masonry');
97   
98   portfolioItems.isotope({
99  itemSelector : '.blog-item-masonry',
100  layoutMode : 'masonry',
101 
102	});
103	
104	// filter items when filter link is clicked
105 $('.portfolio-filter a').on('click', function(){
106 $('.portfolio-filter .current').removeClass('current');
107 $(this).addClass('current');
108		
109  var selector = $(this).attr('data-filter');
110  portfolioItems.isotope({ filter: selector });
111  return false;
112});
113
114
115});	//window.load	
116
117	//gallery
118
119	$('.gal-img a, .blocks-gallery-item a').magnificPopup({
120	type: 'image',
121	gallery:{
122		enabled:true
123			}
124	});
125	
126$('.faq-section').hide();
127$('h5.faq-title:first').addClass('active').next().show();
128
129$('h5.faq-title').on('click', function(){
130
131  if( $(this).next().is(':hidden') ) {
132  
133  $('h5.faq-title').removeClass('active').next().slideUp(); 
134  $(this).toggleClass('active').next().slideDown();
135  
136  } else {
137   $('h5.faq-title').removeClass('active').next().slideUp();
138 }
139  return false; 
140 });
141
142$(".scrollup").hide();
143     $(window).on('scroll', function() {
144         if ($(this).scrollTop() > 400) {
145             $('.scrollup').fadeIn();
146         } else {
147             $('.scrollup').fadeOut();
148         }
149     });
150
151$("a.scrolltop[href^='#']").on('click', function(e) {
152   e.preventDefault();
153   var hash = this.hash;
154   $('html, body').stop().animate({scrollTop:0}, 1000, 'easeOutExpo');
155
156});
157
158//fluid width videos
159
160$('.blog-post-single, .custom-page-template').fitVids({customSelector: "iframe[src^='https://w.soundcloud.com']"});
161
162})(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.