');jQuery('#hd .primary-navigation-area a.social.MobileMenuOnly').each(function(){ jQuery(this).attr('class',''); jQuery('#hd .primary-navigation-area #primary-nav-social').append(this);});jQuery('#hd .UtilitySection.UtilityAuthenticationLink').each(function(){ jQuery('#hd .primary-navigation-area #primary-nav-additional').append(jQuery(this).clone().attr('class',''));});jQuery('#hd .primary-navigation-area a.UtilityAuthenticationLink.MobileMenuOnly').each(function(){ jQuery(this).attr('class',''); jQuery('#hd .primary-navigation-area #primary-nav-additional').append(this);}); });
'; //add it to the body of the page - by default it is hidden jQuery('body').append(tempCartHtml); //get the page name var path = window.location.pathname; var page = path.split("/").pop(); //determine whether to show the cart message on load if (Number(tempProdCount) > 0 && page != "Cart.aspx") { //show the message if the count is 1 or more and its not the cart page jQuery('#tempCartMsg').show(); jQuery('li.nav-cart').show(); } else { //else force hide the message (just in case) jQuery('#tempCartMsg').hide(); jQuery('li.nav-cart').hide(); }; //determine whether to show the cart message on mousemove (before the postback) jQuery('body').mousemove(function () { //get the cart product count var tempProdCount = jQuery('[ID$=NavigationLink] > span > span').children('span').eq(1).children('span').eq(0).text(); if (Number(tempProdCount) > 0 && page != "Cart.aspx") { //update the count in the message jQuery('#tempCount').text(tempProdCount); //show the message if the count is 1 or more and its not the cart page jQuery('#tempCartMsg').show(); jQuery('li.nav-cart').show(); } else { //else force hide the message (just in case) jQuery('#tempCartMsg').hide(); jQuery('li.nav-cart').hide(); }; }); //determine whether to show the cart message on mouseup (before the postback) jQuery('[ID$=AddToCart]').mouseup(function () { //get the cart product count var tempProdCount = jQuery('[ID$=NavigationLink] > span > span').children('span').eq(1).children('span').eq(0).text(); if (Number(tempProdCount) > 0 && page != "Cart.aspx") { //update the count in the message jQuery('#tempCount').text(tempProdCount); //show the message if the count is 1 or more and its not the cart page jQuery('#tempCartMsg').show(); } else { //else force hide the message (just in case) jQuery('#tempCartMsg').hide(); }; }); jQuery(".nav-aux-cart").each(function () { if (jQuery('.nav-aux-cart span.cartFull').length) { jQuery(this).show(); } else { jQuery(this).hide(); } });});