PageSourceSearch

https://www.bravo-insurance.com/js/custom.js

js bravo-insurance.com collected 2026-10-10 00:16:56 UTC 3,292 bytes, 120 lines download raw bytes

1/* Zipcode Character Function */			
2function numbersonly(e, decimal) {
3			var key;
4			var keychar;
5			if (window.event) {key = window.event.keyCode;}
6			else if (e) {key = e.which;}
7			else {return true;}
8			keychar = String.fromCharCode(key);
9			if ((key==null) || (key==0) || (key==8) ||  (key==9) || (key==13) || (key==27) ) {return true;}
10			else if ((("0123456789").indexOf(keychar) > -1)) {return true;}
11			else if (decimal && (keychar == ".")) {return true;}
12			else return false; }
13
14//carieer logos scrolling //
15$(document).ready(function() {
16     $("#logoslider").flexisel({
17        visibleItems: 6,
18        animationSpeed: 1000,
19        autoPlay: true,
20        autoPlaySpeed: 3000,            
21        pauseOnHover: false,
22        enableResponsiveBreakpoints: true,
23        responsiveBreakpoints: { 
24            portrait: { 
25                changePoint:480,
26                visibleItems: 2
27            }, 
28            landscape: { 
29                changePoint:640,
30                visibleItems: 2
31            },
32            tablet: { 
33                changePoint:992,
34                visibleItems: 4
35            },
36			tabland: { 
37                changePoint:1199,
38                visibleItems: 5
39            }
40        }
41    });
42});
43
44/* mobile menu toggle effect */
45$('.navbar-toggle').click(function() {
46  $('.navbar-toggle').toggleClass("nav-bg").toggleClass("pad");
47  $('.navbar').toggleClass("nav-bg").toggleClass("pad");
48});
49/* place holder function */
50$(document).ready(function() {
51       var holder = 'Zip Code';
52       $('.zip').blur(function(){
53        if ($(this).val().length == 0)
54          $(this).val(holder).addClass('holder');
55       }).focus(function(){
56        if ($(this).val() == holder)
57          $(this).val('').removeClass('holder');
58       }).val(holder).addClass('holder');
59      });
60
61
62// Equal LOB box Height
63(function($){
64	function fixButtonHeights() {
65		var heights = new Array();
66		$('.lob-row-content').each(function() {	
67			$(this).css('min-height', '0');
68			$(this).css('max-height', 'none');
69			$(this).css('height', 'auto');
70	 		heights.push($(this).height());
71		});
72
73		var max = Math.max.apply( Math, heights );
74		$('.lob-row-content').each(function() {
75			$(this).css('height', max + 'px');
76		});	
77	}
78
79	$(window).load(function() {
80		fixButtonHeights();
81		$(window).resize(function() {
82			setTimeout(function() {
83	      		fixButtonHeights();
84			}, 120);
85		});
86	});
87})(jQuery);
88// Equal LOB box Height
89(function($){
90	function fixButtonHeights() {
91		var heights = new Array();
92		$('.lob-row-title').each(function() {	
93			$(this).css('min-height', '0');
94			$(this).css('max-height', 'none');
95			$(this).css('height', 'auto');
96	 		heights.push($(this).height());
97		});
98
99		var max = Math.max.apply( Math, heights );
100		$('.lob-row-title').each(function() {
101			$(this).css('height', max + 'px');
102		});	
103	}
104
105	$(window).load(function() {
106		fixButtonHeights();
107		$(window).resize(function() {
108			setTimeout(function() {
109	      		fixButtonHeights();
110			}, 120);
111		});
112	});
113})(jQuery);
114
115/* Fix logo update */
116$(window).on('load',function(){
117    $('.logo-sec').clone().appendTo('#mobileLogo');
118    $('#mobileLogo img').removeAttr('id');
119
120});

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.