PageSourceSearch

https://www.fieldings.com/js/fancybox.js?v=2.7

js fieldings.com collected 2026-10-06 02:36:23 UTC 7,962 bytes, 241 lines download raw bytes

1/* lightbox style */
2
3jQuery(document).ready(function() {
4	jQuery(".fancybox").fancybox({
5		'type':'image',
6		'overlayShow'	: true,
7		'transitionIn'	: 'elastic',
8		'transitionOut'	: 'elastic',
9		'showCloseButton': true,
10		'titlePosition' : 'inside',
11        helpers     : {
12			title: {
13        		type: 'inside'
14        	}
15		},
16		fitToView:true
17	});
18	$("body").on("click", "a.warranty-form-fancybox", function(e) {
19		e.preventDefault();
20	e.stopPropagation();
21	//jQuery('.warranty-form-fancybox')
22	$.fancybox({
23        'padding' : 0,
24        'type':'iframe',
25        'showNavArrows' : false,
26        'arrows': false,
27        'scrolling' : 'auto',
28		fitToView:true,
29        'overlayShow':true,
30		'href':'/common/form_warranty.php?return='+parent.location.href,
31		'afterLoad' : function () {
32//			if ($('#rc-warranty').find('.grecaptcha-badge').length) {} else
33//				$.getScript('https://www.google.com/recaptcha/api.js');
34		},
35        'beforeClose' : function() {
36//			reCaptchaID = GetReCaptchaID("rc-warranty");
37//			console.log(reCaptchaID)
38//			window.grecaptcha.reset(reCaptchaID);
39		}
40	})
41    })
42
43    jQuery(".contactPopBox").fancybox({
44        'padding' : 0,
45		'type':'ajax',
46        'arrows' : false,
47        'scrolling' : 'visible',
48		'fitToView':false,
49	    helpers:  {
50	        overlay : null
51	    },
52		'afterLoad' : function () {
53			jQuery.getScript('/js/formhints.js');
54			firstname = lastname = email = zip = '';
55			if (jQuery('#side_fname').val() != jQuery('#side_fname').attr('title'))
56				firstname = jQuery('#side_fname').val();
57			if (jQuery('#side_lname').val() != jQuery('#side_lname').attr('title'))
58				lastname = jQuery('#side_lname').val();
59			
60			if (firstname || lastname)
61				jQuery('.customform #lname').val(firstname + ' ' + lastname);
62			jQuery('.customform #email').val(jQuery('#side_email').val());
63			jQuery('.customform #zip').val(jQuery('#side_zip').val());
64		}
65    });
66
67    jQuery(".fancypage").fancybox({
68        'padding' : 0,
69        'type':'ajax',
70        'showNavArrows' : false,
71        'arrows': false,
72        'scrolling' : 'auto',
73	fitToView:true,
74        'overlayShow':true,
75            'closeClick'  : false, // prevents closing when clicking INSIDE fancybox
76        'helpers'     : {
77            overlay : {closeClick: false} // prevents closing when clicking OUTSIDE fancybox
78    },
79            keys : {
80                        close: null
81    }, // prevents close when clicking escape button
82        'afterShow' : function() {
83            jQuery(".toolbox").hide();
84
85            // re-initialize any cms editor box
86            $('.cms_editor, .cms_editor_mini,.cms_editor_external').each(function() {
87                cmsid = $(this).attr('id');
88                if (cmsid) {
89                    //tinyMCE.execCommand("mceAddControl", true, cmsid);
90                    tinyMCE.execCommand("mceAddEditor", true, cmsid);
91                }
92            });
93        },
94        'beforeClose' : function() {
95            jQuery(".toolbox").show();
96
97            // get id of any cms editor box
98            $('.cms_editor, .cms_editor_mini,.cms_editor_external').each(function() {
99                cmsid = $(this).attr('id');
100                if (cmsid) {
101                    //tinyMCE.execCommand("mceRemoveControl", false, cmsid);
102                    tinyMCE.execCommand("mceRemoveEditor", false, cmsid);
103                }
104            });
105        }
106
107    });
108
109	// Refresh original page after closing.  Used for photo gallery editing (builder page)
110    jQuery(".fancypage_refresh").fancybox({
111        'padding' : 0,
112        'type':'iframe',
113        'showNavArrows' : false,
114        'arrows': false,
115		fitToView: false,
116            autoSize: false,
117            autoDimensions: false,
118		width:1000,
119		height: 610,
120        'scrolling' : 'no',
121        'overlayShow':true,
122        'afterShow' : function() {
123            jQuery(".toolbox").hide();
124
125            // re-initialize any cms editor box
126            $('.cms_editor,.cms_editor_mini,.cms_editor_external').each(function() {
127                cmsid = $(this).attr('id');
128                if (cmsid) {
129                    tinyMCE.execCommand("mceAddControl", true, cmsid);
130                    tinyMCE.execCommand("mceAddEditor", true, cmsid);
131                }
132            });
133        },
134        'beforeClose' : function() {
135		window.location.reload()
136
137            jQuery(".toolbox").show();
138
139            // get id of any cms editor box
140            $('.cms_editor, .cms_editor_mini,.cms_editor_external').each(function() {
141                cmsid = $(this).attr('id');
142                if (cmsid) {
143                    tinyMCE.execCommand("mceRemoveControl", false, cmsid);
144                    tinyMCE.execCommand("mceRemoveEditor", false, cmsid);
145                }
146            });
147        }
148
149    });
150    jQuery(".fancypage_cblocks").fancybox({
151        'padding' : 0,
152        'type':'ajax',
153        'showNavArrows' : false,
154        'arrows': false,
155        helpers     : {
156            overlay : {
157                    closeClick : false,
158                    locked : true
159            }
160        },
161        width:1100,
162		height:700,
163		wrapCSS: 'fancyblocks',
164        autoSize: false,
165        autoDimensions: false,
166        'scrolling' : 'yes',
167        'overlayShow':true,
168        'afterShow' : function() {
169            jQuery(".toolbox").hide();
170            // re-initialize any cms editor box
171            $('.fancybox-wrap .cms_editor_mini, .fancybox-wrap .cms_editor').each(function() {
172                cmsid = $(this).attr('id');
173                if (cmsid) {
174//                    tinyMCE.execCommand("mceAddControl", true, cmsid);
175                    tinyMCE.execCommand("mceAddEditor", true, cmsid);
176					if (typeof toggleContentBlockVisibility === 'function')
177						toggleContentBlockVisibility(document.getElementById('templateid'));
178					// add back remove_script_host setting.  Since only the last editor setting in cmseditor.js can load with the mceAddEditor command, have to let all default to external and then fix after
179					// doing the other way around removes the domain from Form Autoresponders and you can't put it back.
180					tinyMCE.get(cmsid).settings.remove_script_host = true;
181//					editor.settings.my_setting = 'abcd'
182
183              	}
184            });
185            $('.fancybox-wrap .cms_editor_external').each(function() {
186                cmsid = $(this).attr('id');
187				console.log(cmsid);
188                if (cmsid) {
189                    tinyMCE.execCommand("mceAddEditor", true, cmsid);
190              	}
191            });
192        },
193	'beforeClose' : function() {
194            jQuery(".toolbox").show();
195
196            // get id of any cms editor box
197            $('.fancybox-wrap .cms_editor_mini, .fancybox-wrap .cms_editor, .fancybox-wrap .cms_editor_external').each(function() {
198                cmsid = $(this).attr('id');
199				console.log(cmsid);
200                if (cmsid) {
201  //                  tinyMCE.execCommand("mceRemoveControl", false, cmsid);
202                    tinyMCE.execCommand("mceRemoveEditor", false, cmsid);
203                }
204            });
205        }
206
207    });
208
209    jQuery(".fancyframe").fancybox({
210        'padding' : 0,
211        'type':'iframe',
212        height:'80%',
213                autoSize    : false,
214                fitToView   : true,
215                autoDimensions: false,
216        'showNavArrows' : false,
217        'arrows': false,
218        'scrolling' : 'auto',
219        'overlayShow':true
220    });
221	jQuery(".popframe").fancybox({
222                'type' : 'iframe',
223                'wrapCSS' : 'popframe',
224                height: 600,
225                autoSize    : false,
226                fitToView   : false,
227                autoDimensions: false,
228                afterClose: function () {
229	                parent.location.reload(true);
230            }
231	});
232
233    // contact builder rep
234    jQuery(".emailPop").fancybox({
235	'padding' : 0,
236        'showNavArrows' : false, 
237        'scrolling' : 'no',
238        'overlayShow':false
239    });
240
241});

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.