PageSourceSearch

https://www.chestnutpark.com/themes/cpcorp/js/guestTracking.js?v=1662043151

js chestnutpark.com collected 2026-09-26 03:36:59 UTC 8,268 bytes, 176 lines download raw bytes

1function widgetManagerSettings(){
2	return {
3		widgetsToRemove: ['dailyEmailAlert','dev_widget','menuWidget','public_realtor','youtube_channel_link']
4	}
5}
6
7document.addEventListener('widgetRendered', function(e){
8    var selector = '#'+e.widget.module+'-0-'+e.widget.wid;
9if(e.widget.module === 'textWidget'){ 
10        $('body[class*="Join_Our_Team"] '+selector+' .bottomJoin').parent().parent().parent().addClass('joinWidget');
11         return;     
12}
13});
14
15function superbox_elements_by_theme(elements) {
16  var default_width = 620;  // Default width of the superbox window
17  var default_height = 480; // Default height of the superbox window
18  
19  // Set the default elements that will be treated as superbox triggers
20 
21  elements.push({'selector': '.widgets-featuredListings a.citylinkimg', 'width': default_width, 'height': default_height});
22  elements.push({'selector': '.property_item li a.feature_sheet', 'width': default_width, 'height': default_height});
23  elements.push({'selector': '.property_item a.property_image', 'width': default_width, 'height': default_height});
24  elements.push({'selector': '.property_item a.view_detailsp', 'width': default_width, 'height': default_height});
25}
26
27function hideWindowPopup(){
28$('.front .message .windowpopup').fadeOut(1000);
29$('.front .message .messages.status').fadeOut(1000);
30}
31
32docReady(function() {
33 $('div[id*="lead_forms-"] .lead-image').each(function(){
34     $(this).parent().addClass('custom-bg '+ $(this).parent().children('form').attr('class'));
35   });
36   var ua = window.navigator.userAgent;
37   var msie = ua.indexOf("MSIE ");
38   var edge = ua.indexOf('Edge/');
39  
40   if (!!navigator.userAgent.match(/Trident.*rv\:11\./)){
41      /*	   $('#slider li').foggy({blurRadius: 1, opacity: 0.8,cssFilterSupport: false});*/
42      	   $('body').addClass('overlayIE');
43   };
44
45   var widthIframe = 0;
46   $('div[id*="youtube_video_widget"] .property-video').each(function(){
47     widthIframe = parseInt($(this).find('iframe').attr('width'));
48       if (($(this).find('iframe').length > 0) && (widthIframe!=NaN) && (widthIframe > $(this).parent().outerWidth())){
49           $(this).addClass('hasIframe');
50       }
51   });
52
53if($('.front .message .messages.status').length != 0){
54  $('.front .message .windowpopup').show();  	
55 var mytimer2=setTimeout(function(){
56   hideWindowPopup();
57 },10000);
58
59 $('.front .message .windowpopup').click(function() {
60    clearTimeout(mytimer2);
61    hideWindowPopup();
62 });
63 
64 $('.front .message .messages.status').click(function() {
65 	clearTimeout(mytimer2);
66    hideWindowPopup();
67});
68
69}
70
71if (!$('#sliderblock nav ul li.submenu ul li').hasClass('sidelink')){
72  $('#sliderblock nav').addClass('newmenu');
73}		
74
75$('body[class*="Join_Our_Team"] .g1page').css('visibility','visible');
76if ($('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form').length){
77	$('body .pagecontent').addClass('newJoin');
78}
79$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form #ask-question-fname').prop('required',true);
80$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form #ask-question-email').prop('type','email');
81$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form #ask-question-email').prop('required',true);
82$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form .form-radio').prop('required',true);
83$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form #ask-question-fname').attr({
84	'placeholder': 'Name*',
85	'title' : 'Name*'
86});
87$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form #edit-lname').attr({
88  'placeholder': 'Last name*',
89  'title' : 'Last name*'
90});
91if ($('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form #edit-phone').hasClass('required')){
92  $('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form #edit-phone').attr({
93    'placeholder': 'Phone*',
94    'title' : 'Phone*'
95  });
96$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form #edit-phone').prop('required',true);
97} else{
98  $('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form #edit-phone').attr({
99    'placeholder': 'Phone',
100    'title' : 'Phone'
101  });
102}
103$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form #ask-question-email').attr({
104	'placeholder': 'Email*',
105	'title' : 'Email*'
106});
107$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form #edit-message').attr({
108	'placeholder': 'Message',
109	'title' : 'EMAIL*'
110});
111  
112$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form input.form-submit').val('Schedule my discovery consultation');
113$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form .content').prepend('<p class="back24">We will get back to you within <span>24 business hours</span>.</p>');
114$('body[class*="Join_Our_Team"] #page_bottom .widgets-askQuestions').append('<p class="privacyLine">* We take your privacy very seriously. We will not share your information with anyone or send you spam emails.</p>');
115$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form .drip-group-container .form-item').eq(0).find('input').prop('checked',fal
115se); 
116$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form .drip-group-container .form-item').eq(3).find('input').prop('checked',true);  
117$('body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form input.form-submit, body[class*="Join_Our_Team"] #page_bottom #ask_questions_widget_form a.disclaimer_link').wrapAll('<div class="submit-wrapper"></div>');
118$('body[class*="Join_Our_Team"] #page_bottom div[id*="ask_questions"]').appendTo($('body[class*="Join_Our_Team"] .g2page .node'));
119
120$('body[class*="Join_Our_Team"] h1.main_title').html(function (i, html) {
121    return html.replace('top ranking brokerage', '<strong>top ranking brokerage</strong>');
122});
123$('body[class*="Join_Our_Team"] h1.main_title').html(function (i, html) {
124	return html.replace('the competitive edge you need.', '<span>the competitive edge you need.</span>');
125});
126
127$('body[class*="Join_Our_Team"] h1.main_title').css('visibility','visible');
128
129$('body[class*="Join_Our_Team"] .bottomJoin').parent().parent().parent().addClass('joinWidget');
130
131SearchWidgetUpdate(function(){
132$('div[id*="quickSearch"] .searchWidgetApp .open-option').click(function(){
133   $(this).parent().toggleClass('searchExpanded');
134 });
135
136$('div[id*="quickSearch"] .searchWidgetApp').each(function(){
137if ($(this).find('#searchType').length){
138	$(this).addClass('residential');
139}
140});
141
142$('div[id*="quickSearch"] .searchWidgetApp .dropdown-control .dropdown-menu li.active a.option.precondo').each(function(){
143	if ($(this).length>0){
144		$(this).closest('.searchWidgetApp').removeClass('residential');
145		$(this).closest('.searchWidgetApp').removeClass('commercial');
146		$(this).closest('.searchWidgetApp').addClass('precondo');
147	}
148});
149 
150  $('div[id*="quickSearch"] .searchWidgetApp .residential').on("click", function(){
151  	if(!$(this).parent().parent().parent().parent().parent().parent().hasClass('residential')){
152  	$(this).parent().parent().parent().parent().parent().parent().removeClass('commercial');
153  	$(this).parent().parent().parent().parent().parent().parent().removeClass('precondo');
154  	$(this).parent().parent().parent().parent().parent().parent().addClass('residential');
155  	}
156 });
157   $('div[id*="quickSearch"] .searchWidgetApp .commercial').on("click", function(){
158    if(!$(this).parent().parent().parent().parent().parent().parent().hasClass('commercial')){
159    $(this).parent().parent().parent().parent().parent().parent().removeClass('residential');
160     $(this).parent().parent().parent().parent().parent().parent().removeClass('precondo');
161  	$(this).parent().parent().parent().parent().parent().parent().addClass('commercial');
162  	}
163 });
164
165    $('div[id*="quickSearch"] .searchWidgetApp .precondo').on("click", function(){
166    if(!$(this).parent().parent().parent().parent().parent().parent().hasClass('precondo')){
167    $(this).parent().parent().parent().parent().parent().parent().removeClass('residential');
168  	 $(this).parent().parent().parent().parent().parent().parent().removeClass('commercial');
169  	 $(this).parent().parent().parent().parent().parent().parent().addClass('precondo');
170  	}
171 });
172});
173
174
175     
176});

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.