PageSourceSearch

https://www.fossilins.com/js/custom.js

js fossilins.com collected 2026-10-08 21:26:14 UTC 5,686 bytes, 203 lines download raw bytes

1/* Slider function*/
2
3
4$(document).ready(function() {
5     $("#flexslider").flexisel({
6        visibleItems: 5,
7        animationSpeed: 1000,
8        autoPlay: true,
9        autoPlaySpeed: 3000,            
10        pauseOnHover: false,
11        enableResponsiveBreakpoints: true,
12        responsiveBreakpoints: { 
13            portrait: { 
14                changePoint:480,
15                visibleItems: 2
16            }, 
17            landscape: { 
18                changePoint:640,
19                visibleItems: 2
20            },
21            tablet: { 
22                changePoint:992,
23                visibleItems: 4
24            },
25			tabland: { 
26                changePoint:1199,
27                visibleItems: 5
28            }
29        }
30    });
31});
32
33/* Toggling the Arrow on Bootstrap */
34/* mobile menu toggle effect */
35$('.navbar-toggle').click(function() {
36  $('.navbar-toggle').toggleClass("nav-bg").toggleClass("pad");
37  $('.navbar').toggleClass("nav-bg").toggleClass("pad");
38});
39
40       
41
42/* input validation for non-jotform pages */
43  
44  function numbersonly(e, decimal) {
45		var key;
46		var keychar;
47		if (window.event) {key = window.event.keyCode;}
48		else if (e) {key = e.which;}
49		else {return true;}
50		keychar = String.fromCharCode(key);
51		if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) ) {return true;}
52		else if ((("0123456789").indexOf(keychar) > -1)) {return true;}
53		else if (decimal && (keychar == ".")) {return true;}
54		else return false; 
55	}
56	
57		/* place holder js for non-jotform*/
58		
59$('[placeholder]').focus(function() {
60  var input = $(this);
61  if (input.val() == input.attr('placeholder')) {
62    input.val('');
63    input.removeClass('placeholder');
64  }
65}).blur(function() {
66  var input = $(this);
67  if (input.val() == '' || input.val() == input.attr('placeholder')) {
68    input.addClass('placeholder');
69    input.val(input.attr('placeholder'));
70  }
71}).blur();
72
73if($('html').hasClass('is-cms')){
74 $('.overlay').removeClass('overlay').addClass('overlay-cms');
75 $('.grad-bg-inner').removeClass('grad-bg-inner');
76}
77
78
79/* Equal Height */
80function equalHeight(group) {
81   tallest = 0;
82   group.each(function() {
83     // thisHeight = $(this).height();
84	  thisHeight = $(this).css({'height':'auto'}).height();
85      if(thisHeight > tallest) {
86         tallest = thisHeight;
87		  
88      }
89   });
90   group.height(tallest);
91}
92$(window).on('load resize', function(){
93equalHeight($(".tablet-view"));
94equalHeight($(".column-p"));
95 });
96 
97 $(document).ready(function() {
98            var holder = 'Your Zip Code';
99            $('.zip').blur(function() {
100                if ($(this).val().length == 0)
101                    $(this).val(holder).addClass('holder');
102            }).focus(function() {
103                if ($(this).val() == holder)
104                    $(this).val('').removeClass('holder');
105            }).val(holder).addClass('holder');
106        });
107function GetQuotesGold(){var SelectedOption=$("select option:selected").index();
108    var zipCode=jQuery("#ZipCode").val();
109    var typeOfInsurance=jQuery("#Type").val();
110    if(typeOfInsurance=="Home"||typeOfInsurance=="Auto"||typeOfInsurance=="Both")
111    {if(zipCode.length==5)
112window.open('compare-quotes.html?z='+zipCode+'&t='+typeOfInsurance,'_self');
113else
114alert("Please enter 5 digit valid zip code");}
115
116else if(document.getElementById('Type').value === 'bond()'){
117	 window.open("https://mybondapp.com/287847406/Auth?ReturnUrl=%2F287847406");
118 }
119
120 
121 else {
122	 window.location=document.getElementById('Type').value;
123 }
124}	
125
126
127
128	$(document).ready(function () {
129  function isMobile() {
130    return $(window).width() < 768;
131  }
132
133  function resetSubmenus() {
134    $('.dropdown-submenu .dropdown-menu').removeAttr('style');
135  }
136
137  // Toggle submenu ONLY when caret is clicked on mobile
138  $('.submenu-arrow').on('click', function (e) {
139    if (isMobile()) {
140      e.preventDefault();
141      e.stopPropagation();
142
143      const $this = $(this);
144const submenu = $this.closest('.dropdown-submenu').find('.dropdown-menu').first();
145
146// Close other submenus and reset arrows
147$('.dropdown-submenu .dropdown-menu').not(submenu).slideUp();
148$('.submenu-arrow').not(this).css('transform', 'rotate(0deg)');
149
150submenu.stop(true, true).slideToggle();
151
152// Toggle rotation
153const isRotated = $this.data('rotated') === true;
154
155if (isRotated) {
156  $this.css('transform', 'rotate(0deg)').data('rotated', false);
157} else {
158  $this.css('transform', 'rotate(90deg)').data('rotated', true); // adjust angle as needed
159}
160    }
161  });
162
163  // Click outside closes submenu
164  $(document).click(function (e) {
165    if (isMobile() && !$(e.target).closest('.dropdown-submenu').length) {
166      $('.dropdown-submenu .dropdown-menu').slideUp();
167    }
168  });
169
170  // Reset when resizing to desktop
171  let wasMobile = isMobile();
172  $(window).on('resize', function () {
173    const nowMobile = isMobile();
174    if (wasMobile && !nowMobile) {
175      resetSubmenus();
176    }
177    wasMobile = nowMobile;
178  });
179});
180
181
182
183$( ".submenu-link" ).on( "focus", function() {
184    $(".submenu-ul").addClass('show');
185});
186
187//fancy scroll to view
188const sections = document.querySelectorAll('.previs');
189
190// Create the observer
191const observer = new IntersectionObserver((entries) => {
192  entries.forEach(entry => {
193    if (entry.isIntersecting) {
194      entry.target.classList.add('vis');
195      observer.unobserve(entry.target); // Stop observing after triggered
196    }
197  });
198}, { threshold: 0.2 });
199
200// Observe each section
201sections.forEach(section => {
202  observer.observe(section);
203});

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.