Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /home/jackjohn/public_html/cgi-bin/sc/templates/publish/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/jackjohn/public_html/cgi-bin/sc/templates/publish/boot.js
ss_jQuery('a.checkSubs').click(function(e) {e.preventDefault();var checkboxes = ss_jQuery(this).parent('form').find('input[name=itemnum]:checked').length;if (checkboxes > 0) {ss_jQuery(this).parent('form').find('.oops').hide();ss_jQuery(this).parent('form').submit()}else {ss_jQuery(this).parent('form').find('.oops').show();};return false;});
ss_jQuery('a.checkVars').click(function(e) {e.preventDefault();var cansubmit = 'yes';ss_jQuery(this).parent('form').find('input.required').each(function(){if (ss_jQuery(this).val() == "" || ss_jQuery(this).val() == null) {ss_jQuery(this).addClass('field_warn'); cansubmit = 'no';};});if (cansubmit != 'no') {ss_jQuery(this).parent('form').submit()}; return false;});
[-- IF PageMenu --]
function debouncer( func , timeout ) {var timeoutID , timeout = timeout || 100; return function () {var scope = this , args = arguments; clearTimeout( timeoutID ); timeoutID = setTimeout( function () {func.apply( scope , Array.prototype.slice.call( args ) );} , timeout );}}
! function(m) {
	nm = {
		arrow: 'yes',
		more: 'yes',
		morelimit: 6,
		stretch: 'no',
		minpercol: 15,
		colwidth: 200,
		padding: 15
	}
        navw = document.getElementById('navwidth').clientWidth;
	var liwidth = 0;
	$('ul#ShopSite > li').each(function() {liwidth += $(this).outerWidth();});
        localStorage.setItem('navwidth',navw);
	if (liwidth > navw) {localStorage.setItem('nav','mobilenav'); $('.suckertreemenu').parent().addClass('mobilenav');} else {localStorage.setItem('nav','');}
	cols = Math.floor(navw/nm.colwidth);
	m.fn.navMenu = function(n) {
		ss_jQuery(this).children().each(function(){
			var c = ss_jQuery(this).children('ul');
			// has a flyout menu
			if (c.length > 0) {
				var offsetl = ss_jQuery(this).position();
				var parenta = ss_jQuery(this).children('a');
				var cas = this.getElementsByTagName('a');
				var clis = ss_jQuery(this).children('ul').children('li');
		        if (nm.arrow = "yes") {arrow = '<span class="caret"></span>';} else {arrow = '';}
				if (cas.length > nm.minpercol) {
					var colmin = Math.ceil((cas.length)/nm.minpercol);
					var colwithmax = Math.ceil((cas.length)/cols);
					// multiple columns but not maxed out
					if (colmin <= cols) {colcount = nm.minpercol; totalcol = colmin} else {colcount = colwithmax; totalcol = cols}
					if (totalcol == cols) {appendfcontain = ' style="left: 0px; width: 100%"'; appendf = 'display: block; ';}
					else if (((offsetl.left)+(parseInt(totalcol * nm.colwidth)+parseInt(nm.padding*2))) > navw) {appendfcontain = ' style="right: 0px;"'; appendf = 'width: ' + (parseInt(totalcol * nm.colwidth)+parseInt(nm.padding*2)) + 'px; '}
					else {appendfcontain = ''; appendf = 'width: ' + (parseInt(totalcol * nm.colwidth)+parseInt(nm.padding*2)) + 'px; '};
					var menuList = ''; var colnumcount = 1; ac = 0;
					var liArr = new Array(), $liList = ss_jQuery(this).children('ul');
					$liList.find('> li').each(function(){liArr.push(ss_jQuery(this).html());});
					for (var i = 0; i < liArr.length; i++) {
						var innercount = liArr[i].split('<li>').length;
						// loop through li's. If li number is more than the current count, start a new bullet list and calculate the new count
						if ((ac+innercount) > colcount) {menuList += '</ul><ul style="width: ' + nm.colwidth + 'px">'; ac=0;}
						ac=ac+innercount;
						liVal = liArr[i].split('<ul>').join('<ul class="subflyout">');
						menuList += '<li class="fly">' + liVal + '</li>';
					}				
				}
				else {
					totalcol = 1; appendfcontain = ''; appendf = 'width: ' + (parseInt(totalcol * nm.colwidth)+parseInt(nm.padding*2)) + 'px; ';
					var menuList = ss_jQuery(this).children('ul').html();
				}
				ss_jQuery(this).addClass('flyout').html('<a href="' + parenta.attr('href') + '" title="' + parenta.html() + '" onclick="return false" class="checkFlyout">' + parenta.html() + arrow + '</a><div class="fcontain"' + appendfcontain + '><div class="f" style="' + appendf + 'padding: ' + nm.padding + 'px 0px"><ul style="margin-left: ' + nm.padding + 'px; width: ' + nm.colwidth + 'px">' + menuList + '</ul></div></div>');
				ss_jQuery(this).hover(function(){ss_jQuery(this).addClass('active');},function(){ss_jQuery(this).removeClass('active');});
				ss_jQuery(this).click(function() {if ((nav == 'mobilenav') || (liwidth > navw)) {ss_jQuery(this).toggleClass('active'); ss_jQuery(this).children('div').slideToggle()} else {location.href=ss_jQuery(this).children('a').attr('href');}});

			}
		})
	if (ss_jQuery('div.suckertreemenu').width() > navw) {}
	}
}(ss_jQuery);
ss_jQuery('a#navToggle').click(function(e){ss_jQuery('#ShopSite').slideToggle(); e.preventDefault; return false;});
ss_jQuery('ul#ShopSite').navMenu();
function menuRecheck() {if(!ss_jQuery('.suckertreemenu').parent().hasClass('mobilenav')) {rnavw = document.getElementById('navwidth').clientWidth;var rliwidth = 0;ss_jQuery('ul#ShopSite > li').each(function() {rliwidth += ss_jQuery(this).outerWidth();});localStorage.setItem('navwidth',rnavw);if (rliwidth > rnavw) {localStorage.setItem('nav','mobilenav'); ss_jQuery('.suckertreemenu').parent().addClass('mobilenav');} else {localStorage.setItem('nav',''); ss_jQuery('.suckertreemenu').parent().removeClass('mobilenav');}}}
ss_jQuery(window).resize(debouncer(function() {menuRecheck()}));
[-- END_IF --]
function afterLoad(type,url,cross,carousel) {
	if (ss_jQuery(window).width() < 768) {
		ss_jQuery('body').addClass('narrow');
		ss_jQuery('ul.subflyout').each(function(){
			ss_jQuery(this).parent().children('a').click(function(e){ss_jQuery(this).parent().children('ul').slideToggle(); e.preventDefault; return false;});
		});
	}
### Breadcrumbs
	ss_jQuery('a.sublink').click(function(){var brdalk = ss_jQuery('h1').html(); if(ss_jQuery(location).attr('href') != "[-- MyStoreURL --]"){localStorage.setItem('brda','<a itemprop="item" href="'+ss_jQuery(location).attr('href')+'" title="'+brdalk+'"><span itemprop="name">'+brdalk+'</span></a><meta itemprop="position" content="2">');} localStorage.setItem('brdb',ss_jQuery(this).attr('href'))});
	ss_jQuery('li.flyout li a').click(function(){var brdalk = ss_jQuery(this).closest('li.flyout').children('a').attr('title'); var brdahref = ss_jQuery(this).closest('li.flyout').children('a').attr('href'); if (brdahref == '') {brdahref = ss_jQuery(this).attr('href')}; localStorage.setItem('brda','<a itemprop="item" href="'+brdahref+'" title="'+brdalk+'"><span itemprop="name">'+brdalk+'</span></a>')});
###
	ss_jQuery('.more').each(function(){ss_jQuery(this).addClass('moreshort').append('<span class="morebutton"></span>');});
	ss_jQuery('.morebutton').click(function(){ss_jQuery(this).parent().toggleClass('moreshort'); ss_jQuery(this).toggleClass('lessbutton','morebutton');});
[-- IF AJAX_Add_To_Cart --](function(){ss_jQuery.ssAddToCart({displayPopUp : function(data){$('span.miniCount').html(''+data.quantity);if(data.product_info != undefined){var p=data.product_info;if(p.graphic != undefined)$('#cart-popup-prod-img').html($('<img>').attr('src',p.graphic));else $('#cart-popup-prod-img img').remove();$('#cart-popup-prod-name').html(p.name);$('#cart-popup-prod-sku').html(p.sku);$('#cart-popup-prod-price').html('[-- STORE.CurrencySymbol --]' + p.price);$('#cart-popup-prod-quantity').html('[-- STORE.Qty --]: ' + p.quantity); if(p.options != undefined)$('#cart-popup-prod-options').html(p.options); else $('#cart-popup-prod-options').html(''); if(p.customer_text != undefined)$('#cart-popup-prod-customer_text').html(p.customer_text); else $('#cart-popup-prod-customer_text').html('');}$('#cart-popup-total').html(data.ordertotal);if(data.quantity > 1){$('#cart-popup-total-quantity').html(data.quantity + ' [-- STORE.Items --]')}else{$('#cart-popup-total-quantity').html(data.quantity + ' [-- STORE.Item --]')}if(data.error_messages.length > 0)$('#cart-popup-messages').html(data.error_messages.join('<br><br>')).addClass('warning_text');else $('#cart-popup-messages').html('').removeClass('warning_text');$('#cart-popup').modal({backdrop: 'static', keyboard: false,show:true});},beforeAddToCart:function(){}})})();[-- END_IF --]
	if (type == "page" && url !="") {localStorage.setItem('brdb',url);sessionStorage.setItem('lastpage',window.location.href);}
	if (carousel == "carousel") {ss_jQuery('#bxcarousel').bxSlider({[-- IF STORE.SlidePager "text_overlay" --]pagerCustom: '#bx-pager',[-- ELSE_IF STORE.SlidePager "text_below" --]pagerCustom: '#bx-pager',[-- ELSE_IF STORE.SlidePager "no-pager" --]pager: false,[-- END_IF --] mode: "fade", [-- IF STORE.SlideAutoStart? "on" --]auto: true, pause: [-- Store.SlideFrequency --],[-- END_IF --] tickerHover: true, autoHover: true, touchEnabled:false});}
	if (cross == "crosssell") {ss_jQuery('#crossSell').bxSlider({minSlides: 3, maxSlides: 8, slideWidth: 200, slideMargin: 10, pager:false, touchEnabled:false});}
	if (type == "more") {
#ss_jQuery('.jqzoom').jqzoom({zoomType: 'standard', lens:true, preloadImages: false, zoomType: 'innerzoom', alwaysOn:false, title:false});
		sessionStorage.setItem('lastpage',window.location.href);}
[-- IF SC_Registration --]$('#mySignIn').modal({backdrop:'static',keyboard:false,show:false});
ss_jQuery('#sign-in-links,#signin').ss_CRSignIn({sign_in_form_id:'sign-in-form',
	show_sign_in_callback:function(link_id){
		$('div.cr_warning').html('').hide();
		$('#mySignIn').modal('show');
	},
	post_sign_in_callback:function(data){
		var v=data.cr_status;
		$('div.cr_warning').html('').hide();
		$('#mySignIn').modal('hide');
		$('#accountHolder').html(data.cr_name);
		$('#sign-in-links').hide();
		$('#user-links').attr("style","display:inline-block");
	},
	error_message_callback:function(error){
		$('div.cr_warning').html(error).show();
	}
});[-- END_IF --]
}

haha - 2025