PageSourceSearch

https://mmcp.ru/cache/js/5b2219c2ddf629014788900edc278ae6.js

js mmcp.ru collected 2026-10-08 05:40:53 UTC 3,737 bytes, 40 lines download raw bytes

1$(document).on('click','.slide_button',function(){var width_menu=$('.slide_menu').width();if($('.slide').hasClass('slide_left')){$('body').css('overflow-x','none');$('.slide').animate({left:'0px'},"slow",function(){$('.slide').removeClass('slide_left');$('.slide_menu').css('left','-'+width_menu+'px')})}else{$('body').css('overflow-x','hidden');$('.slide_menu').css('left','0').css('height',$(document).height()+'px');$('.slide').addClass('slide_left');$('.slide').animate({left:width_menu+'px'},"slow",function(){})}});diafan_ajax.success.shop_wish=function(form,response){var self=form.parents('.js_shop').find('.shop-like');if(!response.is_wish){self.removeClass("active").removeClass("animate")
2self.children('i').removeClass("fa-heart")
3self.children('i').addClass("fa-heart-o")}else{self.addClass("animate");self.children('i').removeClass("fa-heart-o")
4self.children('i').addClass("fa-heart")
5setTimeout(function(){self.addClass("active")},50)}}
6var init_items_scroller=function(){$(".items-scroller").each(function(index,element){var time=700;var itemsPane=$(this);var itemPerScreen=itemsPane.data("item-per-screen");var controls=itemsPane.data("controls");if(!itemPerScreen)
7itemPerScreen=5;var currentItem=0;var totalItems=$(this).find(".item").length;$(".control-next"+"."+controls).click(function(e){e.preventDefault();currentItem=currentItem+itemPerScreen;if(currentItem>totalItems-1||totalItems-1-currentItem<itemPerScreen)
8currentItem=totalItems-1;itemsPane.scrollTo('.item:eq('+currentItem+')',time)});$(".control-prev"+"."+controls).click(function(e){e.preventDefault();if(currentItem==totalItems-1)
9currentItem=currentItem-itemPerScreen*2+1;else currentItem=currentItem-itemPerScreen;if(currentItem<=0){currentItem=0;itemsPane.scrollTo(0,time)}else itemsPane.scrollTo('.item:eq('+currentItem+')',time)})})}
10var init_mp_slider=function(){var delay=4000;var slides=$("#mp-slider .slide");var dotsContainer=$('<div class="dots-container"> </div>');$("#mp-slider").append(dotsContainer);slides.each(function(index,element){var dot=$('<span class="dot">&nbsp;</div>');dotsContainer.append(dot);dot.click(function(e){if(slideShowInterval)
11clearInterval(slideShowInterval);showSlide(index)})});var dots=$("#mp-slider .dots-container .dot");dots.eq(0).addClass("active");slides.eq(0).addClass("active");var slideShowInterval=setInterval(function(){var n=$("#mp-slider .slide.active").next().index();if(n>slides.length-1)
12n=0;showSlide(n)},delay)
13function showSlide(n){slides.removeClass("active");dots.removeClass("active");slides.eq(n).addClass("active");dots.eq(n).addClass("active")}
14function showNext(){echo($("#mp-slider .slide.active").next().index())}}
15function init_main(){if(init_items_scroller&&typeof window.init_items_scroller=='function'&&$(".items-scroller").length){window.init_items_scroller();window.init_items_scroller=null}
16if(init_mp_slider&&typeof window.init_mp_slider=='function'&&$("#mp-slider").length){window.init_mp_slider();window.init_mp_slider=null}}
17init_main();$(document).ready(function(e){});function echo(text){var debugWindow=$("#debug-window");if(!debugWindow.length){debugWindow=$('<div id="debug-window"></div>');$("body").append($('<div id="debug-window-container"></div>').append(debugWindow)).append("<style>\
18		 #debug-window-container{ \
19			position: fixed; \
20			right: 10px; \
21			bottom:0px; \
22			width: 390px; \
23			height: 200px; \
24			z-index: 100000;\
25			background-color: #000; \
26			display: table-cell; \
27			padding: 20px; \
28			overflow:scroll; \
29		} \
30		\
31		\
32		#debug-window {\
33			position:absolute;\
34			bottom:0;\
35			padding:20px;\
36		}\
37		 \
38	</style>")}
39$("#debug-window").append(text+"<br>")}
40function getRandomInt(min,max){return Math.floor(Math.random()*(max-min+1))+min}

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.