1function addToWishlist(element,style_id,siz=null,attr1=null,attr2=null,qty=1,cart_pos=null){ 2 let random_num = Math.floor(Math.random()*101); 3 let queryString = 'action=ADDTOWISHLIST&style_id='+style_id+'&siz='+siz+'&attr1='+attr1+'&attr2='+attr2+'&qty='+qty; 4 if(cart_pos !== null){ 5 queryString += '&array_pos='+cart_pos+'&goto=/viewcart.cfm'; 6 } 7 if(!$(element).hasClass('favoriteActive')){ 8 $.get('/index.cfm?'+queryString+'&random='+random_num,{},function(data){ 9 if(data['STATUS'] == 'SUCCESS'){ 10 showModal('Success','<div clas=="alert alert-success">' + data['MESSAGE'] + '</div>','',false); 11 $(element).addClass('favoriteActive') 12 } else { 13 showModal('','<div clas=="alert alert-danger">' + data['MESSAGE'] + '</div>','',false); 14 } 15 },'JSON'); 16 } 17 18 19} 20 21 22function emailWishList(commit=false){ 23 24 let random_num = Math.floor(Math.random()*101); 25 26 27 if(commit){ 28 let email = $('#wishListEmail').val(); 29 $('#wishListEmail').parent().find('.alert').remove(); 30 if(!siteValidation.email('wishListEmail')){ 31 return false; 32 } 33 $.post('/index.cfm?action=EMAILWISHLIST&random='+random_num,{email_WL_to:email,ajax:1},function(data){ 34 if(data['STATUS'] == 'SUCCESS'){ 35 showModal('Success','<div class="alert alert-success">' + data['MESSAGE'] + '</div>','',false); 36 } else { 37 showModal('Error','<div class="alert alert-danger">' + data['MESSAGE'] + '</div>','',false); 38 } 39 },'JSON'); 40 }else{ 41 42 let wishListForm = `<div class="form-field"> 43 <label>Email:</label><input type="text" value="" id="wishListEmail" class="form-control"/> 44 <button class="btn btn-primary w-100 mt-2" onClick="emailWishList(true)">Send Email</button> 45 </div>`; 46 showModal('Email Wishlist',wishListForm,'',false); 47 } 48 49 50} 51 52function printWishlist(containerId){ 53 var divContents = document.getElementById(containerId).innerHTML; 54 var a = window.open('', '', 'height=500, width=500');
55 a.document.write('<html>'); 56 a.document.write('<body>'); 57 a.document.write(divContents); 58 a.document.write('</body></html>'); 59 a.document.close(); 60 a.print(); 61} 62 63 64function eMailWLModal(){ 65 66}
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.