PageSourceSearch

https://websiteservice.ru/theme/Flat-image-arsenic/js/custom.js

js websiteservice.ru collected 2026-09-29 18:46:19 UTC 2,482 bytes, 111 lines download raw bytes

1var $ = jQuery.noConflict();
2/** slider **/
3$('#slider .cycle-slideshow').cycle({
4		slides: 'div',
5		speed:1000,
6		timeout:3000,
7		pauseOnHover: true,
8		next: '#next',
9		prev: '#prev',
10		pager: '.cycle-pager',
11		loader: true,
12		swipe: true
13});
14/** carousel **/
15function buildCarousel(visibleSlides) {
16    $('.carousel').cycle({
17        fx: 'carousel',
18		slides: 'div',
19		speed:1000,
20		timeout:3000,
21		pauseOnHover: true,
22		next: '.next',
23		prev: '.prev',
24		swipe: true,
25		carouselVisible: visibleSlides,
26		carouselFluid: true
27    });
28}
29function initCycle() {
30    var width = $(document).width();
31    var visibleSlides = 4;
32
33    if ( width < 390 ) {visibleSlides = 1}
34    else if(width < 600 ) {visibleSlides = 2}
35	else if(width < 960 ) {visibleSlides = 3}
36    else {visibleSlides = 4};
37
38    buildCarousel(visibleSlides);
39}
40
41function reinit_cycle() {
42    var width = $(window).width();
43    var destroyCarousel = $('.carousel').cycle('destroy');
44
45    if ( width < 400 ) {destroyCarousel;reinitCycle(1);} 
46    else if ( width > 400 && width < 700 ) {destroyCarousel; reinitCycle(3);} 
47    else {destroyCarousel;reinitCycle(4);}
48}
49
50function reinitCycle(visibleSlides) {
51    buildCarousel(visibleSlides);
52}
53var reinitTimer;
54$(window).resize(function() {
55    clearTimeout(reinitTimer);
56    reinitTimer = setTimeout(reinit_cycle, 100);
57});
58
59$(document).ready(function(){
60    initCycle();    
61});
62/** fancybox **/
63$('.zoom').fancybox({
64	padding : 2,
65	openEffect  : 'elastic',
66	closeEffect : 'elastic',
67	prevEffect : 'fade',
68	nextEffect : 'fade',
69	titlePosition : 'over',
70	helpers : {
71		title : {
72			type : 'over'
73		},
74		buttons	: {}
75	},
76
77});
78/** Mixitup **/
79$(function(){
80  $('.mixitup').mixItUp();
81});
82/** tabs **/
83$(document).ready(function() {
84	$(".tab_content").hide(); 
85	$("ul.tabs li:first").addClass("active").show(); 
86	$(".tab_content:first").show(); 
87	$("ul.tabs li").click(function() {
88		$("ul.tabs li").removeClass("active"); 
89		$(this).addClass("active"); 
90		$(".tab_content").hide(); 
91		var activeTab = $(this).find("a").attr("href"); 
92		$(activeTab).fadeIn(); 
93		return false;
94	});
95});
96/** go top **/
97$(window).scroll(function() {
98	if($(this).scrollTop() > 300) {
99        $('#gotoTop').css('display','block');
100		$('#gotoTop').stop().animate({opacity: 1});
101	} else {
102		$('#gotoTop').stop().animate({opacity: 0}, function(){
103			$(this).css('display','none');
104        });
105	}
106});
107$('#gotoTop').click(function() {
108	$('body,html').animate({scrollTop:0},400);
109    return false;
110});
111

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.