1//function DisplayImage(DisplayMetal) { 2// $(".MetalGallery").hide(); 3// $("." + DisplayMetal).show(); 4// ValidateInputs(); 5//} 6 7function CustomProductComplete(BasketId) { 8 if (localStorage.BasketId == undefined) { 9 localStorage.setItem('BasketId', BasketId); 10 11 } 12} 13 14 15 16$(document).ready(function () { 17 var BasketId = $(".BasketId").val(); 18 if (BasketId != undefined) { 19 if (BasketId.length > 0) { 20 $(".basketBtn").css("color", "#2e9813"); 21 } 22 else { 23 $(".basketBtn").css("color", "#000000"); 24 } 25 } 26}); 27function SetLocalStorageToInput() { 28 29 if (localStorage.BasketId != undefined) { 30 $(".BasketId").val(localStorage.BasketId); 31 } 32} 33 34 35$('.CustomProduct select:not(.SizeDropdown), .CustomProduct input[type="radio"], .CustomProduct textarea ').change(function () { 36 $(".UpdatePrice").click(); 37}); 38 39function ValidateInputs() { 40 41 if ($("input[name='metal']:checked").length > 0) { 42 $(".MetalValidation").hide(); 43 return true; 44 } 45 else { 46 $(".MetalValidation").show(); 47 return false; 48 } 49 50} 51 52//$(".finance-box").click(function () { 53// $(this).find("input[type='radio']").prop("checked", true); 54// $(this).closest(".row").find(".finance-box").removeClass("selected"); 55// $(this).addClass("selected"); 56 57// if ($(".finance-box").filter(".selected").length == 2) { 58// $(".CalculateFinance").click(); 59// } 60//}); 61 62 63$(document).ready(function () { 64 CountBasketItems(); 65}); 66 67function CountBasketItems() { 68 if (localStorage.BasketId != undefined) { 69 $.ajax({
70 url: "/Umbraco/Surface/Product/GetBasketCount?BasketId=" + localStorage.BasketId, 71 cache: false, 72 dataType: "json", 73 success: function (data) { 74 if (data > 0) { 75 $(".basketBtn").css("color", "#2e9813"); 76 } 77 else { 78 $(".basketBtn").css("color", "#000000"); 79 } 80 } 81 }); 82 } 83} 84 85function LoadBasketFlyout() { 86 if (localStorage.BasketId != undefined) { 87 var formData = { 88 'BasketId': localStorage.BasketId 89 }; 90 $.ajax({ 91 url: "/Umbraco/Surface/Product/GetBasketFlyout/", 92 type: "post", 93 data: formData, 94 success: function (d) { 95 $(".BasketFlyout").html(d); 96 } 97 }); 98 } 99 LazyLoad(); 100} 101 102$('.MetalSelect').click(function () { 103 $(".MetalSelect").removeClass("SelectedMetal"); 104 $(this).addClass("SelectedMetal"); 105}); 106 107//data-RingDesign-filter 108//data-RingSetting-filter 109 110//DataFilterRingSettings 111//DataFilterRingDesign 112$('.DataFilterRingSettings').click(function () { 113 var ClickedItem = $(this).attr("data-name"); 114 $(".RingSetting").hide(); 115 116 $('.RingSetting').each(function () { 117 var FilterText = $(this).attr("data-RingSetting-filter").split(","); 118 var i; 119 for (i = 0; i < FilterText.length; i++) { 120 if (FilterText[i] == ClickedItem) { 121 $(this).show(); 122 } 123 } 124 }); 125}); 126 127$('.DataFilterRingDesign').click(function () { 128 var ClickedItem = $(this).attr("data-name"); 129 $(".RingDesign").hide(); 130 var RingShape = $('.SelectedShapeInputDisplay:checked').val(); 131 $('.RingDesign').each(function () { 132 var FilterText = $(this).attr("data-RingDesign-filter").split(","); 133 var FilterTextShape = $(this).attr("data-RingShape-filter").split(","); 134 var i; 135 var ii; 136 for (i = 0; i < FilterText.length; i++) { 137 if (FilterText[i] == ClickedItem) { 138 139 for (ii = 0; ii < FilterTextShape.length; ii++) { 140 if (FilterTextShape[ii] == RingShape) { 141 $(this).show(); 142 } 143 } 144 } 145 } 146 147 148 }); 149}); 150
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.