PageSourceSearch

https://placeart.ru/wp-content/themes/dollah/js/hoot.theme.js?ver=1.0.2

js placeart.ru collected 2026-10-08 00:55:23 UTC 3,876 bytes, 113 lines download raw bytes

1jQuery(document).ready(function($) {
2	"use strict";
3
4	/*** Init lightslider ***/
5
6	if( 'undefined' == typeof dollahData || 'undefined' == typeof dollahData.lightSlider || 'enable' == dollahData.lightSlider ) {
7		if (typeof $.fn.lightSlider != 'undefined') {
8			$(".lightSlider").each(function(i){
9				var self = $(this),
10					settings = {
11						item: 1,
12						slideMove: 1, // https://github.com/sachinchoolur/lightslider/issues/118
13						slideMargin: 0,
14						mode: "slide",
15						auto: true,
16						loop: true,
17						slideEndAnimatoin: false,
18						slideEndAnimation: false,
19						pause: 5000,
20						adaptiveHeight: true,
21						},
22					selfData = self.data(),
23					responsiveitem = (parseInt(selfData.responsiveitem)) ? parseInt(selfData.responsiveitem) : 2,
24					breakpoint = (parseInt(selfData.breakpoint)) ? parseInt(selfData.breakpoint) : 960,
25					customs = {
26						item: selfData.item,
27						slideMove: selfData.slidemove,
28						slideMargin: selfData.slidemargin,
29						mode: selfData.mode,
30						auto: selfData.auto,
31						loop: selfData.loop,
32						slideEndAnimatoin: selfData.slideendanimation,
33						slideEndAnimation: selfData.slideendanimation,
34						pause: selfData.pause,
35						adaptiveHeight: selfData.adaptiveheight,
36						};
37				$.extend(settings,customs);
38				if( settings.item >= 2 ) { /* Its a carousel */
39					settings.responsive =  [ {	breakpoint: breakpoint,
40												settings: {
41													item: responsiveitem,
42													}
43												}, ];
44				}
45				self.lightSlider(settings);
46			});
47		}
48	}
49
50	/*** Superfish Navigation ***/
51
52	if( 'undefined' == typeof dollahData || 'undefined' == typeof dollahData.superfish || 'enable' == dollahData.superfish ) {
53		if (typeof $.fn.superfish != 'undefined') {
54			$('.sf-menu').superfish({
55				delay: 500,						// delay on mouseout 
56				animation: {height: 'show'},	// animation for submenu open. Do not use 'toggle' #bug
57				animationOut: {opacity:'hide'},	// animation for submenu hide
58				speed: 200,						// faster animation speed 
59				speedOut: 'fast',				// faster animation speed
60				disableHI: false,				// set to true to disable hoverIntent detection // default = false
61			});
62		}
63	}
64
65	/*** Responsive Navigation ***/
66
67	if( 'undefined' == typeof dollahData || 'undefined' == typeof dollahData.menuToggle || 'enable' == dollahData.menuToggle ) {
68		$( '.menu-toggle' ).click( function() {
69			if ( $(this).parent().is('.mobilemenu-fixed') )
70				$(this).parent().toggleClass( 'mobilemenu-open' );
71			else
72				$( this ).siblings( '.wrap, .menu-items' ).slideToggle();
73			$( this ).toggleClass( 'active' );
74		});
75		$('body').click(function (e) {
76			if (!$(e.target).is('.nav-menu *, .nav-menu'))
77				$( '.menu-toggle.active' ).click();
78		});
79	}
80
81	/*** Header Serach ***/
82
83	var $headerSearchContainer = $('.header-aside-search');
84	if ($headerSearchContainer.length) {
85		$('.header-aside-search i.fa-search').on('click', function(){
86			$headerSearchContainer.addClass('expand');
87			$headerSearchContainer.find('input.searchtext').focus();
88		});
89		$('.header-aside-search .js-search-placeholder').on('click', function(){
90			$headerSearchContainer.removeClass('expand');
91		});
92		$(document).click(function(e) {
93			if (!$headerSearchContainer.is(e.target) && $headerSearchContainer.has(e.target).length === 0)
94				$headerSearchContainer.removeClass('expand');
95		});
96	}
97
98	/*** Responsive Videos : Target your .container, .wrapper, .post, etc. ***/
99
100	if( 'undefined' == typeof dollahData || 'undefined' == typeof dollahData.fitVids || 'enable' == dollahData.fitVids ) {
101		if (jQuery.fn.fitVids)
102			$("#content").fitVids();
103	}
104
105	/*** Post Grid, List ***/
106
107	$('.post-grid-widget .post-gridunit-image, .posts-list-widget .posts-listunit-image').each(function(){
108		var self = $(this),
109			bgimg = self.find('img').attr('src');
110		self.css('background-image', 'url("' + bgimg + '")' ).addClass('imgloaded');
111	});
112
113});

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.