1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{ 2let window = _____WB$wombat$assign$function_____("window"); 3let self = _____WB$wombat$assign$function_____("self"); 4let document = _____WB$wombat$assign$function_____("document"); 5let location = _____WB$wombat$assign$function_____("location"); 6let top = _____WB$wombat$assign$function_____("top"); 7let parent = _____WB$wombat$assign$function_____("parent"); 8let frames = _____WB$wombat$assign$function_____("frames"); 9let opens = _____WB$wombat$assign$function_____("opens"); 10// Include: https://worldsmile.org/cache/jsn_metro2_pro/f8c1178d888233e99300af14318a52a1.js 11// Include: https://worldsmile.org/cache/jsn_metro2_pro/df40c8fb129fae939849244f1a21d205.js 12// Include: https://worldsmile.org/cache/jsn_metro2_pro/5523816129757d43180361b05a9f486e.js 13 14/* FILE: /plugins/jsnimageshow/themeclassic/assets/js/galleria/themes/classic/galleria.classic.js */ 15/** 16* Galleria Classic Theme 2012-08-08 17* http://galleria.io 18* 19* Licensed under the MIT license 20* https://raw.github.com/aino/galleria/master/LICENSE 21* 22*/ 23(function($) { 24/*global jQuery, Galleria */ 25Galleria.addTheme({ 26name: 'classic', 27author: 'Galleria', 28css: 'galleria.classic.css', 29defaults: { 30transition: 'slide', 31thumbCrop: 'height', 32_toggleInfo: true 33}, 34init: function(options) { 35Galleria.requires(1.28, 'This version of Classic theme requires Galleria 1.2.8 or later'); 36this.addElement('info-link','info-close'); 37this.append({ 38'info' : ['info-link','info-close'] 39}); 40var info = this.$('info-text'), 41touch = Galleria.TOUCH, 42click = touch ? 'touchstart' : 'click'; 43if (options.showCounter == false) { 44this.$('loader,counter').show().css('opacity', 0.4); 45}else 46{ 47this.$('loader,counter').show().css('opacity', 1); 48} 49if (! touch ) { 50if(options.showImagenavValue == false) 51{ 52this.addIdleState( this.get('image-nav-left'), { left:-50 }); 53this.addIdleState( this.get('image-nav-right'), { right:-50 }); 54} 55if (options.showCounter == false) { 56this.addIdleState(this.get('counter'), {opacity: 0}); 57} 58else 59{ 60this.addIdleState(this.get('counter'), {opacity: 1}); 61} 62} 63/******************** Joomlashine dev BEGIN ********************/ 64this.$('info-link, info-close').hide(); 65this.addElement('info-image-link'); 66this.append({ 67'info-text' : ['info-image-link'] 68}); 69if (options.thumbnails) 70{ 71this._stageHeight = this._stageHeight - options.thumbHeight; 72} 73if (options.thumbnails) 74{ 75if(options.thumbPosition == 'top') 76{ 77var tmpStageHeight = this._stageHeight*5/100; 78var top = options.thumbHeight + 15 + tmpStageHeight; 79this.$('stage').css({top: top, bottom: tmpStageHeight}); 80this.rescale(); 81} 82if (options.thumbPosition == 'bottom') 83{ 84var tmpStageHeight = this._stageHeight*5/100; 85var top = tmpStageHeight; 86var bottom = options.thumbHeight + 15 + tmpStageHeight; 87this.$('stage').css({top: top, bottom: bottom}); 88this.rescale(); 89} 90} 91if(!options.thumbnails) 92{ 93this.$('thumbnails-container').hide(); 94} 95if (options.imageCrop) 96{ 97var width = this.$( 'container' ).width(); 98this.$('stage').css({top: 0, bottom: 0, left:0, right:0}); 99if (!options.thumbnails) 100{ 101this.rescale(width, options.height); 102} 103else 104{ 105var height = options.height - options.thumbHeight - 10; 106this.rescale(width, height); 107var top = options.thumbHeight + 10; 108if (options.thumbPosition == 'top') 109{ 110this.$('stage').css({top: top}); 111} 112} 113} 114/******************** Joomlashine dev END ********************/ 115/******************** Disabbled By Joomlashine BEGIN ********************/ 116/*if ( options._toggleInfo === true ) { 117info.bind( click, function() { 118info.toggle(); 119}); 120} else { 121info.show(); 122this.$('info-link, info-close').hide(); 123}*/ 124/******************** Disabbled By Joomlashine END ********************/ 125this.bind('thumbnail', function(e) { 126if (! touch ) { 127$(e.thumbTarget).css('opacity', 0.6).parent().hover(function() { 128$(this).not('.active').children().stop().fadeTo(100, 1); 129}, function() { 130$(this).not('.active').children().stop().fadeTo(400, 0.6); 131}); 132if ( e.index === this.getIndex() ) { 133$(e.thumbTarget).css('opacity',1); 134} 135} else { 136$(e.thumbTarget).css('opacity', this.getIndex() ? 1 : 0.6); 137} 138}); 139this.bind('loadstart', function(e) { 140if (!e.cached) { 141this.$('loader').show().fadeTo(200, 0.4); 142} 143this.$('info').toggle( this.hasInfo() ); 144$(e.thumbTarget).css('opacity',1).parent().siblings().children().css('opacity', 0.6); 145}); 146this.bind('loadfinish', function(e) { 147this.$('loader').fadeOut(200); 148/******************** Joomlashine dev BEGIN ********************/ 149var index = this.getIndex(); 150var infoImageLink = this.$('info-image-link'); 151var dataLength = this.getDataLength(); 152if (options.showImageLink) 153{ 154infoImageLink.html(this._data[index].link); 155} 156else 157{ 158infoImageLink.hide(); 159} 160if (!options.loop) 161{ 162var tmpDataLength = dataLength - 1; 163if (tmpDataLength == index) 164{ 165this.pause(); 166} 167} 168if(!options.infoPanelShowTitle) 169{ 170this.$('info-title').hide(); 171} 172if(!options.infoPanelShowDescription) 173{ 174this.$('info-description').hide(); 175}
176if(options.infoPanelShowTitle || options.infoPanelShowDescription || options.showImageLink) 177{ 178this.$('info-text').show(); 179} 180else 181{ 182this.$('info-text').hide(); 183} 184/******************** Joomlashine dev END********************/ 185}); 186if ($(window).width() < 1024) 187{ 188$(window).trigger('resize'); 189} 190} 191}); 192}(jsnThemeClassicjQuery));; 193 194}
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.