PageSourceSearch

https://slategray-tapir-881624.hostingersite.com/js/custom.js

js slategray-tapir-881624.hostingersite.com collected 2026-10-03 04:54:29 UTC 10,815 bytes, 310 lines download raw bytes

1function openNav() {
2	document.getElementById("res-nav").style.width = "100%";
3}
4
5function closeNav() {
6	document.getElementById("res-nav").style.width = "0%";
7}
8$('.megamenu .megamenu-menu li a').click(function () {
9	var cat_link = $(this).attr('href');
10	$('.least-category').attr('href', cat_link);
11});
12$('.single-img img').click(function () {
13	var img_src = $(this).attr('src');
14	img_src = img_src.replace(/\.jpg/, '');
15	$('.jzoom img').attr('src', img_src + '.jpg');
16	var zoom_img_src = img_src.replace(img_src, img_src + '_big.jpg');
17	$(this).find()
18	$('.jzoom div:last-child img').attr('src', zoom_img_src);
19});
20$(document).ready(function () {
21	$('.drag-file input').change(function () {
22		$('.drag-file p.file-type').text(this.files.length + "file(s) selected");
23	});
24	$('.tab-carousel .nav a[href="#home"]').click(function () {
25		$('.tab-carousel #home').siblings().css("opacity", "0");
26		$('.tab-carousel #home').css("opacity", "0");
27		$('.tab-carousel .loader').css("opacity", "1");
28		setTimeout(function () {
29			$('.tab-carousel #home').css("opacity", "1");
30			$('.tab-carousel .loader').css("opacity", "0");
31		}, 2000);
32	});
33	$('.tab-carousel .nav a[href="#menu1"]').click(function () {
34		$('.tab-carousel #menu1').siblings().css("opacity", "0");
35		$('.tab-carousel #menu1').css("opacity", "0");
36		$('.tab-carousel .loader').css("opacity", "1");
37		setTimeout(function () {
38			$('.tab-carousel #menu1').css("opacity", "1");
39			$('.tab-carousel .loader').css("opacity", "0");
40		}, 2000);
41	});
42	$('.tab-carousel .nav a[href="#menu2"]').click(function () {
43		$('.tab-carousel #menu2').siblings().css("opacity", "0");
44		$('.tab-carousel #menu2').css("opacity", "0");
45		$('.tab-carousel .loader').css("opacity", "1");
46		setTimeout(function () {
47			$('.tab-carousel #menu2').css("opacity", "1");
48			$('.tab-carousel .loader').css("opacity", "0");
49		}, 2000);
50	});
51	$(function () {
52		var emailAdd = $('.tubes-text p').text();
53		emailAdd = jQuery.trim(emailAdd);
54		var p_text = emailAdd.length;
55		if (p_text == 0) {
56			$('.tubes-text').remove();
57		}
58	});
59	$('#drop-form-fixed').click(function () {
60		$('.quickquote-form').css('position', 'fixed');
61		$('.quickquote-form').css('top', '67px');
62	});
63	$(function () {
64		var maxL = 150;
65		$('.yellow-border .media p').each(function (i, div) {
66			var text = $(div).text();
67			if (text.length > maxL) {
68				var begin = text.substr(0, maxL),
69					end = text.substr(maxL);
70				$(div).html(begin).append($('<span class="readmore"/>').html(' [...]')).append($('<div class="hidden" />').html(end));
71			}
72		});
73		$(document).on('click', '.readmore', function () {
74			$(this).next('.hidden').slideDown(750);
75		});
76	});
77	var windowWidth = $(window).width();
78	if (windowWidth <= 640) {
79		$(function () {
80			maxL = 100;
81			$('.product-panel .panel-body p').each(function (i, div) {
82				var text = $(div).text();
83				if (text.length > maxL) {
84					var begin = text.substr(0, maxL),
85						end = text.substr(maxL);
86					$(div).html(begin).append($('<span class="readmore"/>').html(' [...]')).append($('<div class="hidden" />').html(end));
87				}
88			});
89			$(document).on('click', '.readmore', function () {
90				$(this).next('.hidden').slideDown(750);
91			});
92		});
93		$(function () {
94			maxL = 100;
95			$('.tubes-text p').each(function (i, div) {
96				var text = $(div).text();
97				if (text.length > maxL) {
98					var begin = text.substr(0, maxL),
99						end = text.substr(maxL);
100					$(div).html(begin).append($('<span class="readmore"/>').html(' [...]')).append($('<div class="hidden" />').html(end));
101				}
102			});
103			$(document).on('click', '.readmore', function () {
104				$(this).next('.hidden').slideDown(750);
105			});
106		});
107		$(function () {
108			maxL = 200;
109			$('.perfect-content p').each(function (i, div) {
110				var text = $(div).text();
111				if (text.length > maxL) {
112					var begin = text.substr(0, maxL),
113						end = text.substr(maxL);
114					$(div).html(begin).append($('<span class="readmore"/>').html(' [...]')).append($('<div class="hidden" />').html(end));
115				}
116			});
117			$(document).on('click', '.readmore', function () {
118				$(this).next('.hidden').slideDown(750);
119			});
120		});
121	}
122	$(window).scroll(function () {
123		if ($(window).scrollTop() < 50) {
124			$('.custom-menu.navbar-default .navbar-toggle .icon-bar').css('background-color', '#00325b');
125			var window_menu_Width = $(window).width();
126			if (window_menu_Width <= 1023) {
127				$('.custom-menu').css({
128					'position': 'relative',
129					'top': '0px'
130				});
131			} else {
132				$('.custom-menu').css({
133					'position': 'relative',
134					'top': '0px'
135				});
136			}
137			$('.cntct-info').css('margin-top', '0px');
138			$('.custom-menu').css('background', 'transparent');
139			$('.custom-menu .navbar-nav>li>a').css('color', '#3f1a46');
140			$('#desktop-search').addClass("search-show");
141			$('#desktop-search').removeClass("search-hide");
142			$('.menu-quote').css('display', 'none');
143			$('.sticky-logo').css('display', 'none');
144			$('.default-logo').css('display', 'block');
145			$('.navbar-brand').css('height', '50px');
146			$('.quickquote-form').css('top', '49px');
147		} else {
148			$('.custom-menu.navbar-default .navbar-toggle .icon-bar').css('background-color', 'white');
149			var window_menu_Width = $(window).width();
150			if (window_menu_Width <= 1023) {
151				$('.custom-menu').css({
152					'position': 'fixed',
153					'top': '0px'
154				});
155			} else {
156				$('.custom-menu').css({
157					'position': 'fixed',
158					'top': '0px'
159				});
160			}
161			$('.navbar-brand').css('height', '45px');
162			$('.custom-menu').css('background', '#00325b');
163			$('.custom-menu .navbar-nav>li>a').css('color', 'white');
164			$('.cntct-info').css('margin-top', '-50px');
165			$('#desktop-search').addClass("search-hide");
166			$('#desktop-search').removeClass("search-show");
167			$('.menu-quote').css('display', 'block');
168			$('.sticky-logo').css('display', 'block');
169			$('.default-logo').css('display', 'none');
170			$('.quickquote-form').css('top', '67px');
171			$('.quickquote-form').css('position', 'fixed');
172		}
173	});
174	var window_menu_Width = $(window).width();
175	if (window_menu_Width <= 1023) {
176		$(function () {
177			$('.custom-menu').css({
178				'position': 'relative',
179				'top': '0px'
180			});
181		});
182	}
183	$("#quick-quote-form").submit(function (e) {
184		e.preventDefault();
185		var q_name = $("#quick-name").val();
186		var q_email = $("#quick-email").val();
187		var q_phone = $("#quick-phone").val();
188		var q_text = $("#quick-msg").val();
189
190		function isValidEmail(emailAddress) {
191			var pattern = new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i);
192			return pattern.test(emailAddress);
193		};
194		if (isValidEmail(q_email) && (q_text.length > 5) && (q_name.length > 1)) {
195			$.ajax({
196				type: "POST",
197				url: "https://www.printmyboxes.com/js/quick-function.php",
198				data: {
199					q_name: q_name,
200					q_email: q_email,
201					q_phone: q_phone,
202					q_text: q_text
203				},
204				success: function () { 
205					$('.error').fadeOut(1000);
206					$('#quick-quote-form').find('input[type=text]').val('');
207					$('#quick-quote-form').find('input[type=email]').val('');
208					$('#quick-quote-form').find('#quick-msg').val('');
209					$('.success').fadeIn(1000);
210					setTimeout(function () {
211						$('.success').fadeOut(1000);
212					}, 4000);
213				}
214			});
215		} else {
216			$('#quick-quote-form').find('input[type=text]').val('');
217			$('#quick-quote-form').find('input[type=email]').val('');
218			$('#quick-quote-form').find('#quick-msg').val('');
219			$('.error').fadeIn(1000);
220		}
221		return false;
222	});
223	$(".navbar-toggle").click(function () {
224		$(".overlay-contentscale").addClass("open1");
225	});
226	$(".cross-sym").click(function () {
227		$(".overlay-contentscale").removeClass("open1");
228	});
229	$(function () {
230		$('.drop-form').click(function () {
231			$('.quickquote-form').slideToggle('normal');
232			return false;
233		});
234	});
235	$(document).click(function () {
236		$('.quickquote-form').hide();
237	});
238	$(".quickquote-form").click(function (e) {
239		e.stopPropagation();
240	});
241});
242$(document).ready(function () {
243	var showChar = 300;
244	var ellipsestext = "...";
245	var moretext = "see more";
246	var lesstext = "see less";
247	$('.more').each(function () {
248		var content = $(this).html();
249		if (content.length > showChar) {
250			var c = content.substr(0, showChar);
251			var h = content.substr(showChar - 1, content.length - showChar);
252			var html = c + '<span class="moreellipses">' + ellipsestext + '&nbsp;</span><span class="morecontent"><span>' + h + '</span>&nbsp;&nbsp;<a href="" class="morelink">' + moretext + '</a></span>';
253			$(this).html(html);
254		}
255	});
256	$(".morelink").click(function () {
257		if ($(this).hasClass("less")) {
258			$(this).removeClass("less");
259			$(this).html(moretext);
260		} else {
261			$(this).addClass("less");
262			$(this).html(lesstext);
263		}
264		$(this).parent().prev().toggle();
265		$(this).prev().toggle();
266		return false;
267	});
268	var showChar = 465;
269	var ellipsestext = "...";
270	var moretext = "see more";
271	var lesstext = "see less";
272	$('.more_medium').each(function () {
273		var content = $(this).html();
274		alert(content);
275		if (content.length > showChar) {
276			var c = content.substr(0, showChar);
277			var h = content.substr(showChar - 1, content.length - showChar);
278			var html = c + '<span class="moreellipses">' + ellipsestext + '&nbsp;</span><span class="morecontent"><span>' + h + '</span>&nbsp;&nbsp;<a href="" class="morelink2">' + moretext + '</a></span>';
279			$(this).html(html);
280		}
281	});
282	$(".morelink2").click(function () {
283		if ($(this).hasClass("less")) {
284			$(this).removeClass("less");
285			$(this).html(moretext);
286		} else {
287			$(this).addClass("less");
288			$(this).html(lesstext);
289		}
290		$(this).parent().prev().toggle();
291		$(this).prev().toggle();
292		return false;
293	});
294	$(".res-search").click(function () {
295		$(".drop-search").slideToggle("slow");
296	})
297
298});
299(function ($) {
300	"use strict";
301	if ($("#sidebar-main").length > 0) {
302		var sidebar = new StickySidebar('#sidebar-main', {
303			topSpacing: 70,
304			bottomSpacing: 0,
305			containerSelector: '.sticky-main-content',
306			innerWrapperSelector: '.sidebar-inner',
307			minWidth: 767
308		});
309	}
310})(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.