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/publish/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/jackjohn/public_html/publish/cj.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').submit()}else {alert('Oops, you still need to select an option ')};return false;});
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 showMiniCart(er) {var cjmc=0;
  if(lsTest() === true){var cjmn=localStorage.getItem('cjmn'); if(cjmn == null) {var cjmc="0";var cjmt="0.00";var cjmn="";var cjmq="";var cjmp="";var cjmi="";}else {var cjmc=localStorage.getItem('cjmc');var cjmt=localStorage.getItem('cjmt');var cjmn=localStorage.getItem('cjmn');var cjmq=localStorage.getItem('cjmq');var cjmp=localStorage.getItem('cjmp');var cjmi=localStorage.getItem('cjmi');}}
  else {var cjm=getCookie('cjm');if (cjm == null) {var cjmc="0";var cjmt="0.00";var cjmn="";var cjmq="";var cjmp="";var cjmi="";}else{var cjms=cjm.split('|');var cjmc=cjms[0];var cjmt=cjms[1];var cjmn=cjms[2];var cjmq=cjms[3];var cjmp=cjms[4];var cjmi=cjms[5];}};
  var mc = "<h5 class=\"p-3 pt-4 text-center\"><button onclick=\"ss_jQuery('#cj-miniex').removeClass('togV')\">&times;<\/button>Your Shopping Cart<\/h5>";
  if (er) {mc=mc+"<div id='minierror'>"+er+"<\/div>"}
  if (cjmc==0) {mc=mc+"<div class=\"p-3 text-center bold\">Your shopping cart is empty.<\/div>"}
  else {
    var mcn = cjmn.split(","), mcp = cjmp.split(','), mcq = cjmq.split(","), mci = cjmi.split(",");
    for (i = 0; i < mcn.length; i++) {
      if (mci[i].length>10){mc=mc+"<div><div class=\"row py-3 small\"><div class=\"col col-5 text-center\"><img src=\""+mci[i]+"\" alt=\""+mcn[i].replace(/%2C/g,",")+"\"></div><div class=\"col col-7 text-left\">"+mcn[i].replace(/%2C/g,",")+"<span>$"+mcp[i]+"<\/span><small>Qty: "+mcq[i]+"<\/small><\/div><\/div><\/div>";}
      else {mc=mc+"<div><div class=\"row py-3 small\"><div class=\"col col-12 text-left\">"+mcn[i].replace(/%2C/g,",")+"<span>$"+mcp[i]+"<\/span><small>Qty: "+mcq[i]+"<\/small><\/div><\/div><\/div>";}
    }
  }
  mc=mc+"<div class=\"p-3 small text-right\">Subtotal "+cjmt+"<\/div><div class=\"p-4 text-center\"><a href=\"http://jackjohnson.com/cgi-bin/sc/order.cgi?storeid=*1a45344730ad4b7a0889727fd88aa5&amp;function=show\" class=\"btn btn-primary\">View Cart<\/a>";
  ss_jQuery("#cj-miniex").html(mc);
  ss_jQuery("#cj-miniex").addClass("togV");
  function hideMiniCart(){ss_jQuery("#cj-miniex").removeClass("togV");}
  if (ss_jQuery(window).width()>768){var mcTimeout = setTimeout(hideMiniCart, 3000)}
  function resetmcActive(){clearTimeout(mcTimeout);mcTimeout = setTimeout(hideMiniCart, 100)}
  ss_jQuery("#cj-miniex").hover(function(){clearTimeout(mcTimeout)});
  ss_jQuery("#cj-miniex").mouseleave(function(){resetmcActive()});
}
function togV(id,el){ss_jQuery("togV").removeClass("togV");ss_jQuery("togA").removeClass("togA");ss_jQuery("#"+id).toggleClass("togV");return false;}
ss_jQuery("#cj-sTog").click(function(e){ss_jQuery(this).toggleClass("active"); ss_jQuery("#cj-searchex").toggleClass("togV"); e.preventDefault(); return false});
ss_jQuery("#cj-navTog").click(function(){ss_jQuery("#cj-nav").toggleClass("togV")});
ss_jQuery("#cj-navTogC").click(function(){ss_jQuery("#cj-nav").removeClass("togV")});
ss_jQuery("ul#ShopSite li a").click(function(e){if (ss_jQuery("body").hasClass("mobile") && ss_jQuery(this).parent().children().length==2) {ss_jQuery(this).parent().toggleClass("togV");e.preventDefault();return false;}});
ss_jQuery("div.proddesc").click(function(){ss_jQuery(this).toggleClass("text-truncate")});
function mobileNav() {ss_jQuery("body").addClass("mobile").removeClass("desktop"); if (lsTest() === true) {localStorage.setItem('cjns','mobile');localStorage.setItem('cjnw',ss_jQuery(window).width())}else {setCookie('cjn','mobile|'+ss_jQuery(window).width(),30)}}
function desktopNav(cjncw) {ss_jQuery("body").addClass("desktop").removeClass("mobile");if (lsTest() === true) {localStorage.setItem('cjns','desktop');localStorage.setItem('cjnw',ss_jQuery(window).width());sessionStorage.setItem('cjnc',cjncw);}else {setCookie('cjn','desktop|'+ss_jQuery(window).width()+'|'+cjncw,1)}}
function newSize() {
  if (cjnc) {
    if (cjnc>ss_jQuery("#cj-hn").width()||(ss_jQuery(window).width()<992)) {mobileNav()} else {desktopNav(cjnc)}
  }
  else if (ss_jQuery(window).width()<992) {mobileNav()}
  else {
    ss_jQuery("body").addClass("desktop").removeClass("mobile");
    var liwidth = 0;ss_jQuery("#ShopSite").children().each(function () {liwidth += ss_jQuery(this).width()});
    sessionStorage.setItem('cjnc',liwidth);
    if (liwidth>ss_jQuery("#cj-hn").width()) {mobileNav()} else {desktopNav(liwidth)}
  }
}
$(window).resize(debouncer(function() {newSize()}));
newSize();
$(".carousel").on("swiperight",function(){$(this).carousel('prev')});
$(".carousel").on("swipeleft",function(){$(this).carousel('next')});

haha - 2025