PageSourceSearch

https://macjames.ca/index_files/vehicles_ccc_ETOa.js

js macjames.ca collected 2026-10-05 09:35:22 UTC 4,522 bytes, 128 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opener = _____WB$wombat$assign$function_____("opener");
10(function( $ ) {
11	'use strict';
12jQuery(document).ready( function($){
13	$('.open-modal-contact-form').on('click',function(){
14		$('#modal-contact-form').modal();
15	 })
16	 $('#sort_vehicles').on('change',function(){
17		/*var value = $(this).val();
18		var url = window.location.href.split('?')[0];
19		window.open(url + '?sortby=' + value);
20		//console.log(url + '?sortby=' + value);*/
21		if ( $('#form-search').length > 0 ){
22			$('#sort_by').val($(this).val());
23			$('#form-search').submit();
24		} else {
25			var value = $(this).val();
26			var url = window.location.href.split('?')[0];
27			window.location.href = url + '?sort_by=' + value;
28		}
29     })
30});
31	/**
32	 * All of the code for your public-facing JavaScript source
33	 * should reside in this file.
34	 *
35	 * Note: It has been assumed you will write jQuery code here, so the
36	 * $ function reference has been prepared for usage within the scope
37	 * of this function.
38	 *
39	 * This enables you to define handlers, for when the DOM is ready:
40	 *
41	 * $(function() {
42	 *
43	 * });
44	 *
45	 * When the window is loaded:
46	 *
47	 * $( window ).load(function() {
48	 *
49	 * });
50	 *
51	 * ...and/or other possibilities.
52	 *
53	 * Ideally, it is not considered best practise to attach more than a
54	 * single DOM-ready or window-load handler for a particular page.
55	 * Although scripts in the WordPress core, Plugins and Themes may be
56	 * practising this, we should strive to set a better example in our own work.
57	 */
58	var hasLoadedMap = false; 
59	$(function() {
60		var url =  window.location.href;
61    	var keywordSearch = "edmonton-real-estate-listing";
62		var resultPageSearch = ( url.indexOf( keywordSearch ) !== -1 );
63		var keywordView = "edmonton-real-estate";
64		var resultPageView = ( url.indexOf( keywordView ) !== -1 );
65		if ( resultPageSearch || resultPageView ){
66			$('.article-detail').css('background-color','transparent');
67			console.log('remove white block from page-main div class on view page');
68			var $page = $('.page-main');
69			$page.find('.white-block').removeClass('white-block');
70			//var $aside = $('aside');
71			//$aside.remove();
72			//$aside = $();
73		}
74	});
75})( jQuery );
76var map;
77var geocoder;
78var address = jQuery('#fullAddress').val();
79var icon_map = jQuery('#icon_map').val();
80function init_map(){
81    console.log("address "+ address);
82    geocoder = new google.maps.Geocoder();        
83    geocoder.geocode( { 'address': address}, function(results, status) 
84    {
85      if (status == google.maps.GeocoderStatus.OK) 
86      {
87        var mapOptions = {
88          zoom: 15,
89          center: results[0].geometry.location,
90          mapTypeId: google.maps.MapTypeId.ROADMAP,
91          scrollwheel: true
92        }
93        map = new google.maps.Map(document.getElementById("gmap_canvas"), mapOptions);
94        var marker = new google.maps.Marker({
95            map: map,
96            position: results[0].geometry.location,
97            icon: icon_map
98        });
99        console.log(icon_map)
100        var infoWindow = new google.maps.InfoWindow({content: address});
101        google.maps.event.addListener(marker,'click',function(){
102            infoWindow.open(map,marker);
103        });
104      } 
105      else 
106      {
107        console.log("Geocode was not successful for the following reason: " + status);
108        //$('#show-map').hide();
109        document.getElementById('show-map').style.display = 'none';
110      }
111    });
112}
113}
114
115/*
116     FILE ARCHIVED ON 12:53:52 Jan 06, 2026 AND RETRIEVED FROM THE
117     INTERNET ARCHIVE ON 18:19:48 Aug 27, 2026.
118     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.
119
120     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
121     SECTION 108(a)(3)).
122*/
123/*
124playback timings (ms):
125  capture_cache.get: 0.404
126  load_resource: 62.004 (2)
127  PetaboxLoader3.datanode: 29.836 (2)
128*/

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.