1$(document).ready(function () { 2 3 4 5 // swipe на carousel 6 $(".product-carousel .carousel-inner").swipe({ 7 //Generic swipe handler for all directions 8 swipeLeft: function (event, direction, distance, duration, fingerCount) { 9 $(this).parent().carousel('next'); 10 }, 11 swipeRight: function () { 12 $(this).parent().carousel('prev'); 13 }, 14 //Default is 75px, set to 0 for demo so any distance triggers swipe 15 threshold: 0 16 }); 17 18 19 20 /** 21 * Ðобавление ÑоваÑа в коÑÐ·Ð¸Ð½Ñ 22 */ 23 $(document).on("click", ".js_btn_add_basket_top", function () { 24 var $element = $(this); 25 26 BX.ajax.loadJSON( 27 $element.attr("href"), 28 {ajax_basket: "Y"}, 29 function (arResult) { 30 if ('object' !== typeof arResult) { 31 return false; 32 } 33 34 successful = (arResult.STATUS === 'OK'); 35 if (successful) { 36 // Ð¢Ð¾Ð²Ð°Ñ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½ в коÑÐ·Ð¸Ð½Ñ 37 $('#basket_message').modal("show"); 38 39 $element.removeClass("btn-tf-primary") 40 .addClass("btn-tf-success") 41 .find("span").text("в коÑзине"); 42 $element.find("i").addClass("fa fa-check").removeClass("fa-spin fa-cog fa-shopping-cart"); 43 44 $element.removeClass("js_btn_add_basket_top").attr("href", "/personal/cart"); 45 46 popupBasket.refresh(true, true, true); 47 } 48 49 }, 50 function (arResult) { 51 alert("ÐÑоизоÑла оÑибка, пожалÑйÑÑа ÑвÑжиÑеÑÑ Ñ Ð°Ð´Ð¼Ð¸Ð½Ð¸ÑÑÑаÑоÑом"); 52 } 53 ); 54 return false; 55 }); 56 57}); 58 59if (window.frameCacheVars !== undefined) { 60 BX.addCustomEvent("onFrameDataReceived", function (json) { 61 initPlugin(); 62 }); 63} else { 64 //lazyload 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.