PageSourceSearch

https://elitewindowcleaning.ca/wp-content/themes/elite-code/assets…?ver=6e7d3baf08e958336db4d12644c22a7e

js elitewindowcleaning.ca collected 2026-10-08 06:36:24 UTC 2,841 bytes, 95 lines download raw bytes

1
2function ct_theme_social_share_popup(em){
3	//em.preventDefault();
4	var shareurl=em.href;
5	var top = (screen.availHeight - 500) / 2;
6	var left = (screen.availWidth - 500) / 2;
7	var popup = window.open(
8			shareurl, 
9			'social sharing',
10			'width=550,height=420,left='+ left +',top='+ top +',location=0,menubar=0,toolbar=0,status=0,scrollbars=1,resizable=1'
11	);
12	return false;
13}
14
15
16$(document).ready(function () {
17	$(".sm-sharing-links li a").click(function(eventObj){
18		//console.log(eventObj);
19		eventObj.preventDefault();
20		//eventObj.stopPropagation();
21		return false;
22	});
23});
24
25
26/*
27jQuery dependent scripts
28*/
29
30$(document).ready(function(){	
31    //content read and less content, 
32	// Reference Script : https://www.jqueryscript.net/text/Show-Hide-Long-Text-Max-Length-jQuery.html
33	
34    // Configure/customize these variables.
35    var showChar = 200;  // How many characters are shown by default
36    var ellipsestext = "...";
37    var moretext = "Read More";
38    var lesstext = "Read Less";
39
40    $('.moreofcontent').each(function() {
41    	var content = $(this).html();
42
43    	if(content.length > showChar) {
44
45    		var c = content.substr(0, showChar);
46    		var h = content.substr(showChar, content.length - showChar);
47
48    		var html = c + '<span class="moreellipses">' + ellipsestext+ '&nbsp;</span><span class="morecontent"><span>' + h + '</span>&nbsp;&nbsp;<a href="#" class="gv_morelink" aria-label="Click to show hidden content">' + moretext + '</a></span>';
49
50    		$(this).html(html);
51    	}
52
53    });
54
55    $(".gv_morelink").click(function(){
56    	if($(this).hasClass("less_content")) {
57    		$(this).removeClass("less_content");
58    		$(this).html(moretext);
59    	} else {
60    		$(this).addClass("less_content");
61    		$(this).html(lesstext);
62    	}
63    	$(this).parent().prev().toggle();
64    	$(this).prev().toggle();
65    	return false;
66    });
67});	
68
69
70;(function($){
71    $(document).on('keyup', '[name=postalcode]', function(){
72        let show_on_zip_ele = $(this).closest('form').find('.show-on-zip');
73        var zip = $(this).val();
74        if(zip.length>=3){
75            $.ajax({
76                url: "/wp-admin/admin-ajax.php?action=get_city_state",
77                type: "POST",
78                data: {"zip": zip},
79                success: function(res){
80                    res = JSON.parse(res);
81                    if(res){
82                        show_on_zip_ele.find('[name=city]').val(res.city);
83                        show_on_zip_ele.find('[name=province]').val(res.state);              
84                    }
85                },
86                error: function(){}
87            });
88            show_on_zip_ele.show();
89        }else{
90            show_on_zip_ele.hide();
91            show_on_zip_ele.find('[name=city]').val('');
92            show_on_zip_ele.find('[name=province]').val('');  
93        }
94    });
95})(jQuery);

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.