1jQuery(document).ready(function($){ 2 $(".gift-wrap-option").click(function(){ 3 $(".gift-wrap-option").removeClass("selected"); 4 $(this).addClass("selected"); 5 }); 6 7 jQuery("#confirm-giftwrap").click(function(){ 8 if(jQuery(".gift-wrap-option.selected").length<1){ 9 alert("Please select a gift wrap first"); 10 return; 11 } 12 confirmGiftWrap(); 13 }); 14}); 15 16 17function confirmGiftWrap(){ 18 //Close pop up 19 jQuery.fancybox.close(); 20 var giftWarpName=jQuery(".gift-wrap-option.selected").attr("data-wrapname"); 21 var giftWarpCost=jQuery(".gift-wrap-option.selected").attr("data-wrapunitprice"); 22 jQuery(".customcharge-box#giftwrap-box input").attr("checked", true); 23 jQuery("#giftwrap-box").attr("data-chosenwrap",giftWarpName); 24 jQuery("#giftwrap-box").attr("data-wrapunitprice",giftWarpCost); 25 jQuery("#giftwrap-label").html(giftWarpName+":" ); 26 27 var giftUnitPrice=giftWarpCost; 28 giftUnitPrice=giftUnitPrice.toLocaleString(undefined,{minimumFractionDigits: 2, maximumFractionDigits: 2}); 29 jQuery("#giftwrapprice-block").html("£"+giftUnitPrice); 30 31 32 jQuery("#giftwrap-box").attr("data-buywrap","true"); 33 // Show giftwrap 34 jQuery("#giftwrap-box").addClass("visible"); 35 //The quantity equals the number of pens 36 updateTotal(); 37 38}
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.