1/*коÑзина*/ 2/*ÑпоÑÐ¾Ð±Ñ Ð´Ð¾ÑÑавки*/ 3jQuery(document).ready(function ($) { 4 /*Ð¿Ð¾Ð»Ñ Ð²Ð²Ð¾Ð´Ð° даннÑÑ */ 5 $('#billto_inputdiv input').each(function(){ 6 var titleInput = $(this).attr('placeholder'); 7 var fotInput = $(this).attr('id'); 8 $(this).before("<label class='col-lg-3 col-md-3 col-sm-3 control-label'></label>"); 9 $(this).prev('label').attr({'for':fotInput}).html(titleInput); 10 $(this).removeAttr('placeholder').addClass('form-control'); 11 }); 12 /*кÑпон в коÑзине*/ 13 $('#coupon_code + span input').addClass('button-default'); 14 /*оÑоÑмление заказа Ñ ÑегиÑÑÑаÑией*/ 15 $('#user_fields_div input').each(function(){ 16 $(this).wrap('<div class="form-group"></div>'); 17 var titleInput = $(this).attr('placeholder'); 18 var fotInput = $(this).attr('id'); 19 $(this).before("<label class='col-lg-2 col-md-3 col-sm-3 control-label'></label>"); 20 $(this).prev('label').attr({'for':fotInput}).html(titleInput); 21 $(this).removeAttr('placeholder').addClass('form-control'); 22 }); 23 $('#logindiv input').each(function(){ 24 $(this).wrap('<div class="form-group"></div>'); 25 var titleInput = $(this).attr('placeholder'); 26 var fotInput = $(this).attr('id'); 27 $(this).before("<label class='col-lg-2 col-md-3 col-sm-3 control-label'></label>"); 28 $(this).prev('label').attr({'for':fotInput}).html(titleInput); 29 $(this).removeAttr('placeholder').addClass('form-control'); 30 }); 31 $('#logindiv .login a').addClass('button-default'); 32 33 /*бÑÑÑÑÑй пÑоÑмоÑÑ */ 34 $('a.quickview').click(function(event){ 35 event.preventDefault(); 36 $.fancybox.showActivity(); 37 $.fancybox({ 38 href: $(this).attr('href'), 39 type: 'iframe', 40 width: 800, 41 height: 600, 42 autoScale: true, 43 centerOnScroll: true, 44 onClosed: function(){ 45 if(localStorage.getItem('addtocart')){ 46 jQuery('#vmCartModule').updateVirtueMartCartModule(); 47 } 48 }, 49 onStart: function(){ 50 localStorage.removeItem('addtocart'); 51 $('#fancybox-content').addClass('load'); 52 }, 53 onCleanup: function(){ 54 $('#fancybox-content').removeClass('load'); 55 } 56 }); 57 }); 58 $('html.component input[name="addtocart"]').click(function(){ 59 localStorage.setItem('addtocart', true); 60 }); 61});
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.