PageSourceSearch

https://fashionnet.ru/wp-content/themes/directory2/design/js/portfolio-item.js?ver=7.0.7

js fashionnet.ru collected 2026-10-09 00:14:38 UTC 2,337 bytes, 64 lines download raw bytes

1
2function portfolioSingleToggles(){
3	jQuery('.local-toggles.type-accordion').accordion({ heightStyle: "content" });
4}
5
6function portfolioSingleEasySlider(ratio){
7	var pRatio = ratio.split(':');
8	var width = jQuery('.detail-thumbnail-slider').width();
9	var height = (width / parseInt(pRatio[0])) * parseInt(pRatio[1]);
10
11	jQuery('.detail-thumbnail-slider ul li iframe').each(function(){
12		jQuery(this).attr({'width': width, 'height': height});
13	});
14
15	var portfolioSingleEasySlider = jQuery('.detail-thumbnail-slider ul').bxSlider({
16		pagerCustom: ".easy-slider-pager",
17		useCSS: false,
18		adaptiveHeight: true,
19		nextText: "",
20		prevText: "",
21		onSliderLoad: function(currentIndex){
22			/*var width = jQuery('.detail-thumbnail-slider ul li:first').width();
23			var height = (width / parseInt(pRatio[0])) * parseInt(pRatio[1]);
24			jQuery('.detail-thumbnail-slider ul li iframe').each(function(){
25				jQuery(this).attr({'width': width, 'height': height});
26			});*/
27
28			// prevent clonned elements from being included into colorbox frame
29			jQuery('.detail-thumbnail-slider').find('li.bx-clone a.cboxElement').each(function(){
30				jQuery(this).removeClass('cboxElement');
31			});
32
33			jQuery('.detail-thumbnail-slider').find('ul').delay(500).animate({'opacity':1}, 500, function(){
34				jQuery('.detail-thumbnail-slider').find('.loading').fadeOut('fast');
35				jQuery.waypoints('refresh');
36			});
37		},
38		onSlideAfter: function($slideElement, oldIndex, newIndex){
39			var container = jQuery($slideElement.prevObject[oldIndex]);
40			var element = container.find('iframe');
41			if(typeof element.attr('id') != "undefined"){
42				container.html(container.html());
43			}
44		}
45	});
46
47	jQuery(document).bind('cbox_open', function(){
48		// set opacity to 0
49		jQuery('.detail-thumbnail-slider ul').parent().css({'opacity': '0'});
50	});
51
52	jQuery(document).bind('cbox_closed', function(){
53		var portfolioSliderStyle = jQuery('.detail-thumbnail-slider ul').attr('style');
54		jQuery('.detail-thumbnail-slider ul').delay(50).queue(function(next){
55			jQuery('.detail-thumbnail-slider ul').removeAttr('style');
56			next();
57		});
58		jQuery('.detail-thumbnail-slider ul').delay(25).queue(function(next){
59			jQuery('.detail-thumbnail-slider ul').attr('style', portfolioSliderStyle);
60			jQuery('.detail-thumbnail-slider ul').parent().css({'opacity': '1'});
61			next();
62		});
63	});
64}

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.