PageSourceSearch

https://oscar-hotel.uz/local/templates/oscar/js/animation.js?08102026065628

js oscar-hotel.uz collected 2026-10-09 00:56:37 UTC 8,491 bytes, 208 lines download raw bytes

1$(document).ready(function(){
2	let cookie_loader = BX.getCookie('HIDE_PRELOADER');
3	if(cookie_loader == 'Y'){
4		$('.preloader').detach();
5	}
6});
7
8$(window).on('load', function(){
9	setTimeout(function(){
10		if($('.preloader').width() != undefined){
11			$('.preloader').addClass('loaded');
12		}
13	}, 1000);
14
15	setTimeout(function(){
16		if($('.preloader').width() != undefined){
17			$('.preloader').detach();
18			$('body').addClass('loading');
19		}
20	}, 3000);
21
22	setTimeout(function(){
23		let cookie_loader = BX.getCookie('HIDE_PRELOADER');
24		console.log(cookie_loader);
25		if($('body').hasClass('no-loader') || cookie_loader == 'Y'){
26			$('body').addClass('loading');
27		} else {
28			BX.setCookie('HIDE_PRELOADER', 'Y', {expires: 86400});
29		}
30	}, 100);
31
32	if($('.anim-block').width() != undefined){
33        $('.anim-block').viewportChecker({
34            classToAdd: 'animated',
35            offset: "15%"
36        });
37    }
38
39    $(document).on('click', 'a', function(e){
40    	let this_location = $(this).attr('href');
41			if(this_location != '' && this_location != '#' && this_location != 'javascript:void(0)'){
42				if($(this).data('fancybox')){
43				} else {
44					e.preventDefault();
45					$('body').addClass('location-window');
46					setTimeout(function(){
47						window.location.href = this_location;
48					}, 600);
49				}
50			}
51    });
52
53    if($('.room_galery [data-fancybox]').width() != ''){
54    	$('.room_galery [data-fancybox]').each(function(){
55    		$(this).append('<span class="round-hover"></span>');
56    	});
57    }
58
59    if($('.slider_detail [data-fancybox]').width() != ''){
60    	$('.slider_detail [data-fancybox]').each(function(){
61    		$(this).append('<span class="round-hover"></span>');
62    	});
63    }    
64
65    $('.room_galery [data-fancybox], .slider_detail [data-fancybox]').mousemove(function(e){
66	    var pos = $(this).offset();
67	    var elem_left = pos.left;
68	    var elem_top = pos.top;
69	    var Xinner = e.pageX - elem_left - 35;
70	    var Yinner = e.pageY - elem_top - 35;
71
72	    if(Xinner < 0){
73	    	Xinner = 0;
74	    }
75
76	    if(Yinner < 0){
77	    	Yinner = 0;
78	    }
79
80	    $(this).find('.round-hover').css({'top':Yinner + 'px', 'left':Xinner + 'px'});
81	    //console.log("X: " + Xinner + " Y: " + Yinner); // вывод результата в консоль
82	  });
83
84    if($(window).width() > 768){
85	    if($('.element_image_block').width() != undefined){
86	    	$('.element_image_block').each(function(){
87	    		let width_before = $(this).children('img').width();
88	    		let height_before = $(this).children('img').height();
89	    		let bg_before = $(this).children('img').attr('src');
90	    		let img_width = $(this).find('.float').find('img').width();
91	    		let img_height = $(this).find('.float').find('img').height();
92	    		let img_bg = $(this).find('.float').find('img').attr('src');
93
94	    		$(this).append('<span class="image_hover" style="width: '+width_before+'px; height: '+height_before+'px; background-image: url(\''+bg_before+'\');"></span>');
95	    		$(this).find('.float').append('<span class="image_hover__img" style="width: '+img_width+'px; height: '+img_height+'px; background-image: url(\''+img_bg+'\');"></span>');
96	    	});
97	    }
98
99	    if($('.banner_top').width() != undefined){
100	    	$('.banner_top').each(function(){
101	    		let width_before = $(this).width();
102	    		let height_before = $(this).height() + 145 + 72 + 10;
103	    		let bg_before = $(this).data('image');
104
105	    		$(this).append('<span class="image_hover" style="width: '+width_before+'px; height: '+height_before+'px; background-image: url(\''+bg_before+'\');"></span>');
106	    	});
107	    }
108
109	    if($('.image_description_block').width() != undefined){
110	    	$('.image_description_block').each(function(){
111	    		let width_before = $(this).find('.description_block_inner').width();
112	    		let height_before = $(this).find('.description_block_inner').height();
113	    		let bg_before = $(this).find('.description_block_inner').data('image');
114
115	    		let img_width = $(this).find('.float').width();
116	    		let img_height = $(this).find('.float').height();
117	    		let img_bg = $(this).find('.float').attr('src');
118
119	    		$(this).append('<span class="image_hover" style="width: '+width_before+'px; height: '+height_before+'px; background-image: url(\''+bg_before+'\');"></span>');
120	    		$(this).append('<span class="image_hover__img" style="width: '+img_width+'px; height: '+img_height+'px; background-image: url(\''+img_bg+'\');"></span>');
121	    	});
122	    }
123
124	    if($('.main_slider_inner').width() != undefined){
125	    	$('.main_slider_inner').find('.item_image').each(function(){
126	    		let width_before = $(this).width();
127	    		let height_before = $(this).height();
128	    		let bg_before = $(this).data('image');
129
130	    		$(this).append('<span class="image_hover" style="width: '+width_before+'px; height: '+height_before+'px; background-image: url(\''+bg_before+'\');"></span>');
131	    	});
132	    }
133
134	    if($('.room_galery').width() != undefined){
135	    	$('.room_galery').find('[data-fancybox]').each(function(){
136	    		let width_before = $(this).find('img').width();
137	    		let height_before = $(this).find('img').height();
138	    		let bg_before = $(this).find('img').attr('src');
139
140	    		$(this).append('<span class="image_hover" style="width: '+width_before+'px; height: '+height_before+'px; background-image: url(\''+bg_before+'\');"></span>');
141	    	});
142	    }
143
144
145	    if($('.slider_detail').width() != undefined){
146	    	$('.slider_detail').find('[data-fancybox]').each(function(){
147	    		let width_before = $(this).find('img').width();
148	    		let height_before = $(this).find('img').height();
149	    		let bg_before = $(this).find('img').attr('src');
150
151	    		$(this).append('<span class="image_hover" style="width: '+width_before+'px; height: '+height_before+'px; background-image: url(\''+bg_before+'\');"></span>');
152	    	});
153	    }
154
155	    if($('.services_image_row').width() != undefined){
156	    	$('.services_image_row').find('.image_element').each(function(){
157	    		let width_before = $(this).find('img').width();
158	    		let height_before = $(this).find('img').height();
159	    		let bg_before = $(this).find('img').attr('src');
160	    		$(this).append('<span class="image_hover" style="width: '+width_before+'px; height: '+height_before+'px; background-image: url(\''+bg_before+'\');"></span>');
161	    	});
162
163	    	$('.services_image_row').find('.sub_column').each(function(){
164	    		let width_before = $(this).find('img').width();
165	    		let height_before = $(this).find('img').height();
166	    		let bg_before = $(this).find('img').attr('src');
167	    		$(this).append('<span class="image_hover" style="width: '+width_before+'px; height: '+height_before+'px; background-image: url(\''+bg_before+'\');"></span>');
168	    	});
169	    }
170
171	    if($('.subtitle-image').width() != undefined){
172	    	$('.subtitle-image').each(function(){
173	    		let width_before = $(this).find('img').width();
174	    		let height_before = $(this).find('img').height();
175	    		let bg_before = $(this).find('img').attr('src');
176	    		$(this).append('<span class="image_hover" style="width: '+width_before+'px; height: '+height_before+'px; background-image: url(\''+bg_before+'\');"></span>');
177	    	});
178	    }
179
180	    if($('.launge_description').width() != undefined){
181	    	$('.launge_description').find('.img').each(function(){
182	    		let width_before = $(this).width();
183	    		let height_before = $(this).height();
184	    		let bg_before = $(this).data('image');
185	    		$(this).append('<span class="image_hover" style="width: '+width_before+'px; height: '+height_before+'px; background-image: url(\''+bg_before+'\');"></span>');
186	    	});
187
188	    	$('.launge_description').find('.float').each(function(){
189	    		let width_before = $(this).width();
190	    		let height_before = $(this).height();
191	    		let bg_before = $(this).data('image');
192	    		$(this).append('<span class="image_hover" style="width: '+width_before+'px; height: '+height_before+'px; background-image: url(\''+bg_before+'\');"></span>');
193	    	});
194	    }
195
196	    if($('.attractions_element').width() != undefined){
197	    	$('.attractions_element').each(function(){
198	    		let width_before = $(this).find('.image_block').width();
199	    		let height_before = $(this).find('.image_block').height();
200	    		let bg_before = $(this).find('.image_block').data('image');
201	    		$(this).find('.image_block').append('<span class="image_hover" style="width: '+width_before+'px; height: '+height_before+'px; background-image: url(\''+bg_before+'\');"></span>');
202	    	});
203	    }
204
205	    
206	    
207	}
208});

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.