PageSourceSearch

https://www.eurob.org/wp-content/themes/cityguide-eurob/design/js/portfolio-item.js?ver=7.0.2

js eurob.org collected 2026-10-02 07:42:48 UTC 2,124 bytes, 59 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			jQuery('.detail-thumbnail-slider').find('ul').delay(500).animate({'opacity':1}, 500, function(){
29				jQuery('.detail-thumbnail-slider').find('.loading').fadeOut('fast');
30				jQuery.waypoints('refresh');
31			});
32		},
33		onSlideAfter: function($slideElement, oldIndex, newIndex){
34			var container = jQuery($slideElement.prevObject[oldIndex]);
35			var element = container.find('iframe');
36			if(typeof element.attr('id') != "undefined"){
37				container.html(container.html());
38			}
39		}
40	});
41
42	jQuery(document).bind('cbox_open', function(){
43		// set opacity to 0
44		jQuery('.detail-thumbnail-slider ul').parent().css({'opacity': '0'});
45	});
46
47	jQuery(document).bind('cbox_closed', function(){
48		var portfolioSliderStyle = jQuery('.detail-thumbnail-slider ul').attr('style');
49		jQuery('.detail-thumbnail-slider ul').delay(50).queue(function(next){
50			jQuery('.detail-thumbnail-slider ul').removeAttr('style');
51			next();
52		});
53		jQuery('.detail-thumbnail-slider ul').delay(25).queue(function(next){
54			jQuery('.detail-thumbnail-slider ul').attr('style', portfolioSliderStyle);
55			jQuery('.detail-thumbnail-slider ul').parent().css({'opacity': '1'});
56			next();
57		});
58	});
59}

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.