1 2; /* Start:"a:4:{s:4:"full";s:93:"/local/templates/techno/components/bitrix/catalog.section/tf.alfamag/script.js?17665699622091";s:6:"source";s:78:"/local/templates/techno/components/bitrix/catalog.section/tf.alfamag/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 3$(document).ready(function () { 4 5 6 7 // swipe на carousel 8 $(".product-carousel .carousel-inner").swipe({ 9 //Generic swipe handler for all directions 10 swipeLeft: function (event, direction, distance, duration, fingerCount) { 11 $(this).parent().carousel('next'); 12 }, 13 swipeRight: function () { 14 $(this).parent().carousel('prev'); 15 }, 16 //Default is 75px, set to 0 for demo so any distance triggers swipe 17 threshold: 0 18 }); 19 20 21 22 /** 23 * Ðобавление ÑоваÑа в коÑÐ·Ð¸Ð½Ñ 24 */ 25 $(document).on("click", ".js_btn_add_basket_top", function () { 26 var $element = $(this); 27 28 BX.ajax.loadJSON( 29 $element.attr("href"), 30 {ajax_basket: "Y"}, 31 function (arResult) { 32 if ('object' !== typeof arResult) { 33 return false; 34 } 35 36 successful = (arResult.STATUS === 'OK'); 37 if (successful) { 38 // Ð¢Ð¾Ð²Ð°Ñ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½ в коÑÐ·Ð¸Ð½Ñ 39 $('#basket_message').modal("show"); 40 41 $element.removeClass("btn-tf-primary") 42 .addClass("btn-tf-success") 43 .find("span").text("в коÑзине"); 44 $element.find("i").addClass("fa fa-check").removeClass("fa-spin fa-cog fa-shopping-cart"); 45 46 $element.removeClass("js_btn_add_basket_top").attr("href", "/personal/cart"); 47 48 popupBasket.refresh(true, true, true); 49 } 50 51 }, 52 function (arResult) { 53 alert("ÐÑоизоÑла оÑибка, пожалÑйÑÑа ÑвÑжиÑеÑÑ Ñ Ð°Ð´Ð¼Ð¸Ð½Ð¸ÑÑÑаÑоÑом"); 54 } 55 ); 56 return false; 57 }); 58 59}); 60 61if (window.frameCacheVars !== undefined) { 62 BX.addCustomEvent("onFrameDataReceived", function (json) { 63 initPlugin(); 64 }); 65} else { 66 //lazyload 67 68} 69/* End */ 70; 71; /* Start:"a:4:{s:4:"full";s:109:"/local/templates/techno/components/bitrix/catalog.section.list/tf.catalog.main.bottom/script.js?1766569962520";s:6:"source";s:95:"/local/templates/techno/components/bitrix/catalog.section.list/tf.catalog.main.bottom/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/ 72$(document).ready(function () { 73 $(".js_show_toggle_carousel").click(function () { 74 if (!$(this).hasClass("open")) { 75 $("#carousel-sections-main-bottom").find(".good-item").addClass("open"); 76 $(this).addClass("open"); 77 } else { 78 $("#carousel-sections-main-bottom").find(".good-item").removeClass("open"); 79 $(this).removeClass("open"); 80 } 81 82 }); 83 84 if ($("#js_subscribe_modal").length > 0) { 85 $('#js_subscribe_modal').modal("show"); 86 } 87}); 88/* End */ 89;; /* /local/templates/techno/components/bitrix/catalog.section/tf.alfamag/script.js?17665699622091*/ 90; /* /local/templates/techno/components/bitrix/catalog.section.list/tf.catalog.main.bottom/script.js?1766569962520*/
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.