PageSourceSearch

https://www.emporiainsuranceagency.com/js/custom-function.js

js emporiainsuranceagency.com collected 2026-10-08 21:26:14 UTC 3,138 bytes, 103 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	/* Zipcode place Holder Function */	
15        $(document).ready(function() {
16            var holder = 'Zip Code';
17            $('.zip').blur(function() {
18                if ($(this).val().length == 0)
19                    $(this).val(holder).addClass('holder');
20            }).focus(function() {
21                if ($(this).val() == holder)
22                    $(this).val('').removeClass('holder');
23            }).val(holder).addClass('holder');
24        });
25		
26		
27		/* Navugation */
28		$('.navbar-toggle').click(function() {
29  $('.navbar-toggle').toggleClass("nav-bg").toggleClass("pad");
30  $('.navbar').toggleClass("nav-bg").toggleClass("pad");
31});
32
33/* equal height on index page */
34function equalHeight(group) {
35    tallest = 0;
36    group.each(function() {
37        thisHeight = $(this).css({'height':'auto'}).height();
38        if(thisHeight > tallest) {
39            tallest = thisHeight ;
40                       if ($(this).find("p").length > 0) {
41        tallest=tallest+40;
42             }
43        }      
44    group.height(tallest);
45    });        
46}
47$(window).on('load resize',function(){ 
48           equalHeight($(".column-h3"));
49equalHeight($(".col-wrap")); 		   
50});
51/* Object Fit Banner Image For IE browser */
52
53function iever() {
54   var $userAgent = '';
55if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent)){ {
56            $('.ie-overlay').each(function () {
57               var $container = $(this),
58                    imgUrl = $container.find('img').prop('src');
59                if (imgUrl) {
60                    $container
61                        .css('backgroundImage', 'url(' + imgUrl + ')')
62						.css('opacity', '0.3')
63                        .addClass('container-fit');
64                }
65            });
66        }
67    }
68
69    return false;
70
71} // End
72$(document).ready(iever);
73
74
75//carieer logos scrolling //
76$(document).ready(function() {
77     $("#logoslider").flexisel({
78        visibleItems: 6,
79        animationSpeed: 1000,
80        autoPlay: true,
81        autoPlaySpeed: 3000,            
82        pauseOnHover: false,
83        enableResponsiveBreakpoints: true,
84        responsiveBreakpoints: { 
85            portrait: { 
86                changePoint:480,
87                visibleItems: 1
88            }, 
89            landscape: { 
90                changePoint:640,
91                visibleItems: 2
92            },
93            tablet: { 
94                changePoint:992,
95                visibleItems: 4
96            },
97			tabland: { 
98                changePoint:1199,
99                visibleItems: 5
100            }
101        }
102    });
103});

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.