PageSourceSearch

http://www.meltonintegra.com/js/custom.js

js meltonintegra.com collected 2026-10-08 09:30:38 UTC 1,726 bytes, 66 lines download raw bytes

1/* Equal Height */
2function equalHeight(group) {
3   tallest = 0;
4   group.each(function() {
5      thisHeight = $(this).height();
6      if(thisHeight > tallest) {
7         tallest = thisHeight;
8      }
9   });
10   group.height(tallest);
11}
12$(window).load(function() {
13   equalHeight($(".column"));
14});
15
16/* numeric enter value on zip field */
17function numbersonly(e, decimal) {
18    var key;
19    var keychar;
20    if (window.event) {key = window.event.keyCode;}
21    else if (e) {key = e.which;}
22    else {return true;}
23    keychar = String.fromCharCode(key);
24    if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27) ) {return true;}
25    else if ((("0123456789").indexOf(keychar) > -1)) {return true;}
26    else if (decimal && (keychar == ".")) {return true;}
27    else return false; }
28	
29/* place holder function */
30$(document).ready(function() {
31       var holder = 'Zip Code';
32       $('.zip').blur(function(){
33        if ($(this).val().length == 0)
34          $(this).val(holder).addClass('holder');
35       }).focus(function(){
36        if ($(this).val() == holder)
37          $(this).val('').removeClass('holder');
38       }).val(holder).addClass('holder');
39      });
40/* panel collapse based on window width */
41
42$('a[data-toggle="collapse"]').click(function(e){
43  if ($(window).width() >= 768){  
44    e.stopImmediatePropagation();
45	e.preventDefault();
46  }    
47 
48});
49
50
51 $(window).bind('resize load', function() {
52  var windowWidth = $(window).width();
53  if(windowWidth < 768) 
54     {
55	  $('.panel-collapse').removeClass('in');  
56	 }
57	 else 
58	 {
59        $('.panel-collapse').addClass('in');
60	 $('.box-four').css("height","auto");
61		  
62	 }
63}); 
64
65
66

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.