PageSourceSearch

https://www.miltonchamber.ca/wp-content/themes/mcc2018/js/custom.js?v=859610262

js miltonchamber.ca collected 2026-09-30 14:53:38 UTC 2,426 bytes, 95 lines download raw bytes

1jQuery(document).ready(function(){
2
3    jQuery('#billing_first_name, #billing_last_name, #billing_email, #billing_postcode').on("cut copy paste",function(e) {
4      e.preventDefault();
5   });
6	
7	jQuery('.billing_email').bind('copy paste cut',function(e) {
8		e.preventDefault();
9		console.log("hei");
10	});
11
12	jQuery("#top-hero .slider").flexslider({
13		slideshowSpeed: 9000,
14		animationSpeed: 800,
15		slideshow: false,
16		animation: "fade"
17	});
18	
19	/* mobile menu */
20	jQuery('#menu-icon').click(function(){
21		jQuery("#header").addClass("show-menu");
22		return false;
23	});
24
25	jQuery('.menu-container .close-icon').click(function(){
26		jQuery("#header").removeClass("show-menu");
27		return false;
28	});
29	
30	/* mobile submenu */
31	jQuery("#header .menu-container nav ul li.menu-item-has-children").click(function(){
32		if( jQuery(this).hasClass("active-submenu") ) { 
33			//console.log('menu closed');
34			jQuery(this).find("ul").delay(300).slideUp();
35			jQuery(this).removeClass('active-submenu');
36		} else {
37			//console.log('menu opened');
38			jQuery(this).find("ul").delay(300).slideDown();
39			jQuery(this).addClass('active-submenu');
40		}
41	});
42	
43	
44	
45    jQuery("#search-icon").click(function(){
46        jQuery("#header #top-menu").fadeOut('fast');
47        jQuery("#search-form").fadeIn('slow');
48    });
49    
50    jQuery("#close-icon").click(function(){
51        jQuery("#search-form").fadeOut('fast');
52        jQuery("#header #top-menu").fadeIn('slow');
53    });
54    
55	jQuery('.scroll').click(function(){
56		var id = jQuery(this).attr("href");
57		jQuery('html,body').animate({ scrollTop: jQuery(id).offset().top }, 500);
58		return false;
59	});	
60
61});
62
63
64function getViewportWidth() {
65    if(window.undefined != window.innerWidth){
66        return window.innerWidth; 
67    }
68    if("CSS1Compat" == document.compatMode) {
69        return document.documentElement.clientWidth; 
70    }
71    if(document.body){
72        return document.body.clientWidth; 
73    }
74    return window.undefined
75}
76
77function getViewportHeight() {
78    if(window.innerHeight != window.undefined) {
79        return window.innerHeight;
80    }
81    if("CSS1Compat" == document.compatMode) {
82        return document.documentElement.clientHeight;
83    }
84    if(document.body) {
85        return document.body.clientHeight; 
86    }
87    return window.undefined; 
88}
89
90/*const pasteBox = document.getElementById("billing_first_name");
91pasteBox.onpaste = e => {
92  e.preventDefault();
93  return false;
94};
95*/

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.