Changeset 2806215
- Timestamp:
- 10/28/2022 02:43:31 AM (3 years ago)
- Location:
- wonderplugin-slider-lite/trunk
- Files:
-
- 1 deleted
- 5 edited
-
app/wonderplugin-slider-creator.js (modified) (2 diffs)
-
engine/html5boxplayer.swf (deleted)
-
engine/wonderpluginslider.js (modified) (9 diffs)
-
engine/wonderpluginsliderskins.js (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
wonderpluginslider.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wonderplugin-slider-lite/trunk/app/wonderplugin-slider-creator.js
r2783785 r2806215 1 1 /** Wonderplugin Slider Lite 2 * Copyright 20 19Magic Hills Pty Ltd All Rights Reserved2 * Copyright 2022 Magic Hills Pty Ltd All Rights Reserved 3 3 * Website: http://www.wonderplugin.com 4 * Version 13. 44 * Version 13.5 5 5 */ 6 6 (function($){$(document).ready(function(){$(".wonderplugin-select-mediaimage").click(function(){var textId=$(this).data("textid");var displayId=$(this).data("displayid");var inputName=$(this).data("inputname");var media_uploader=wp.media.frames.file_frame=wp.media({title:"Select Image",library:{type:"image"},button:{text:"Select Image"},multiple:false});media_uploader.on("select",function(event){var selection=media_uploader.state().get("selection");var attachment=selection.first().toJSON();if(attachment.type== … … 166 166 lightboxcloseonoverlay:true,lightboxvideohidecontrols:false,lightboxtitlestyle:"bottom",lightboximagepercentage:75,lightboxdefaultvideovolume:1,lightboxoverlaybgcolor:"#000",lightboxoverlayopacity:0.9,lightboxbgcolor:"#fff",lightboxtitleprefix:"%NUM / %TOTAL",lightboxtitleinsidecss:"color:#fff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left;",lightboxtitleoutsidecss:"color:#fff; font-size:18px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:center; margin: 8px;", 167 167 lightboxdescriptioninsidecss:"color:#fff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 0px 0px; padding: 0px;",lightboxdescriptionoutsidecss:"color:#fff; font-size:14px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:center; margin:8px; padding: 0px;",lightboxautoslide:false,lightboxslideinterval:5E3,lightboxshowtimer:true,lightboxtimerposition:"bottom",lightboxtimerheight:2,lightboxtimercolor:"#dc572e",lightboxtimeropacity:1, 168 lightboxshowplaybutton: true,lightboxalwaysshownavarrows:false,lightboxbordersize:8,lightboxshowtitleprefix:true,lightboxborderradius:0,lightboxshowsocial:false,lightboxsocialposition:"position:absolute;top:100%;right:0;",lightboxsocialpositionsmallscreen:"position:absolute;top:100%;right:0;left:0;",lightboxsocialdirection:"horizontal",lightboxsocialbuttonsize:32,lightboxsocialbuttonfontsize:18,lightboxsocialrotateeffect:true,lightboxshowfacebook:true,lightboxshowtwitter:true,lightboxshowpinterest:true,168 lightboxshowplaybutton:false,lightboxalwaysshownavarrows:false,lightboxbordersize:8,lightboxshowtitleprefix:true,lightboxborderradius:0,lightboxshowsocial:false,lightboxsocialposition:"position:absolute;top:100%;right:0;",lightboxsocialpositionsmallscreen:"position:absolute;top:100%;right:0;left:0;",lightboxsocialdirection:"horizontal",lightboxsocialbuttonsize:32,lightboxsocialbuttonfontsize:18,lightboxsocialrotateeffect:true,lightboxshowfacebook:true,lightboxshowtwitter:true,lightboxshowpinterest:true, 169 169 showsocial:false,socialmode:"mouseover",socialposition:"position:absolute;top:8px;right:8px;",socialpositionsmallscreen:"position:absolute;top:8px;right:8px;",socialdirection:"horizontal",socialbuttonsize:32,socialbuttonfontsize:18,socialrotateeffect:true,showfacebook:true,showtwitter:true,showpinterest:true,pauseonmouseover:false,donotinit:false,addinitscript:false,triggerresize:false,triggerresizedelay:100,removeinlinecss:true,shownav:true,navthumbresponsivemode:"samesize",navthumbstyle:"imageonly", 170 170 navthumbcolumn:5,navthumbtitleheight:20,navthumbtitlewidth:120,navshowfeaturedarrow:true,navthumbresponsive:false,navthumbmediumsize:900,navthumbmediumwidth:64,navthumbmediumheight:64,navthumbmediumcolumn:4,navthumbmediumtitleheight:18,navthumbmediumtitlewidth:120,navthumbsmallsize:600,navthumbsmallwidth:48,navthumbsmallheight:48,navthumbsmallcolumn:3,navthumbsmalltitleheight:18,navthumbsmalltitlewidth:120,navshowfeaturedarrow:true,navthumbnavigationstyle:"arrow",navthumbnavigationarrowimage:"carouselarrows-32-32-0.png", -
wonderplugin-slider-lite/trunk/engine/wonderpluginslider.js
r2783785 r2806215 1 1 /** Wonderplugin Slider Lite 2 * Copyright 20 19Magic Hills Pty Ltd All Rights Reserved2 * Copyright 2022 Magic Hills Pty Ltd All Rights Reserved 3 3 * Website: http://www.wonderplugin.com 4 * Version 13. 44 * Version 13.5 5 5 */ 6 6 (function($){$.fn.asHTML5VideoControls=function(skinFolder,parentInst,videoElem,hideControls,hidePlayButton,defaultVolume,fullscreenNativeControls,html5VideoNoDownload,skinImages){var isTouch="ontouchstart"in window;var eStart=isTouch?"touchstart":"mousedown";var eMove=isTouch?"touchmove":"mousemove";var eCancel=isTouch?"touchcancel":"mouseup";var eClick="click";var BUTTON_SIZE=32;var BAR_HEIGHT=isTouch?48:36;var hideControlsTimerId=null;var hideVolumeBarTimeoutId=null;var sliderDragging=false;var isFullscreen= … … 36 36 onVideoPlay);$videoObj.on("pause",onVideoPause);$videoObj.on("ended",onVideoEnded);$videoObj.on("timeupdate",onVideoUpdate);$videoObj.on("progress",onVideoProgress)}catch(e){}}})(jQuery); 37 37 (function($){$.fn.ashtml5lightbox=function(options){var inst=this;inst.options=$.extend({freelink:"https://html5box.com/",pushwindowhistory:false,defaultvideovolume:1,mutevideo:false,playsinline:false,autoclose:false,autoclosedelay:0,resizedelay:100,insideiframe:false,iframetopmargin:-1,iframesamedomain:false,autoresizecontent:true,defaultwidth:960,defaultheight:540,usedefaultsizeforcontent:false,usedefaultwidthforcontent:true,usedefaultheightforcontent:false,mediumbreakpoint:800,smallbreakpoint:600, 38 preload:true,preloadallonpageload:false,preloadalldelay:5E3,autoplay:true,loopvideo:false,html5player:true,responsive:true,nativehtml5controls:false,videohidecontrols:false, autoplayhtml5onmobile:true,nativecontrolsonfirefox:false,nativecontrolsonie:false,nativecontrolsoniphone:true,nativecontrolsonipad:true,nativecontrolsonandroid:true,nativecontrolsonfullscreen:true,nativecontrolsnodownload:true,noresizecallback:true,imagekeepratio:true,maxheight:false,elemautoheight:false,contentkeepratio:false,39 useflashonie9:true,useflashonie10:true,useflashonie11:false,useflashformp4onfirefox:false,transition:"none",transitionduration:400,enteranimation:"",enteranimationduration:"500ms",exitanimation:"",animationduration:"1s",enablepdfjs:false,pdfjsengine:"",pdfengineurlparam:"file",openpdfinnewtaboniphone:false,openpdfinnewtabonipad:false,googleanalyticsaccount:"",ga4account:"",enablega4:true,arrowloop:true,showall:false,userelforgroup:true,shownavigation:true,thumbwidth:96,thumbheight:72,thumbgap:4,thumbtopmargin:12,40 thumb bottommargin:12,thumbborder:1,thumbbordercolor:"transparent",thumbhighlightbordercolor:"#fff",thumbopacity:1,navbuttonwidth:32,hidenavigationonmobile:false,hidenavigationonipad:false,navbgcolor:"rgba(0,0,0,0.2)",shownavcontrol:true,navcontrolimage:"lightbox-navcontrol.png",hidenavdefault:false,overlaybgcolor:"#000",overlayopacity:0.9,bgcolor:"#fff",bordersize:8,borderradius:0,bordermargin:16,bordertopmargin:48,barautoheight:true,barheight:64,smallscreenheight:415,responsivebarheight:false,barheightonsmallheight:64,41 notkeepratioonsmallheight:false,bordertopmarginsmall:36,loadingwidth:48,loadingheight:48,loadingusefont:true,loadingfontname:"mh-icon-spin5",loadingfontcolor:"#222",loadingfontbg:"transparent",resizespeed:400,fadespeed:0,jsfolder:"",skinsfoldername:"",loadingimage:"lightbox-loading.gif",nextimage:"lightbox-next.png",previmage:"lightbox-prev.png",closeimage:"lightbox-close.png",playvideoimage:"lightbox-playvideo.png",titlebgimage:"lightbox-titlebg.png",navarrowsprevimage:"lightbox-navprev.png",navarrowsnextimage:"lightbox-navnext.png",42 close pos:"outside",closeusefont:false,arrowsusefont:false,navusefont:false,navarrowsalwaysshowontouch:true,showarrowsbottomonsmallscreen:true,navarrowsbottomscreenwidth:479,outsidearrowspos:"middle",closeonoverlay:true,limitfocus:true,navarrowspos:"inside",alwaysshownavarrows:false,showplaybutton:true,playimage:"lightbox-play.png",pauseimage:"lightbox-pause.png",playimagesize:32,fullscreenmode:false,fullscreencloseimage:"lightbox-close-fullscreen.png",fullscreennextimage:"lightbox-next-fullscreen.png",43 fullscreen previmage:"lightbox-prev-fullscreen.png",fullscreennomargin:false,fullscreenmodeonsmallscreen:false,fullscreennomarginonsmallscreen:false,fullscreensmallscreenwidth:800,fullscreenbgcolor:"transparent",fullscreenbordersize:0,fullscreentextinside:false,fullscreentextoutside:true,fullscreennotransition:true,fullscreenloadingfontcolor:"#eee",videobgcolor:"#000",html5videoposter:"",showtitle:true,titlestyle:"bottom",titleinsidecss:"color:#fff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 8px;",38 preload:true,preloadallonpageload:false,preloadalldelay:5E3,autoplay:true,loopvideo:false,html5player:true,responsive:true,nativehtml5controls:false,videohidecontrols:false,enableclick:false,enablespacekey:false,autoplayhtml5onmobile:true,nativecontrolsonfirefox:false,nativecontrolsonie:false,nativecontrolsoniphone:true,nativecontrolsonipad:true,nativecontrolsonandroid:true,nativecontrolsonfullscreen:true,nativecontrolsnodownload:true,noresizecallback:true,imagekeepratio:true,maxheight:false,elemautoheight:false, 39 contentkeepratio:false,transition:"none",transitionduration:400,enteranimation:"",enteranimationduration:"500ms",exitanimation:"",animationduration:"1s",enablepdfjs:false,pdfjsengine:"",pdfengineurlparam:"file",openpdfinnewtaboniphone:false,openpdfinnewtabonipad:false,googleanalyticsaccount:"",ga4account:"",enablega4:true,arrowloop:true,showall:false,userelforgroup:true,shownavigation:true,thumbwidth:96,thumbheight:72,thumbgap:4,thumbtopmargin:12,thumbbottommargin:12,thumbborder:1,thumbbordercolor:"transparent", 40 thumbhighlightbordercolor:"#fff",thumbopacity:1,navbuttonwidth:32,hidenavigationonmobile:false,hidenavigationonipad:false,navbgcolor:"rgba(0,0,0,0.2)",shownavcontrol:true,navcontrolimage:"lightbox-navcontrol.png",hidenavdefault:false,overlaybgcolor:"#000",overlayopacity:0.9,bgcolor:"#fff",bordersize:8,borderradius:0,bordermargin:16,bordertopmargin:48,barautoheight:true,barheight:64,smallscreenheight:415,responsivebarheight:false,barheightonsmallheight:64,notkeepratioonsmallheight:false,bordertopmarginsmall:36, 41 loadingwidth:48,loadingheight:48,loadingusefont:true,loadingfontname:"mh-icon-spin5",loadingfontcolor:"#222",loadingfontbg:"transparent",resizespeed:400,fadespeed:0,jsfolder:"",skinsfoldername:"",loadingimage:"lightbox-loading.gif",nextimage:"lightbox-next.png",previmage:"lightbox-prev.png",closeimage:"lightbox-close.png",playvideoimage:"lightbox-playvideo.png",titlebgimage:"lightbox-titlebg.png",navarrowsprevimage:"lightbox-navprev.png",navarrowsnextimage:"lightbox-navnext.png",closepos:"outside", 42 closeusefont:false,arrowsusefont:false,navusefont:false,navarrowsalwaysshowontouch:true,showarrowsbottomonsmallscreen:true,navarrowsbottomscreenwidth:479,outsidearrowspos:"middle",closeonoverlay:true,limitfocus:true,navarrowspos:"inside",alwaysshownavarrows:false,showplaybutton:true,playimage:"lightbox-play.png",pauseimage:"lightbox-pause.png",playimagesize:32,fullscreenmode:false,fullscreencloseimage:"lightbox-close-fullscreen.png",fullscreennextimage:"lightbox-next-fullscreen.png",fullscreenprevimage:"lightbox-prev-fullscreen.png", 43 fullscreennomargin:false,fullscreenmodeonsmallscreen:false,fullscreennomarginonsmallscreen:false,fullscreensmallscreenwidth:800,fullscreenbgcolor:"transparent",fullscreenbordersize:0,fullscreentextinside:false,fullscreentextoutside:true,fullscreennotransition:true,fullscreenloadingfontcolor:"#eee",videobgcolor:"#000",html5videoposter:"",showtitle:true,titlestyle:"bottom",titleinsidecss:"color:#fff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 8px;", 44 44 titlebottomcss:"color:#333; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left;",titleoutsidecss:"color:#fff; font-size:18px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:center; margin: 8px;",resizeleftright:true,showonmouseoverinside:false,showinsidetitleforimageonly:true,showdescription:true,descriptioninsidecss:"color:#fff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 0px 0px; padding: 0px;", 45 45 descriptionbottomcss:"color:#333; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 0px 0px; padding: 0px;",descriptionoutsidecss:"color:#fff; font-size:14px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:center; margin:8px; padding: 0px;",fullscreentitlebottomcss:"color:#fff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 8px 8px;",fullscreendescriptionbottomcss:"color:#fff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 0px 0px; padding: 0px;", 46 46 showsocialmedia:true,socialmediaposition:"position:absolute;top:8px;right:8px;",showtitleprefix:true,titleprefix:"%NUM / %TOTAL",autoslide:false,slideinterval:5E3,showtimer:true,timerposition:"bottom",timerheight:2,timercolor:"#dc572e",timeropacity:1,initvimeo:true,inityoutube:true,swipepreventdefaultonandroid:false,initsocial:false,showsocial:false,sharemediaurl:false,socialposition:"position:absolute;top:100%;right:0;",socialpositionsmallscreen:"position:absolute;top:100%;right:0;left:0;",socialdirection:"horizontal", 47 socialbuttonsize:32,socialbuttonfontsize:18,socialrotateeffect:true,showfacebook:true,showtwitter:true,showpinterest:true,showemail:true,showdownload:false,share textprefix:"Check Out This",imagepercentage:75,sidetobottomscreenwidth:479,errorwidth:280,errorheight:48,errorcss:"text-align:center; color:#ff0000; font-size:14px; font-family:Arial, sans-serif;",enabletouchswipe:true,mobileresizeevent:false,swipedistance:0,bodynoscroll:false,useabsolutepos:false,useabsoluteposonmobile:false,supportesckey:true,48 supportarrowkeys:true,showsubtitle:false,vtturl:"",vttline:-4,vttlang:"en",vttlabel:"English",showsubtitlebydefault:true,enableaudio:false,audiofile:"",audioautoplay:true,audioloop:true,audioshowonhover:true,audiobtnfullscreencss:"position:absolute;top:0;right:36px;margin:0;",audiobtnfullscreencolor:"#eee",audiobtnfullscreenbg:"transparent",audiobtncss:"position:absolute;top:0;right:0;margin:16px 16px 0 0;",audiobtncolor:"#fff",audiobtnbg:"#c92228",version:"3.3",stamp:false,freemark:"72,84,77,76,53,32,76,105,103,104,116,98,111,120,32,70,114,101,101,32,86,101,114,115,105,111,110",49 watermark:"",watermarklink:""},options);if(typeof html5lightbox_options!="undefined"&&html5lightbox_options)$.extend(inst.options,html5lightbox_options);if($("div.html5lightbox_options").length)$.each($("div.html5lightbox_options").data(),function(key,value){inst.options[key.toLowerCase()]=value});if($("div#html5lightbox_options").length)$.each($("div#html5lightbox_options").data(),function(key,value){inst.options[key.toLowerCase()]=value});if($("div#html5lightbox_general_options").length)$.each($("div#html5lightbox_general_options").data(),50 function(key,value){inst.options[key.toLowerCase()]=value}); var ELEM_TYPE=0,ELEM_HREF=1,ELEM_TITLE=2,ELEM_GROUP=3,ELEM_WIDTH=4,ELEM_HEIGHT=5,ELEM_HREF_WEBM=6,ELEM_HREF_OGG=7,ELEM_THUMBNAIL=8,ELEM_DESCRIPTION=9,ELEM_DIV=10,ELEM_ORIGINALWIDTH=11,ELEM_ORIGINALHEIGHT=12,ELEM_SOCIALMEDIA=13,ELEM_WEBLINK=14,ELEM_WEBLINKTARGET=15,ELEM_WEBLINKTEXT=16,ELEM_MEDIUMWIDTH=17,ELEM_MEDIUMHEIGHT=18,ELEM_SMALLWIDTH=19,ELEM_SMALLHEIGHT=20;inst.options.types=["IMAGE","FLASH","VIDEO","YOUTUBE","VIMEO","PDF","MP3","WEB",51 "FLV","DAILYMOTION","DIV","WISTIA","IFRAMEVIDEO"];inst.options.htmlfolder=window.location.href.substr(0,window.location.href.lastIndexOf("/")+1);inst.options.skinsfolder=inst.options.skinsfoldername;if(inst.options.skinsfolder.length>0&&inst.options.skinsfolder[inst.options.skinsfolder.length-1]!="/")inst.options.skinsfolder+="/";if(inst.options.skinsfolder.charAt(0)!="/"&&inst.options.skinsfolder.substring(0,5)!="http:"&&inst.options.skinsfolder.substring(0,6)!="https:")inst.options.skinsfolder=52 inst.options.jsfolder+inst.options.skinsfolder;var image_list=["loadingimage","nextimage","previmage","closeimage","playvideoimage","titlebgimage","navarrowsprevimage","navarrowsnextimage","navcontrolimage","playimage","pauseimage","fullscreencloseimage","fullscreennextimage","fullscreenprevimage"];for(var i=0;i<image_list.length;i++)if(inst.options[image_list[i]])if(inst.options[image_list[i]].substring(0,7).toLowerCase()!="http://"&&inst.options[image_list[i]].substring(0,8).toLowerCase()!="https://")inst.options[image_list[i]]= 53 inst.options.skinsfolder+inst.options[image_list[i]];var i;var l;var mark="";var bytes=inst.options.freemark.split(",");for(i=0;i<bytes.length;i++)mark+=String.fromCharCode(bytes[i]);inst.options.freemark=mark;var d0="hmtamgli5cboxh.iclolms";for(i=1;i<=5;i++)d0=d0.slice(0,i)+d0.slice(i+1);l=d0.length;for(i=0;i<5;i++)d0=d0.slice(0,l-9+i)+d0.slice(l-8+i);if(inst.options.htmlfolder.indexOf(d0)!=-1)inst.options.stamp=false;inst.options.flashInstalled=false;try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))inst.options.flashInstalled=54 true}catch(e){if(navigator.mimeTypes["application/x-shockwave-flash"])inst.options.flashInstalled=true}inst.options.html5VideoSupported=!!document.createElement("video").canPlayType;inst.options.isChrome=navigator.userAgent.match(/Chrome/i)!=null;inst.options.isFirefox=navigator.userAgent.match(/Firefox/i)!=null;inst.options.isOpera=navigator.userAgent.match(/Opera/i)!=null||navigator.userAgent.match(/OPR\//i)!=null;inst.options.isSafari=navigator.userAgent.match(/Safari/i)!=null;inst.options.isIE11=55 n avigator.userAgent.match(/Trident\/7/)!=null&&navigator.userAgent.match(/rv:11/)!=null;inst.options.isIE=navigator.userAgent.match(/MSIE/i)!=null&&!inst.options.isOpera;inst.options.isIE10=navigator.userAgent.match(/MSIE 10/i)!=null&&!this.options.isOpera;inst.options.isIE9=navigator.userAgent.match(/MSIE 9/i)!=null&&!inst.options.isOpera;inst.options.isIE8=navigator.userAgent.match(/MSIE 8/i)!=null&&!inst.options.isOpera;inst.options.isIE7=navigator.userAgent.match(/MSIE 7/i)!=null&&!inst.options.isOpera;56 inst.options.isIE6=navigator.userAgent.match(/MSIE 6/i)!=null&&!inst.options.isOpera;inst.options.isIE678=inst.options.isIE6||inst.options.isIE7||inst.options.isIE8;inst.options.isIE6789=inst.options.isIE6||inst.options.isIE7||inst.options.isIE8||inst.options.isIE9;inst.options.isAndroid=navigator.userAgent.match(/Android/i)!=null;inst.options.isIPad=navigator.userAgent.match(/iPad/i)!=null;inst.options.isIPhone=navigator.userAgent.match(/iPod/i)!=null||navigator.userAgent.match(/iPhone/i)!=null;57 inst.options.is IOS=inst.options.isIPad||inst.options.isIPhone;inst.options.isMobile=inst.options.isAndroid||inst.options.isIPad||inst.options.isIPhone;inst.options.isIOSLess5=inst.options.isIPad&&inst.options.isIPhone&&(navigator.userAgent.match(/OS 4/i)!=null||navigator.userAgent.match(/OS 3/i)!=null);inst.options.supportCSSPositionFixed=!inst.options.isIE6&&!inst.options.isIOSLess5;inst.options.iequirksmode=inst.options.isIE6789&&document.compatMode!="CSS1Compat";inst.options.isTouch="ontouchstart"in58 window;if(inst.options.isChrome){var match=navigator.userAgent.match(/Chrome\/([0-9]+)/);inst.options.chromeVersion=match&&match.length>=2?parseInt(match[1],10):0}if(inst.options.isAndroid){var match=navigator.userAgent.match(/Android\s([0-9\.]*)/i);inst.options.androidVersion=match&&match.length>=2?parseInt(match[1],10):-1}var v=document.createElement("video");inst.options.canplaymp4=v&&v.canPlayType&&v.canPlayType("video/mp4").replace(/no/,"");if(inst.options.isFirefox&&inst.options.nativecontrolsonfirefox||59 (inst.options.isIE6789||inst.options.isIE10||inst.options.isIE11)&&inst.options.nativecontrolsonie||inst.options.isIPhone&&inst.options.nativecontrolsoniphone||inst.options.isIPad&&inst.options.nativecontrolsonipad||inst.options.isAndroid&&inst.options.nativecontrolsonandroid)inst.options.nativehtml5controls=true;if(inst.options.isIOS||inst.options.isAndroid)inst.options.nativecontrolsonfullscreen=true;inst.options.navheight=0;inst.options.thumbgap+=2*inst.options.thumbborder;inst.options.resizeTimeout=60 -1;inst.slideTimeout=null;inst.autosliding=false;inst.existingElem=-1;inst.direction=-3;inst.elemArray=new Array;inst.options.curElem=-1;inst.defaultoptions=$.extend({},inst.options);if(inst.options.enablega4&&inst.options.ga4account&&typeof gtag!=="function"){window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag("js",new Date);gtag("config",inst.options.ga4account);$.getScript("https://www.googletagmanager.com/gtag/js?id="+encodeURIComponent(inst.options.ga4account))}if(inst.options.googleanalyticsaccount&& 61 !window._gaq){window._gaq=window._gaq||[];window._gaq.push(["_setAccount",inst.options.googleanalyticsaccount]);window._gaq.push(["_trackPageview"]);$.getScript("https://ssl.google-analytics.com/ga.js")}if(inst.options.initvimeo){var tag=document.createElement("script");tag.src=inst.options.jsfolder+"froogaloop2.min.js";var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag)}if(inst.options.inityoutube){var tag=document.createElement("script"); 62 tag.src="https://www.youtube.com/iframe_api";var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag)}if(inst.options.initsocial)$("head").append('<link rel="stylesheet" href="'+inst.options.jsfolder+'icons/css/mhfontello.css" type="text/css" />');inst.showing=false;inst.navvisible=false;inst.disableKeyOutsideOfLightbox=function(event){if($(event.target).closest("#slider-html5-lightbox").length<=0){event.preventDefault();$("#html5-lightbox-box .html5-elem-box").attr("tabindex",63 "-1").focus()}};if(inst.options.limitfocus){$(window).on("html5lightbox.lightboxopened",function(){$(document).on("keydown",inst.disableKeyOutsideOfLightbox);$("#html5-lightbox-box .html5-elem-box").attr("tabindex","-1").focus()});$(window).on("html5lightbox.lightboxclosed",function(){$(document).off("keydown",inst.disableKeyOutsideOfLightbox)})}inst.disableEscKey=function(isFullscreen){if(isFullscreen)inst.disableesckeyinfullscreen=true;else setTimeout(function(){inst.disableesckeyinfullscreen=false}, 64 1E3)};inst.supportKeyboard=function(){inst.disableesckeyinfullscreen=false;$(document).keyup(function(e){if(!inst.showing)return;if(!inst.disableesckeyinfullscreen&&inst.options.supportesckey&&e.keyCode==27)inst.finish();else if(inst.options.supportarrowkeys)if(e.keyCode==39)inst.gotoSlide(-1);else if(e.keyCode==37)inst.gotoSlide(-2)});if(inst.options.supportesckey&&document.addEventListener){document.addEventListener("MSFullscreenChange",function(){inst.disableEscKey(document.msFullscreenElement!= 65 null)},false);document.addEventListener("webkitfullscreenchange",function(){inst.disableEscKey(document.webkitIsFullScreen)},false)}};inst.supportKeyboard();inst.init=function(){inst.showing=false;inst.readData();inst.createMarkup();inst.initSlide()};inst.checkParentData=function(node,parentNode,attr){return node.data(attr)?node.data(attr):parentNode&&parentNode.data(attr)?parentNode.data(attr):null};inst.checkParentClass=function(node,parentNode,attr){var ret=null;$.each([node,parentNode],function(index,66 nodeValue){if(nodeValue&&nodeValue.attr("class")){var classList=nodeValue.attr("class").split(/\s+/);$.each(classList,function(index,className){if(className&&className.toLowerCase().indexOf("html5lightbox-"+attr+"-")==0){var names=className.split("-");if(names.length==3){var val=names[2];if(val.toLowerCase()=="true")val=true;else if(val.toLowerCase()=="false")val=false;else if(/^\d+$/.test(val))val=parseInt(val);else if(!isNaN(val))val=parseFloat(val);ret=val}}})}});return ret};inst.readNodeData= 67 function(node,parentNode){var fileType="mediatype"in node.data()?node.data("mediatype"):inst.checkType(node.attr("href"));if(fileType<0)return;var title=node.data("title")?node.data("title"):node.attr("title");if(!title&&node.find("img").length>0){var img=node.find("img");title=img.attr("title")?img.attr("title"):img.attr("alt")?img.attr("alt"):""}var group=node.data("group")?node.data("group"):inst.options.userelforgroup?node.attr("rel"):null;if(!group&&parentNode)group=parentNode.data("group")? 68 parentNode.data("group"):inst.options.userelforgroup?parentNode.attr("rel"):null;for(var i=0;i<inst.elemArray.length;i++)if(node.attr("href")==inst.elemArray[i][ELEM_HREF]){inst.elemArray[i][ELEM_TITLE]=title;inst.elemArray[i][ELEM_GROUP]=group;return}var w=inst.checkParentClass(node,parentNode,"width");var h=inst.checkParentClass(node,parentNode,"height");if(!w)w=inst.checkParentData(node,parentNode,"width");if(!h)h=inst.checkParentData(node,parentNode,"height");var mediumw=inst.checkParentClass(node,69 parentNode,"mediumwidth"); var mediumh=inst.checkParentClass(node,parentNode,"mediumheight");if(!mediumw)mediumw=inst.checkParentData(node,parentNode,"mediumwidth");if(!mediumw)mediumw=w;if(!mediumh)mediumh=inst.checkParentData(node,parentNode,"mediumheight");if(!mediumh)mediumh=h;var smallw=inst.checkParentClass(node,parentNode,"smallwidth");var smallh=inst.checkParentClass(node,parentNode,"smallheight");if(!smallw)smallw=inst.checkParentData(node,parentNode,"smallwidth");if(!smallw)smallw=mediumw;70 if(!smallh)smallh=inst.checkParentData(node,parentNode,"smallheight");if(!smallh)smallh=mediumh;var newItem=new Array(fileType,node.attr("href"),title,group,w,h,inst.checkParentData(node,parentNode,"webm"),inst.checkParentData(node,parentNode,"ogg"),inst.checkParentData(node,parentNode,"thumbnail"),inst.checkParentData(node,parentNode,"description"),null,null,null,inst.checkParentData(node,parentNode,"socialmedia"),inst.checkParentData(node,parentNode,"weblink"),inst.checkParentData(node,parentNode, 71 "weblinktarget"),inst.checkParentData(node,parentNode,"weblinktext"),mediumw,mediumh,smallw,smallh);var container=node.closest(".lightboxcontainer");if(container.length>0){if(container.find(".lightboxtitle").length>0)newItem[ELEM_TITLE]=container.find(".lightboxtitle").text();if(container.find(".lightboxdescription").length>0)newItem[ELEM_DESCRIPTION]=container.find(".lightboxdescription").text()}inst.elemArray.push(newItem)};inst.readData=function(){inst.each(function(){var self=$(this);if(this.nodeName.toLowerCase()== 72 "a"||this.nodeName.toLowerCase()=="area")inst.readNodeData(self);else self.find("a,area").each(function(){inst.readNodeData($(this),self)})})};inst.createMarkup=function(){if($(window).width()<=inst.options.fullscreensmallscreenwidth){if(inst.options.fullscreenmodeonsmallscreen){inst.options.fullscreenmode=true;if(inst.options.fullscreennomarginonsmallscreen)inst.options.fullscreennomargin=true}if(inst.options.fullscreenmode&&inst.options.fullscreennomarginonsmallscreen)inst.options.fullscreennomargin= 73 true}if(inst.options.fullscreenmode){inst.options.bgcolor=inst.options.fullscreenbgcolor;inst.options.bordersize=inst.options.fullscreenbordersize;inst.options.loadingfontcolor=inst.options.fullscreenloadingfontcolor;if(inst.options.fullscreennomargin){inst.options.bordersize=0;inst.options.bordermargin=0;inst.options.bordertopmargin=0;inst.options.bordertopmarginsmall=0}if(inst.options.fullscreentextoutside){inst.options.titlestyle="outside";inst.options.titlecss=inst.options.titleoutsidecss;inst.options.descriptioncss=74 inst.options. descriptionoutsidecss}else if(inst.options.fullscreentextinside){inst.options.titlestyle="inside";inst.options.titlecss=inst.options.titleinsidecss;inst.options.descriptioncss=inst.options.descriptioninsidecss}else{inst.options.titlebottomcss=inst.options.fullscreentitlebottomcss;inst.options.descriptionbottomcss=inst.options.fullscreendescriptionbottomcss}}inst.options.barheightoriginal=inst.options.barheight;if(inst.options.responsivebarheight){var winH=inst.getWinH();if(winH<=inst.options.smallscreenheight)inst.options.barheight=75 inst.options. barheightonsmallheight}switch(inst.options.titlestyle){case "inside":inst.options.titlecss=inst.options.titleinsidecss;inst.options.descriptioncss=inst.options.descriptioninsidecss;break;case "outside":inst.options.titlecss=inst.options.titleoutsidecss;inst.options.descriptioncss=inst.options.descriptionoutsidecss;break;default:inst.options.titlecss=inst.options.titlebottomcss;inst.options.descriptioncss=inst.options.descriptionbottomcss}inst.options.titlecss=$.trim(inst.options.titlecss);76 if(inst.options.titlecss. length>1){if(inst.options.titlecss.charAt(0)=="{")inst.options.titlecss=inst.options.titlecss.substring(1);if(inst.options.titlecss.charAt(inst.options.titlecss.length-1)=="}")inst.options.titlecss=inst.options.titlecss.substring(0,inst.options.titlecss.length-1)}inst.options.descriptioncss=$.trim(inst.options.descriptioncss);if(inst.options.descriptioncss.length>1){if(inst.options.descriptioncss.charAt(0)=="{")inst.options.descriptioncss=inst.options.descriptioncss.substring(1);77 i f(inst.options.descriptioncss.charAt(inst.options.descriptioncss.length-1)=="}")inst.options.descriptioncss=inst.options.descriptioncss.substring(0,inst.options.descriptioncss.length-1)}inst.options.errorcss=$.trim(inst.options.errorcss);if(inst.options.errorcss.length>1){if(inst.options.errorcss.charAt(0)=="{")inst.options.errorcss=inst.options.errorcss.substring(1);if(inst.options.errorcss.charAt(inst.options.errorcss.length-1)=="}")inst.options.errorcss=inst.options.errorcss.substring(0,inst.options.errorcss.length-78 1)}var styleCss=" .bodynoscroll {height:100%;overflow:hidden;}";styleCss+=" #slider-html5-lightbox .html5-text {"+inst.options.titlecss+"}";styleCss+=" #slider-html5-lightbox .html5-description {"+inst.options.descriptioncss+"}";styleCss+=" #slider-html5-lightbox .html5-error {"+inst.options.errorcss+"}";styleCss+=" .html5-prev-fullscreen {display:block;cursor:pointer;position:absolute;z-index:1;left:"+inst.options.bordersize+"px;right:auto;top:50%;transform:translate(0,-50%)} .html5-next-fullscreen {display:block;cursor:pointer;position:absolute;z-index:1;left:auto;right:"+ 79 inst.options.bordersize+"px;top:50%;transform:translate(0,-50%)}";styleCss+=" .html5-prev, .html5-next {display:none;cursor:pointer;position:absolute;z-index:1;}";styleCss+=" .html5-prev-inside {left:"+inst.options.bordersize+"px;right:auto;top:50%;transform:translate(0,-50%)} .html5-next-inside {left:auto;right:"+inst.options.bordersize+"px;top:50%;transform:translate(0,-50%)}";styleCss+=" .html5-prev-outside {left:0;right:auto;top:50%;transform:translate(-100%,-50%);} .html5-next-outside {left:auto;right:0;top:50%;transform:translate(100%,-50%);}"; 80 if(inst.options.showarrowsbottomonsmallscreen){styleCss+="@media (max-width: "+inst.options.navarrowsbottomscreenwidth+"px) {";if(inst.options.outsidearrowspos=="bottom")styleCss+=" .html5-prev-outside {display:block;top:100%;left:0;right:auto;transform:none;} .html5-next-outside {display:block;top:100%;left:auto;right:0;transform:none;}";else if(inst.options.outsidearrowspos=="bottominside")styleCss+=" .html5-prev-outside {display:block;top:100%;left:0;right:auto;transform:translate(0,-100%);} .html5-next-outside {display:block;top:100%;left:auto;right:0;transform:translate(0,-100%);}";47 socialbuttonsize:32,socialbuttonfontsize:18,socialrotateeffect:true,showfacebook:true,showtwitter:true,showpinterest:true,showemail:true,showdownload:false,shareopendelay:100,sharetextprefix:"Check Out This",extrasocialcodebefore:"",extrasocialcodeafter:"",imagepercentage:75,sidetobottomscreenwidth:479,errorwidth:280,errorheight:48,errorcss:"text-align:center; color:#ff0000; font-size:14px; font-family:Arial, sans-serif;",enabletouchswipe:true,mobileresizeevent:false,swipedistance:0,bodynoscroll:false, 48 useabsolutepos:false,useabsoluteposonmobile:false,supportesckey:true,supportarrowkeys:true,showsubtitle:false,vtturl:"",vttline:-4,vttlang:"en",vttlabel:"English",showsubtitlebydefault:true,enableaudio:false,audiofile:"",audioautoplay:true,audioloop:true,audioshowonhover:true,audiobtnfullscreencss:"position:absolute;top:0;right:36px;margin:0;",audiobtnfullscreencolor:"#eee",audiobtnfullscreenbg:"transparent",audiobtncss:"position:absolute;top:0;right:0;margin:16px 16px 0 0;",audiobtncolor:"#fff", 49 audiobtnbg:"#c92228",version:"3.3",stamp:false,freemark:"72,84,77,76,53,32,76,105,103,104,116,98,111,120,32,70,114,101,101,32,86,101,114,115,105,111,110",watermark:"",watermarklink:""},options);if(typeof html5lightbox_options!="undefined"&&html5lightbox_options)$.extend(inst.options,html5lightbox_options);if($("div.html5lightbox_options").length)$.each($("div.html5lightbox_options").data(),function(key,value){inst.options[key.toLowerCase()]=value});if($("div#html5lightbox_options").length)$.each($("div#html5lightbox_options").data(), 50 function(key,value){inst.options[key.toLowerCase()]=value});if($("div#html5lightbox_general_options").length)$.each($("div#html5lightbox_general_options").data(),function(key,value){inst.options[key.toLowerCase()]=value});var ELEM_TYPE=0,ELEM_HREF=1,ELEM_TITLE=2,ELEM_GROUP=3,ELEM_WIDTH=4,ELEM_HEIGHT=5,ELEM_HREF_WEBM=6,ELEM_HREF_OGG=7,ELEM_THUMBNAIL=8,ELEM_DESCRIPTION=9,ELEM_DIV=10,ELEM_ORIGINALWIDTH=11,ELEM_ORIGINALHEIGHT=12,ELEM_SOCIALMEDIA=13,ELEM_WEBLINK=14,ELEM_WEBLINKTARGET=15,ELEM_WEBLINKTEXT= 51 16,ELEM_MEDIUMWIDTH=17,ELEM_MEDIUMHEIGHT=18,ELEM_SMALLWIDTH=19,ELEM_SMALLHEIGHT=20;inst.options.types=["IMAGE","FLASH","VIDEO","YOUTUBE","VIMEO","PDF","MP3","WEB","FLV","DAILYMOTION","DIV","WISTIA","IFRAMEVIDEO"];inst.options.htmlfolder=window.location.href.substr(0,window.location.href.lastIndexOf("/")+1);inst.options.skinsfolder=inst.options.skinsfoldername;if(inst.options.skinsfolder.length>0&&inst.options.skinsfolder[inst.options.skinsfolder.length-1]!="/")inst.options.skinsfolder+="/";if(inst.options.skinsfolder.charAt(0)!= 52 "/"&&inst.options.skinsfolder.substring(0,5)!="http:"&&inst.options.skinsfolder.substring(0,6)!="https:")inst.options.skinsfolder=inst.options.jsfolder+inst.options.skinsfolder;var image_list=["loadingimage","nextimage","previmage","closeimage","playvideoimage","titlebgimage","navarrowsprevimage","navarrowsnextimage","navcontrolimage","playimage","pauseimage","fullscreencloseimage","fullscreennextimage","fullscreenprevimage"];for(var i=0;i<image_list.length;i++)if(inst.options[image_list[i]])if(inst.options[image_list[i]].substring(0, 53 7).toLowerCase()!="http://"&&inst.options[image_list[i]].substring(0,8).toLowerCase()!="https://")inst.options[image_list[i]]=inst.options.skinsfolder+inst.options[image_list[i]];var i;var l;var mark="";var bytes=inst.options.freemark.split(",");for(i=0;i<bytes.length;i++)mark+=String.fromCharCode(bytes[i]);inst.options.freemark=mark;var d0="hmtamgli5cboxh.iclolms";for(i=1;i<=5;i++)d0=d0.slice(0,i)+d0.slice(i+1);l=d0.length;for(i=0;i<5;i++)d0=d0.slice(0,l-9+i)+d0.slice(l-8+i);if(inst.options.htmlfolder.indexOf(d0)!= 54 -1)inst.options.stamp=false;inst.options.flashInstalled=false;inst.options.html5VideoSupported=!!document.createElement("video").canPlayType;inst.options.isChrome=navigator.userAgent.match(/Chrome/i)!=null;inst.options.isFirefox=navigator.userAgent.match(/Firefox/i)!=null;inst.options.isOpera=navigator.userAgent.match(/Opera/i)!=null||navigator.userAgent.match(/OPR\//i)!=null;inst.options.isSafari=navigator.userAgent.match(/Safari/i)!=null;inst.options.isIE11=navigator.userAgent.match(/Trident\/7/)!= 55 null&&navigator.userAgent.match(/rv:11/)!=null;inst.options.isIE=navigator.userAgent.match(/MSIE/i)!=null&&!inst.options.isOpera;inst.options.isIE10=navigator.userAgent.match(/MSIE 10/i)!=null&&!this.options.isOpera;inst.options.isIE9=navigator.userAgent.match(/MSIE 9/i)!=null&&!inst.options.isOpera;inst.options.isIE8=navigator.userAgent.match(/MSIE 8/i)!=null&&!inst.options.isOpera;inst.options.isIE7=navigator.userAgent.match(/MSIE 7/i)!=null&&!inst.options.isOpera;inst.options.isIE6=navigator.userAgent.match(/MSIE 6/i)!= 56 null&&!inst.options.isOpera;inst.options.isIE678=inst.options.isIE6||inst.options.isIE7||inst.options.isIE8;inst.options.isIE6789=inst.options.isIE6||inst.options.isIE7||inst.options.isIE8||inst.options.isIE9;inst.options.isAndroid=navigator.userAgent.match(/Android/i)!=null;inst.options.isIPad=navigator.userAgent.match(/iPad/i)!=null;inst.options.isIPhone=navigator.userAgent.match(/iPod/i)!=null||navigator.userAgent.match(/iPhone/i)!=null;inst.options.isIOS=inst.options.isIPad||inst.options.isIPhone; 57 inst.options.isMobile=inst.options.isAndroid||inst.options.isIPad||inst.options.isIPhone;inst.options.isIOSLess5=inst.options.isIPad&&inst.options.isIPhone&&(navigator.userAgent.match(/OS 4/i)!=null||navigator.userAgent.match(/OS 3/i)!=null);inst.options.supportCSSPositionFixed=!inst.options.isIE6&&!inst.options.isIOSLess5;inst.options.iequirksmode=inst.options.isIE6789&&document.compatMode!="CSS1Compat";inst.options.isTouch="ontouchstart"in window;if(inst.options.isChrome){var match=navigator.userAgent.match(/Chrome\/([0-9]+)/); 58 inst.options.chromeVersion=match&&match.length>=2?parseInt(match[1],10):0}if(inst.options.isAndroid){var match=navigator.userAgent.match(/Android\s([0-9\.]*)/i);inst.options.androidVersion=match&&match.length>=2?parseInt(match[1],10):-1}var v=document.createElement("video");inst.options.canplaymp4=v&&v.canPlayType&&v.canPlayType("video/mp4").replace(/no/,"");if(inst.options.isFirefox&&inst.options.nativecontrolsonfirefox||(inst.options.isIE6789||inst.options.isIE10||inst.options.isIE11)&&inst.options.nativecontrolsonie|| 59 inst.options.isIPhone&&inst.options.nativecontrolsoniphone||inst.options.isIPad&&inst.options.nativecontrolsonipad||inst.options.isAndroid&&inst.options.nativecontrolsonandroid)inst.options.nativehtml5controls=true;if(inst.options.isIOS||inst.options.isAndroid)inst.options.nativecontrolsonfullscreen=true;inst.options.navheight=0;inst.options.thumbgap+=2*inst.options.thumbborder;inst.options.resizeTimeout=-1;inst.slideTimeout=null;inst.autosliding=false;inst.existingElem=-1;inst.direction=-3;inst.elemArray= 60 new Array;inst.options.curElem=-1;inst.defaultoptions=$.extend({},inst.options);if(inst.options.enablega4&&inst.options.ga4account&&typeof gtag!=="function"){window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments)}gtag("js",new Date);gtag("config",inst.options.ga4account);$.getScript("https://www.googletagmanager.com/gtag/js?id="+encodeURIComponent(inst.options.ga4account))}if(inst.options.googleanalyticsaccount&&!window._gaq){window._gaq=window._gaq||[];window._gaq.push(["_setAccount", 61 inst.options.googleanalyticsaccount]);window._gaq.push(["_trackPageview"]);$.getScript("https://ssl.google-analytics.com/ga.js")}if(inst.options.initvimeo){var tag=document.createElement("script");tag.src=inst.options.jsfolder+"froogaloop2.min.js";var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag)}if(inst.options.inityoutube){var tag=document.createElement("script");tag.src="https://www.youtube.com/iframe_api";var firstScriptTag= 62 document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag)}if(inst.options.initsocial)$("head").append('<link rel="stylesheet" href="'+inst.options.jsfolder+'icons/css/mhfontello.css" type="text/css" />');inst.showing=false;inst.navvisible=false;inst.disableKeyOutsideOfLightbox=function(event){if($(event.target).closest("#slider-html5-lightbox").length<=0){event.preventDefault();$("#html5-lightbox-box .html5-elem-box").attr("tabindex","-1").focus()}};if(inst.options.limitfocus){$(window).on("html5lightbox.lightboxopened", 63 function(){$(document).on("keydown",inst.disableKeyOutsideOfLightbox);$("#html5-lightbox-box .html5-elem-box").attr("tabindex","-1").focus()});$(window).on("html5lightbox.lightboxclosed",function(){$(document).off("keydown",inst.disableKeyOutsideOfLightbox)})}inst.disableEscKey=function(isFullscreen){if(isFullscreen)inst.disableesckeyinfullscreen=true;else setTimeout(function(){inst.disableesckeyinfullscreen=false},1E3)};inst.supportKeyboard=function(){inst.disableesckeyinfullscreen=false;$(document).keyup(function(e){if(!inst.showing)return; 64 if(!inst.disableesckeyinfullscreen&&inst.options.supportesckey&&e.keyCode==27)inst.finish();else if(inst.options.supportarrowkeys)if(e.keyCode==39)inst.gotoSlide(-1);else if(e.keyCode==37)inst.gotoSlide(-2)});if(inst.options.supportesckey&&document.addEventListener){document.addEventListener("MSFullscreenChange",function(){inst.disableEscKey(document.msFullscreenElement!=null)},false);document.addEventListener("webkitfullscreenchange",function(){inst.disableEscKey(document.webkitIsFullScreen)},false)}}; 65 inst.supportKeyboard();inst.init=function(){inst.showing=false;inst.readData();inst.createMarkup();inst.initSlide()};inst.checkParentData=function(node,parentNode,attr){return node.data(attr)?node.data(attr):parentNode&&parentNode.data(attr)?parentNode.data(attr):null};inst.checkParentClass=function(node,parentNode,attr){var ret=null;$.each([node,parentNode],function(index,nodeValue){if(nodeValue&&nodeValue.attr("class")){var classList=nodeValue.attr("class").split(/\s+/);$.each(classList,function(index, 66 className){if(className&&className.toLowerCase().indexOf("html5lightbox-"+attr+"-")==0){var names=className.split("-");if(names.length==3){var val=names[2];if(val.toLowerCase()=="true")val=true;else if(val.toLowerCase()=="false")val=false;else if(/^\d+$/.test(val))val=parseInt(val);else if(!isNaN(val))val=parseFloat(val);ret=val}}})}});return ret};inst.readNodeData=function(node,parentNode){var fileType="mediatype"in node.data()?node.data("mediatype"):inst.checkType(node.attr("href"));if(fileType< 67 0)return;var title=node.data("title")?node.data("title"):node.attr("title");if(!title&&node.find("img").length>0){var img=node.find("img");title=img.attr("title")?img.attr("title"):img.attr("alt")?img.attr("alt"):""}var group=node.data("group")?node.data("group"):inst.options.userelforgroup?node.attr("rel"):null;if(!group&&parentNode)group=parentNode.data("group")?parentNode.data("group"):inst.options.userelforgroup?parentNode.attr("rel"):null;for(var i=0;i<inst.elemArray.length;i++)if(node.attr("href")== 68 inst.elemArray[i][ELEM_HREF]){inst.elemArray[i][ELEM_TITLE]=title;inst.elemArray[i][ELEM_GROUP]=group;return}var w=inst.checkParentClass(node,parentNode,"width");var h=inst.checkParentClass(node,parentNode,"height");if(!w)w=inst.checkParentData(node,parentNode,"width");if(!h)h=inst.checkParentData(node,parentNode,"height");var mediumw=inst.checkParentClass(node,parentNode,"mediumwidth");var mediumh=inst.checkParentClass(node,parentNode,"mediumheight");if(!mediumw)mediumw=inst.checkParentData(node, 69 parentNode,"mediumwidth");if(!mediumw)mediumw=w;if(!mediumh)mediumh=inst.checkParentData(node,parentNode,"mediumheight");if(!mediumh)mediumh=h;var smallw=inst.checkParentClass(node,parentNode,"smallwidth");var smallh=inst.checkParentClass(node,parentNode,"smallheight");if(!smallw)smallw=inst.checkParentData(node,parentNode,"smallwidth");if(!smallw)smallw=mediumw;if(!smallh)smallh=inst.checkParentData(node,parentNode,"smallheight");if(!smallh)smallh=mediumh;var newItem=new Array(fileType,node.attr("href"), 70 title,group,w,h,inst.checkParentData(node,parentNode,"webm"),inst.checkParentData(node,parentNode,"ogg"),inst.checkParentData(node,parentNode,"thumbnail"),inst.checkParentData(node,parentNode,"description"),null,null,null,inst.checkParentData(node,parentNode,"socialmedia"),inst.checkParentData(node,parentNode,"weblink"),inst.checkParentData(node,parentNode,"weblinktarget"),inst.checkParentData(node,parentNode,"weblinktext"),mediumw,mediumh,smallw,smallh);var container=node.closest(".lightboxcontainer"); 71 if(container.length>0){if(container.find(".lightboxtitle").length>0)newItem[ELEM_TITLE]=container.find(".lightboxtitle").text();if(container.find(".lightboxdescription").length>0)newItem[ELEM_DESCRIPTION]=container.find(".lightboxdescription").text()}inst.elemArray.push(newItem)};inst.readData=function(){inst.each(function(){var self=$(this);if(this.nodeName.toLowerCase()=="a"||this.nodeName.toLowerCase()=="area")inst.readNodeData(self);else self.find("a,area").each(function(){inst.readNodeData($(this), 72 self)})})};inst.createMarkup=function(){if($(window).width()<=inst.options.fullscreensmallscreenwidth){if(inst.options.fullscreenmodeonsmallscreen){inst.options.fullscreenmode=true;if(inst.options.fullscreennomarginonsmallscreen)inst.options.fullscreennomargin=true}if(inst.options.fullscreenmode&&inst.options.fullscreennomarginonsmallscreen)inst.options.fullscreennomargin=true}if(inst.options.fullscreenmode){inst.options.bgcolor=inst.options.fullscreenbgcolor;inst.options.bordersize=inst.options.fullscreenbordersize; 73 inst.options.loadingfontcolor=inst.options.fullscreenloadingfontcolor;if(inst.options.fullscreennomargin){inst.options.bordersize=0;inst.options.bordermargin=0;inst.options.bordertopmargin=0;inst.options.bordertopmarginsmall=0}if(inst.options.fullscreentextoutside){inst.options.titlestyle="outside";inst.options.titlecss=inst.options.titleoutsidecss;inst.options.descriptioncss=inst.options.descriptionoutsidecss}else if(inst.options.fullscreentextinside){inst.options.titlestyle="inside";inst.options.titlecss= 74 inst.options.titleinsidecss;inst.options.descriptioncss=inst.options.descriptioninsidecss}else{inst.options.titlebottomcss=inst.options.fullscreentitlebottomcss;inst.options.descriptionbottomcss=inst.options.fullscreendescriptionbottomcss}}inst.options.barheightoriginal=inst.options.barheight;if(inst.options.responsivebarheight){var winH=inst.getWinH();if(winH<=inst.options.smallscreenheight)inst.options.barheight=inst.options.barheightonsmallheight}switch(inst.options.titlestyle){case "inside":inst.options.titlecss= 75 inst.options.titleinsidecss;inst.options.descriptioncss=inst.options.descriptioninsidecss;break;case "outside":inst.options.titlecss=inst.options.titleoutsidecss;inst.options.descriptioncss=inst.options.descriptionoutsidecss;break;default:inst.options.titlecss=inst.options.titlebottomcss;inst.options.descriptioncss=inst.options.descriptionbottomcss}inst.options.titlecss=$.trim(inst.options.titlecss);if(inst.options.titlecss.length>1){if(inst.options.titlecss.charAt(0)=="{")inst.options.titlecss=inst.options.titlecss.substring(1); 76 if(inst.options.titlecss.charAt(inst.options.titlecss.length-1)=="}")inst.options.titlecss=inst.options.titlecss.substring(0,inst.options.titlecss.length-1)}inst.options.descriptioncss=$.trim(inst.options.descriptioncss);if(inst.options.descriptioncss.length>1){if(inst.options.descriptioncss.charAt(0)=="{")inst.options.descriptioncss=inst.options.descriptioncss.substring(1);if(inst.options.descriptioncss.charAt(inst.options.descriptioncss.length-1)=="}")inst.options.descriptioncss=inst.options.descriptioncss.substring(0, 77 inst.options.descriptioncss.length-1)}inst.options.errorcss=$.trim(inst.options.errorcss);if(inst.options.errorcss.length>1){if(inst.options.errorcss.charAt(0)=="{")inst.options.errorcss=inst.options.errorcss.substring(1);if(inst.options.errorcss.charAt(inst.options.errorcss.length-1)=="}")inst.options.errorcss=inst.options.errorcss.substring(0,inst.options.errorcss.length-1)}var styleCss=" .bodynoscroll {height:100%;overflow:hidden;}";styleCss+=" #slider-html5-lightbox .html5-text {"+inst.options.titlecss+ 78 "}";styleCss+=" #slider-html5-lightbox .html5-description {"+inst.options.descriptioncss+"}";styleCss+=" #slider-html5-lightbox .html5-error {"+inst.options.errorcss+"}";styleCss+=" .html5-prev-fullscreen {display:block;cursor:pointer;position:absolute;z-index:1;left:"+inst.options.bordersize+"px;right:auto;top:50%;transform:translate(0,-50%)} .html5-next-fullscreen {display:block;cursor:pointer;position:absolute;z-index:1;left:auto;right:"+inst.options.bordersize+"px;top:50%;transform:translate(0,-50%)}"; 79 styleCss+=" .html5-prev, .html5-next {display:none;cursor:pointer;position:absolute;z-index:1;}";styleCss+=" .html5-prev-inside {left:"+inst.options.bordersize+"px;right:auto;top:50%;transform:translate(0,-50%)} .html5-next-inside {left:auto;right:"+inst.options.bordersize+"px;top:50%;transform:translate(0,-50%)}";styleCss+=" .html5-prev-outside {left:0;right:auto;top:50%;transform:translate(-100%,-50%);} .html5-next-outside {left:auto;right:0;top:50%;transform:translate(100%,-50%);}";if(inst.options.showarrowsbottomonsmallscreen){styleCss+= 80 "@media (max-width: "+inst.options.navarrowsbottomscreenwidth+"px) {";if(inst.options.outsidearrowspos=="bottom")styleCss+=" .html5-prev-outside {display:block;top:100%;left:0;right:auto;transform:none;} .html5-next-outside {display:block;top:100%;left:auto;right:0;transform:none;}";else if(inst.options.outsidearrowspos=="bottominside")styleCss+=" .html5-prev-outside {display:block;top:100%;left:0;right:auto;transform:translate(0,-100%);} .html5-next-outside {display:block;top:100%;left:auto;right:0;transform:translate(0,-100%);}"; 81 81 else styleCss+=" .html5-prev-outside {display:block;top:50%;left:0;right:auto;transform:translate(0,-50%);} .html5-next-outside {display:block;top:50%;left:auto;right:0;transform:translate(0,-50%);}";styleCss+=" .html5-prev-fullscreen {display:none;} .html5-next-fullscreen {display:none;}";styleCss+="}"}styleCss+=" .html5-prev-inside .mh-icon-left, .html5-next-inside .mh-icon-right { display:table-cell; vertical-align:middle; font-size: 20px; color: #ddd; background-color: rgba(0,0,0,0.6); line-height: 36px; width: 36px; height: 36px; text-align: center;} .html5-prev-inside .mh-icon-left:hover, .html5-next-inside .mh-icon-right:hover { color: #fff; } .html5-prev-outside .mh-icon-left, .html5-next-outside .mh-icon-right, .html5-prev-fullscreen .mh-icon-left, .html5-next-fullscreen .mh-icon-right { display:table-cell; vertical-align:middle; font-size: 24px; line-height: 36px; color: #ccc; background-color: rgba(0,0,0,0.6); } .html5-prev-outside .mh-icon-left:hover, .html5-next-outside .mh-icon-right:hover, .html5-prev-fullscreen .mh-icon-left:hover, .html5-next-fullscreen .mh-icon-right:hover { color: #fff; }"; 82 82 if(inst.options.titlestyle=="right"){styleCss+="#slider-html5-lightbox .html5-elem-wrap {width:"+inst.options.imagepercentage+"%;height:100%;} #slider-html5-lightbox .html5-elem-data-box {min-height:100%;}";styleCss+="@media (max-width: "+inst.options.sidetobottomscreenwidth+"px) {#slider-html5-lightbox .html5-elem-wrap {width:100%;height:auto;} #slider-html5-lightbox .html5-elem-data-box {width:100%;height:auto;min-height:0;}}"}else if(inst.options.titlestyle=="left"){styleCss+="#slider-html5-lightbox .html5-elem-wrap {height:100%;} #slider-html5-lightbox .html5-elem-data-box {width:"+ … … 89 89 $("head").append("<style type='text/css' data-creator='slider-html5-lightbox'>"+styleCss+"</style>");var elemheight=inst.options.elemautoheight?"auto":"100%";inst.$lightbox=$("<div id='slider-html5-lightbox' style='display:none;top:0px;left:0px;width:100%;height:100%;z-index:9999998;text-align:center;'>"+"<div id='html5-lightbox-overlay' style='display:block;position:absolute;top:0px;left:0px;width:100%;min-height:100%;background-color:"+inst.options.overlaybgcolor+";opacity:"+inst.options.overlayopacity+ 90 90 ";filter:alpha(opacity="+Math.round(inst.options.overlayopacity*100)+");'></div>"+"<div id='html5-lightbox-box' style='display:block;position:relative;margin:0px auto;'>"+"<div class='html5-elem-box' style='display:block;outline:none;position:relative;width:100%;overflow-x:hidden;overflow-y:auto;height:"+elemheight+";margin:0px auto;text-align:center;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;'>"+"<div class='html5-elem-wrap' style='display:block;position:relative;overflow:hidden;margin:0px auto;text-align:center;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;background-color:"+ 91 inst.options.bgcolor+";'>"+"<div class='html5-loading' style='display:none;position:absolute;text-align:center;'></div>"+"<div class='html5-error-box html5-error' style='display:none;position:absolute;padding:"+inst.options.bordersize+"px;text-align:center;width:"+inst.options.errorwidth+"px;height:"+inst.options.errorheight+"px; '>"+"The requested content cannot be loaded.<br />Please try again later."+"</div>"+"<div class='html5-image' style='display:none;position:relative;top:0px;left:0px;width:100%;height:100%;overflow:auto;"+91 inst.options.bgcolor+";'>"+"<div class='html5-loading' style='display:none;position:absolute;text-align:center;'></div>"+"<div class='html5-error-box html5-error' style='display:none;position:absolute;padding:"+inst.options.bordersize+"px;text-align:center;width:"+inst.options.errorwidth+"px;height:"+inst.options.errorheight+"px;line-height:"+inst.options.errorheight+"px;'>"+"The requested content cannot be loaded."+"</div>"+"<div class='html5-image' style='display:none;position:relative;top:0px;left:0px;width:100%;height:100%;overflow:auto;"+ 92 92 (inst.options.iequirksmode?"margin":"padding")+":"+inst.options.bordersize+"px;text-align:center;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;'></div>"+"</div>"+"</div>"+"<div id='html5-watermark' style='display:none;position:absolute;left:"+String(inst.options.bordersize+2)+"px;top:"+String(inst.options.bordersize+2)+"px;'></div>"+"</div>"+"</div>");inst.options.positionFixed=inst.options.supportCSSPositionFixed&&inst.options.responsive&&!inst.options.iequirksmode; 93 93 if(inst.options.useabsolutepos||inst.options.useabsoluteposonmobile&&inst.options.isMobile)inst.options.positionFixed=false;inst.$lightbox.css({position:inst.options.positionFixed?"fixed":"absolute"});inst.$lightbox.appendTo("body");inst.$lightboxBox=$("#html5-lightbox-box",inst.$lightbox);inst.$elem=$(".html5-elem-box",inst.$lightbox);inst.$elemWrap=$(".html5-elem-wrap",inst.$lightbox);inst.$loading=$(".html5-loading",inst.$lightbox);inst.$error=$(".html5-error-box",inst.$lightbox);inst.$image=$(".html5-image", … … 108 108 if(inst.$nextfullscreen){inst.$nextfullscreen.click(function(){inst.nextArrowClicked()});inst.$prevfullscreen.click(function(){inst.prevArrowClicked()})}$(window).resize(function(){if(inst.options.isIOS&&!inst.options.mobileresizeevent)return;clearTimeout(inst.options.resizeTimeout);inst.options.resizeTimeout=setTimeout(function(){inst.resizeWindow()},inst.options.resizedelay)});$(window).scroll(function(){if(inst.options.isIOS&&!inst.options.mobileresizeevent)return;inst.scrollBox()});$(window).on("orientationchange", 109 109 function(e){if(inst.options.isMobile){clearTimeout(inst.options.resizeTimeout);inst.options.resizeTimeout=setTimeout(function(){inst.resizeWindow()},inst.options.resizedelay)}});if(inst.options.enabletouchswipe)inst.enableSwipe()};inst.showSocialButtons=function(){if(inst.options.showsocial){if($("#html5-social").length>0)$("#html5-social").remove();var socialCode='<div id="html5-social" style="display:none;'+inst.options.socialposition+'">';var socialBtnCSS=(inst.options.socialdirection=="horizontal"? 110 "display:inline-block;vertical-align:top;":"display:block;")+"margin:4px;";var socialCSS="display:table-cell;width:"+inst.options.socialbuttonsize+"px;height:"+inst.options.socialbuttonsize+"px;font-size:"+inst.options.socialbuttonfontsize+"px;border-radius:50%;color:#fff;vertical-align:middle;text-align:center;cursor:pointer;padding:0;"; if(inst.options.showemail)socialCode+='<div class="html5-social-btn html5-social-btn-action html5-social-email" style="'+socialBtnCSS+'"><div class="mh-icon-mail'+111 (inst.options.socialrotateeffect?" html5-rotate":"")+'" style="'+socialCSS+'background-color:#4d83ff;"></div></div>';if(inst.options.showfacebook)socialCode+='<div class="html5-social-btn html5-social-btn-action html5-social-facebook" style="'+socialBtnCSS+'"><div class="mh-icon-facebook'+(inst.options.socialrotateeffect?" html5-rotate":"")+'" style="'+socialCSS+'background-color:#3b5998;"></div></div>';if(inst.options.showtwitter)socialCode+='<div class="html5-social-btn html5-social-btn-action html5-social-twitter" style="'+110 "display:inline-block;vertical-align:top;":"display:block;")+"margin:4px;";var socialCSS="display:table-cell;width:"+inst.options.socialbuttonsize+"px;height:"+inst.options.socialbuttonsize+"px;font-size:"+inst.options.socialbuttonfontsize+"px;border-radius:50%;color:#fff;vertical-align:middle;text-align:center;cursor:pointer;padding:0;";socialCode+=inst.options.extrasocialcodebefore;if(inst.options.showemail)socialCode+='<div class="html5-social-btn html5-social-btn-action html5-social-email" style="'+ 111 socialBtnCSS+'"><div class="mh-icon-mail'+(inst.options.socialrotateeffect?" html5-rotate":"")+'" style="'+socialCSS+'background-color:#4d83ff;"></div></div>';if(inst.options.showfacebook)socialCode+='<div class="html5-social-btn html5-social-btn-action html5-social-facebook" style="'+socialBtnCSS+'"><div class="mh-icon-facebook'+(inst.options.socialrotateeffect?" html5-rotate":"")+'" style="'+socialCSS+'background-color:#3b5998;"></div></div>';if(inst.options.showtwitter)socialCode+='<div class="html5-social-btn html5-social-btn-action html5-social-twitter" style="'+ 112 112 socialBtnCSS+'"><div class="mh-icon-twitter'+(inst.options.socialrotateeffect?" html5-rotate":"")+'" style="'+socialCSS+'background-color:#03b3ee;"></div></div>';if(inst.options.showpinterest)socialCode+='<div class="html5-social-btn html5-social-btn-action html5-social-pinterest" style="'+socialBtnCSS+'"><div class="mh-icon-pinterest'+(inst.options.socialrotateeffect?" html5-rotate":"")+'" style="'+socialCSS+'background-color:#c92228;"></div></div>';if(inst.options.showdownload&&(inst.currentElem[ELEM_TYPE]== 113 113 0||inst.currentElem[ELEM_TYPE]==2||inst.currentElem[ELEM_TYPE]==5||inst.currentElem[ELEM_TYPE]==6)){var elemUrl=inst.currentElem[ELEM_HREF];var elemFile=elemUrl.substring(elemUrl.lastIndexOf("/")+1);elemFile=elemFile.substring(0,elemUrl.indexOf("?"));elemFile=elemFile.substring(0,elemUrl.indexOf("#"));socialCode+='<div class="html5-social-btn html5-social-download" style="'+socialBtnCSS+'"><a href="'+elemUrl+'" download="'+elemFile+'"><div class="mh-icon-download'+(inst.options.socialrotateeffect? 114 " html5-rotate":"")+'" style="'+socialCSS+'background-color:#37a569;"></div></a></div>'}socialCode+= '<div style="clear:both;"></div></div>';inst.$lightboxBox.append(socialCode);$(".html5-social-btn-action",inst.$lightbox).click(function(){var shareUrl=inst.options.sharemediaurl?inst.currentElem[ELEM_HREF]:window.location.href+(window.location.href.indexOf("?")<0?"?":"&")+"wpsliderlightboxshare="+encodeURIComponent(inst.currentElem[ELEM_HREF]);var shareTitle=inst.currentElem[ELEM_TITLE];var shareMedia=115 inst.currentElem[ELEM_ HREF];if(inst.currentElem[ELEM_TYPE]==0)shareMedia=inst.absoluteUrl(inst.currentElem[ELEM_HREF]);else if(inst.currentElem[ELEM_TYPE]==3)shareMedia="https://img.youtube.com/vi/"+inst.getYoutubeId(inst.currentElem[ELEM_HREF])+"/0.jpg";else{var lightboxLink=$('.html5lightbox[href="'+inst.currentElem[ELEM_HREF]+'"]');if(lightboxLink.length>0)if(lightboxLink.data("shareimage")&&lightboxLink.data("shareimage").length>0)shareMedia=inst.absoluteUrl(lightboxLink.data("shareimage"));else if(lightboxLink.data("thumbnail")&&116 lightboxLink.data("thumbnail").length>0)shareMedia=inst.absoluteUrl(lightboxLink.data("thumbnail"));else{var lightboxImg=$("img",lightboxLink);if(lightboxImg.length>0)shareMedia=inst.absoluteUrl(lightboxImg.attr("src"))}}var isVideo=inst.currentElem[ELEM_TYPE]==2||inst.currentElem[ELEM_TYPE]==3||inst.currentElem[ELEM_TYPE]==4||inst.currentElem[ELEM_TYPE]==8||inst.currentElem[ELEM_TYPE]==9||inst.currentElem[ELEM_TYPE]==11||inst.currentElem[ELEM_TYPE]==12;if(!shareTitle)shareTitle=inst.options.sharetextprefix; 117 else shareTitle=inst.html2Text(shareTitle);if($(this).hasClass("html5-social-facebook"))window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(shareUrl)+"&t="+encodeURIComponent(shareTitle),"_blank");else if($(this).hasClass("html5-social-twitter"))window.open("https://twitter.com/share?url="+encodeURIComponent(shareUrl)+"&text="+encodeURIComponent(shareTitle),"_blank");else if($(this).hasClass("html5-social-pinterest"))window.open("https://pinterest.com/pin/create/bookmarklet/?media="+114 " html5-rotate":"")+'" style="'+socialCSS+'background-color:#37a569;"></div></a></div>'}socialCode+=inst.options.extrasocialcodeafter;socialCode+='<div style="clear:both;"></div></div>';inst.$lightboxBox.append(socialCode);$(".html5-social-btn-action",inst.$lightbox).click(function(){var shareUrl=inst.options.sharemediaurl?inst.currentElem[ELEM_HREF]:window.location.href+(window.location.href.indexOf("?")<0?"?":"&")+"wpsliderlightboxshare="+encodeURIComponent(inst.currentElem[ELEM_HREF]);var shareTitle= 115 inst.currentElem[ELEM_TITLE];var shareMedia=inst.currentElem[ELEM_HREF];if(inst.currentElem[ELEM_TYPE]==0)shareMedia=inst.absoluteUrl(inst.currentElem[ELEM_HREF]);else if(inst.currentElem[ELEM_TYPE]==3)shareMedia="https://img.youtube.com/vi/"+inst.getYoutubeId(inst.currentElem[ELEM_HREF])+"/0.jpg";else{var lightboxLink=$('.html5lightbox[href="'+inst.currentElem[ELEM_HREF]+'"]');if(lightboxLink.length>0)if(lightboxLink.data("shareimage")&&lightboxLink.data("shareimage").length>0)shareMedia=inst.absoluteUrl(lightboxLink.data("shareimage")); 116 else if(lightboxLink.data("thumbnail")&&lightboxLink.data("thumbnail").length>0)shareMedia=inst.absoluteUrl(lightboxLink.data("thumbnail"));else{var lightboxImg=$("img",lightboxLink);if(lightboxImg.length>0)shareMedia=inst.absoluteUrl(lightboxImg.attr("src"))}}var isVideo=inst.currentElem[ELEM_TYPE]==2||inst.currentElem[ELEM_TYPE]==3||inst.currentElem[ELEM_TYPE]==4||inst.currentElem[ELEM_TYPE]==8||inst.currentElem[ELEM_TYPE]==9||inst.currentElem[ELEM_TYPE]==11||inst.currentElem[ELEM_TYPE]==12;if(!shareTitle)shareTitle= 117 inst.options.sharetextprefix;else shareTitle=inst.html2Text(shareTitle);if($(this).hasClass("html5-social-facebook"))window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(shareUrl)+"&t="+encodeURIComponent(shareTitle),"_blank");else if($(this).hasClass("html5-social-twitter"))window.open("https://twitter.com/share?url="+encodeURIComponent(shareUrl)+"&text="+encodeURIComponent(shareTitle),"_blank");else if($(this).hasClass("html5-social-pinterest"))window.open("https://pinterest.com/pin/create/bookmarklet/?media="+ 118 118 encodeURIComponent(shareMedia)+"&url="+encodeURIComponent(shareUrl)+"&description="+encodeURIComponent(shareTitle)+"&is_video="+(isVideo?"true":"false"),"_blank");else if($(this).hasClass("html5-social-email"))window.open("mailto:?subject="+encodeURIComponent(shareTitle)+"&body="+encodeURIComponent(inst.options.sharetextprefix+" "+shareUrl));return false})}};inst.html2Text=function(html){var tag=document.createElement("div");tag.innerHTML=html;return tag.innerText};inst.slideTimer=function(interval, 119 119 callback,updatecallback){var timerInstance=this;timerInstance.timeout=interval;var updateinterval=50;var updateTimerId=null;var runningTime=0;var paused=false;var started=false;var startedandpaused=false;this.pause=function(){if(started){paused=true;clearInterval(updateTimerId)}};this.resume=function(forceresume){if(startedandpaused&&!forceresume)return;startedandpaused=false;if(started&&paused){paused=false;updateTimerId=setInterval(function(){runningTime+=updateinterval;if(runningTime>timerInstance.timeout){clearInterval(updateTimerId); … … 166 166 0?" title='"+elem[ELEM_WEBLINKTEXT].replace(/'/g,"'")+"'":"";var targetcode=elem[ELEM_WEBLINKTARGET]&&elem[ELEM_WEBLINKTARGET].length>0?" target='"+elem[ELEM_WEBLINKTARGET]+"'":"";var linkcode=elem[ELEM_WEBLINK]&&elem[ELEM_WEBLINK].length>0?"<a href='"+elem[ELEM_WEBLINK]+"'"+titlecode+targetcode+">":"";var linkcodeafter=elem[ELEM_WEBLINK]&&elem[ELEM_WEBLINK].length>0?"</a>":"";inst.$image.hide();inst.$image.html("<div class='html5-image-container' style='display:block;position:relative;width:100%;height:100%;"+ 167 167 (inst.options.imagekeepratio?"overflow:hidden;":"overflow:auto;")+"'>"+linkcode+"<img class='html5-image-img' alt='"+inst.html2Text(elem[ELEM_TITLE])+"' src='"+elem[ELEM_HREF]+"' width='100%' height='auto' />"+linkcodeafter+timercode+"</div>");inst.$image.fadeIn(inst.options.fadespeed);inst.showData();if(inst.autosliding){inst.slideTimeout.stop();inst.slideTimeout.start()}})};inst.showSWF=function(elem){var elemSize=inst.getElemSize(elem);inst.showTitle(elem[ELEM_TITLE],elem[ELEM_DESCRIPTION]);var sizeObj= 168 inst.calcElemSize(elemSize,true);var dataW=sizeObj.w;var dataH=sizeObj.h;inst.resizeLightbox(dataW,dataH,true,function(){inst.$loading.hide();inst.$image.html("<div class='html5lightbox-swf' style='display:block;width:100%;height:100%;'></div>").show();inst.embedFlash($(".html5lightbox-swf",inst.$image),elem[ELEM_HREF],"window",{width:dataW,height:dataH});inst.$elem.show();inst.showData();if(inst.autosliding){inst.slideTimeout.stop();inst.slideTimeout.start()}})};inst.showVideo=function(elem){inst.slideTimeout.stop(); 169 inst.showTitle(elem[ELEM_TITLE],elem[ELEM_DESCRIPTION]);var elemSize=inst.getElemSize(elem);var sizeObj=inst.calcElemSize(elemSize,true);var dataW=sizeObj.w;var dataH=sizeObj.h;inst.resizeLightbox(dataW,dataH,true,function(){inst.$loading.hide();inst.$image.html("<div class='html5lightbox-video' style='display:block;width:100%;height:100%;overflow:hidden;background-color:"+inst.options.videobgcolor+";'></div>").show();var isHTML5=false;if(inst.options.isIE678||elem[ELEM_TYPE]==8||inst.options.isIE9&& 170 inst.options.useflashonie9||inst.options.isIE10&&inst.options.useflashonie10||inst.options.isIE11&&inst.options.useflashonie11)isHTML5=false;else if(inst.options.isMobile)isHTML5=true;else if((inst.options.html5player||!inst.options.flashInstalled)&&inst.options.html5VideoSupported){isHTML5=true;if(inst.options.isFirefox||inst.options.isOpera)if(!elem[ELEM_HREF_WEBM]&&!elem[ELEM_HREF_OGG]&&(!inst.options.canplaymp4||inst.options.useflashformp4onfirefox))isHTML5=false}if(isHTML5){var videoSrc=elem[ELEM_HREF]; 171 if(inst.options.isFirefox||inst.options.isOpera)if(elem[ELEM_HREF_WEBM])videoSrc=elem[ELEM_HREF_WEBM];else if(elem[ELEM_HREF_OGG])videoSrc=elem[ELEM_HREF_OGG];inst.embedHTML5Video($(".html5lightbox-video",inst.$image),videoSrc,inst.options.autoplay,inst.options.loopvideo,inst.options.mutevideo,inst.options.playsinline);if(elem[ELEM_WEBLINK]&&elem[ELEM_WEBLINK].length>0)$(".html5-lightbox-video",inst.$image).css({cursor:"pointer"}).click(function(){if(elem[ELEM_WEBLINKTARGET]&&elem[ELEM_WEBLINKTARGET].length> 172 0)window.open(elem[ELEM_WEBLINK],elem[ELEM_WEBLINKTARGET]);else window.open(elem[ELEM_WEBLINK])})}else{var videoFile=elem[ELEM_HREF];if(videoFile.charAt(0)!="/"&&videoFile.substring(0,5)!="http:"&&videoFile.substring(0,6)!="https:")videoFile=inst.options.htmlfolder+videoFile;inst.embedFlash($(".html5lightbox-video",inst.$image),inst.options.jsfolder+"html5boxplayer.swf","transparent",{width:dataW,height:dataH,jsobjectname:"html5Lightbox",hidecontrols:inst.options.videohidecontrols?"1":"0",hideplaybutton:"0", 173 videofile:videoFile,hdfile:"",ishd:"0",defaultvolume:inst.options.defaultvideovolume,autoplay:inst.options.autoplay?"1":"0",loop:inst.options.loopvideo?"1":"0",errorcss:".html5box-error"+inst.options.errorcss,id:0})}inst.$elem.show();inst.showData()},inst.options.isMobile&&inst.options.autoplayhtml5onmobile)};inst.loadNext=function(){$(window).trigger("html5lightbox.videofinished");if(inst.autosliding)inst.gotoSlide(-1);else if(inst.options.autoclose)setTimeout(function(){inst.finish()},inst.options.autoclosedelay)}; 174 inst.getYoutubeParams=function(href){var result={};if(href.indexOf("?")<0)return result;var params=href.substring(href.indexOf("?")+1).split("&");for(var i=0;i<params.length;i++){var value=params[i].split("=");if(value&&value.length==2&&value[0].toLowerCase()!="v")result[value[0].toLowerCase()]=value[1]}return result};inst.getYoutubeId=function(href){var youtubeId="";var regExp=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\??v?=?))([^#\&\?]*).*/;var match=href.match(regExp);if(match&&match[7]&& 175 match[7].length==11)youtubeId=match[7];return youtubeId};inst.prepareYoutubeHref=function(href){var youtubeId=inst.getYoutubeId(href);var protocol="https:";var youtubeDomain=href.indexOf("youtube-nocookie")>=0?"youtube-nocookie":"youtube";var result=protocol+"//www."+youtubeDomain+".com/embed/"+youtubeId;var params=this.getYoutubeParams(href);var first=true;for(var key in params){if(first){result+="?";first=false}else result+="&";result+=key+"="+params[key]}return result};inst.prepareDailymotionHref= 176 function(href){if(href.match(/\:\/\/.*(dai\.ly)/i)){var protocol="https:";var id=href.match(/(dai\.ly\/)([a-zA-Z0-9\-\_]+)/)[2];href=protocol+"//www.dailymotion.com/embed/video/"+id}return href};inst.showYoutubeVimeo=function(elem){inst.slideTimeout.stop();inst.showTitle(elem[ELEM_TITLE],elem[ELEM_DESCRIPTION]);var elemSize=inst.getElemSize(elem);var sizeObj=inst.calcElemSize(elemSize,true);var dataW=sizeObj.w;var dataH=sizeObj.h;if(inst.options.noresizecallback){inst.resizeLightbox(dataW,dataH,true, 177 function(){inst.showData()});inst.showYouTubeVimeoCallback(elem,sizeObj)}else inst.resizeLightbox(dataW,dataH,true,function(){inst.showYouTubeVimeoCallback(elem,sizeObj);inst.showData()})};inst.showYouTubeVimeoCallback=function(elem,sizeObj){inst.$loading.hide();inst.$image.html("<div class='html5lightbox-video' style='display:block;width:100%;height:100%;overflow:hidden;'></div>").show();var href=elem[ELEM_HREF];var youtubeid="";if(elem[ELEM_TYPE]==3){youtubeid=inst.getYoutubeId(href);href=inst.prepareYoutubeHref(href)}if(elem[ELEM_TYPE]== 178 9)href=inst.prepareDailymotionHref(href);if(inst.options.autoplay){href+=href.indexOf("?")<0?"?":"&";if(elem[ELEM_TYPE]==11)href+="autoPlay=true";else href+="autoplay=1"}if(inst.options.loopvideo){href+=href.indexOf("?")<0?"?":"&";switch(elem[ELEM_TYPE]){case 3:href+="loop=1&playlist="+youtubeid;break;case 4:case 9:href+="loop=1";break;case 11:href+="endVideoBehavior=loop";break}}if(elem[ELEM_TYPE]==3){if(href.indexOf("?")<0)href+="?wmode=transparent&rel=0";else href+="&wmode=transparent&rel=0";if(inst.options.videohidecontrols)href+= 179 "&controls=0&showinfo=0";if(inst.options.mutevideo)href+="&mute=1";if(inst.options.playsinline)href+="&playsinline=1";href+="&enablejsapi=1&origin="+document.location.protocol+"//"+document.location.hostname}else if(elem[ELEM_TYPE]==4){href+=href.indexOf("?")<0?"?":"&";href+="api=1&player_id=html5boxiframevideo"+inst.options.curElem;if(inst.options.mutevideo)href+="&muted=1";if(inst.options.playsinline)href+="&playsinline=1";href+="&origin="+document.location.protocol+"//"+document.location.hostname}$(".html5lightbox-video", 180 inst.$image).html("<iframe style='margin:0;padding:0;border:0;' class='html5boxiframevideo' id='html5boxiframevideo"+inst.options.curElem+"' width='100%' height='100%' src='"+href+"' frameborder='0' allow='autoplay' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>");inst.$elem.show();if(elem[ELEM_TYPE]==3){if(inst.options.inityoutube){inst.youtubeFinishCount=0;inst.initYoutubeFinishCallback()}}else if(elem[ELEM_TYPE]==4)if(inst.options.initvimeo){inst.vimeoFinishCount=0;inst.initVimeoFinishCallback()}}; 181 inst.initYoutubeFinishCallback=function(){if(typeof YT==="object"&&typeof YT.Player==="function")inst.ytplayer=new YT.Player("html5boxiframevideo"+inst.options.curElem,{events:{"onStateChange":function(event){if(event.data==YT.PlayerState.ENDED){$(window).trigger("html5lightbox.videofinished");if(inst.autosliding)inst.gotoSlide(-1);else if(inst.options.autoclose)setTimeout(function(){inst.finish()},inst.options.autoclosedelay)}}}});else setTimeout(function(){if(inst.youtubeFinishCount<10){inst.youtubeFinishCount++; 182 inst.initYoutubeFinishCallback()}},300)};inst.initVimeoFinishCallback=function(){if(typeof $f==="function"){var vimeoIframe=$("#html5boxiframevideo"+inst.options.curElem)[0];inst.vimeoPlayer=$f(vimeoIframe);inst.vimeoPlayer.addEvent("ready",function(){inst.vimeoPlayer.addEvent("finish",function(id){$(window).trigger("html5lightbox.videofinished");if(inst.autosliding)inst.gotoSlide(-1);else if(inst.options.autoclose)setTimeout(function(){inst.finish()},inst.options.autoclosedelay)})})}else setTimeout(function(){if(inst.vimeoFinishCount< 183 10){inst.vimeoFinishCount++;inst.initVimeoFinishCallback()}},300)};inst.showPDF=function(elem){if(inst.options.enablepdfjs){if(inst.options.isIPhone&&inst.options.openpdfinnewtaboniphone||inst.options.isIPad&&inst.options.openpdfinnewtabonipad){var win=window.open(elem[ELEM_HREF],"_blank");win.focus();inst.finish();return}if(!inst.options.pdfjsengine)inst.options.pdfjsengine=inst.options.jsfolder+"pdfjs/web/viewer.html";var href=elem[ELEM_HREF];if(href.substring(0,5)!="http:"&&href.substring(0,6)!= 184 "https:")href=inst.absoluteUrl(href);var hashindex=href.indexOf("#");if(hashindex>0)href=encodeURIComponent(href.substring(0,hashindex))+href.substring(hashindex);else href=encodeURIComponent(href);var pdfelem=jQuery.extend(true,{},elem);pdfelem[ELEM_HREF]=inst.options.pdfjsengine+(inst.options.pdfjsengine.indexOf("?")<0?"?":"&")+inst.options.pdfengineurlparam+"="+href;inst.showWeb(pdfelem,false)}else if(inst.options.isIPhone||inst.options.isIPad)inst.showWeb(elem,true);else if(inst.options.isAndroid|| 185 inst.options.isIE||inst.options.isIE11){var win=window.open(elem[ELEM_HREF],"_blank");win.focus();inst.finish();return}else inst.showWeb(elem,false)};inst.showMP3=function(elem){};inst.showDiv=function(elem){inst.showTitle(elem[ELEM_TITLE],elem[ELEM_DESCRIPTION]);var winWidth=$(window).width();var winH=inst.getWinH();var navH=inst.options.shownavigation&&inst.navvisible?inst.options.navheight:0;var elemSize=inst.getElemSize(elem,winWidth,winH-navH);var sizeObj=inst.calcElemSize(elemSize,inst.options.contentkeepratio); 186 var dataW=sizeObj.w;var dataH=sizeObj.h;inst.resizeLightbox(dataW,dataH,true,function(){inst.$loading.hide();inst.$image.html("<div class='html5lightbox-div' id='html5lightbox-div"+inst.options.curElem+"' style='display:block;width:100%;height:"+(inst.options.autoresizecontent?"auto":"100%")+";"+(inst.options.isIOS?"-webkit-overflow-scrolling:touch;overflow-y:scroll;":"overflow:auto;")+"'></div>").show();var divID=elem[ELEM_HREF];if($(divID).length>0)$(divID).children().appendTo($("#html5lightbox-div"+ 187 inst.options.curElem,inst.$image));else $("#html5lightbox-div"+inst.options.curElem,inst.$image).html("<div class='html5-error'>The specified div ID does not exist.</div>");inst.$elem.show();inst.showData();if(inst.options.autoresizecontent)inst.resizeWindow();if(inst.autosliding){inst.slideTimeout.stop();inst.slideTimeout.start()}})};inst.isSameDomain=function(href){if(href.substring(0,5)!="http:"&&href.substring(0,6)!="https:")return true;var link=document.createElement("a");link.setAttribute("href", 188 href);var result=link.protocol==document.location.protocol&&link.host==document.location.host&&link.port==document.location.port;link=null;return result};inst.showWeb=function(elem,pdfobject){inst.showTitle(elem[ELEM_TITLE],elem[ELEM_DESCRIPTION]);var winWidth=$(window).width();var winH=inst.getWinH();var navH=inst.options.shownavigation&&inst.navvisible?inst.options.navheight:0;var elemSize=inst.getElemSize(elem,winWidth,winH-navH);var sizeObj=inst.calcElemSize(elemSize,inst.options.contentkeepratio); 189 var dataW=sizeObj.w;var dataH=sizeObj.h;inst.resizeLightbox(dataW,dataH,true,function(){inst.$image.html("<div class='html5lightbox-web' style='display:block;width:100%;height:100%;"+(inst.options.isIOS?"-webkit-overflow-scrolling:touch;overflow-y:scroll;":"")+"'></div>").show();if(pdfobject){$(".html5lightbox-web",inst.$image).html("<object data='"+elem[ELEM_HREF]+"' type='application/pdf' width='100%' height='100%'></object>");inst.$loading.hide()}else $(".html5lightbox-web",inst.$image).html("<iframe style='margin:0;padding:0;border:0;' class='html5lightbox-web-iframe' width='100%' height='100%' src='"+ 190 elem[ELEM_HREF]+"' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>");$(".html5lightbox-web-iframe",inst.$image).on("load",function(){inst.$loading.hide()});inst.$elem.show();inst.showData();if(inst.options.autoresizecontent&&inst.isSameDomain(elem[ELEM_HREF])){$(".html5lightbox-web-iframe",inst.$image).data("sameorigin",true);$(".html5lightbox-web-iframe",inst.$image).on("load",function(){$(this).data("sameoriginloaded",true);inst.resizeWindow()})}if(inst.autosliding){inst.slideTimeout.stop(); 191 inst.slideTimeout.start()}})};inst.scrollBox=function(){};inst.resizeWindow=function(){if(!inst.currentElem)return;if(!inst.options.responsive)return;var winWidth=$(window).width();var winH=inst.getWinH();if(!(inst.options.showtitle&&inst.currentElem[ELEM_TITLE]&&inst.currentElem[ELEM_TITLE].length>0||inst.options.showdescription&&inst.currentElem[ELEM_DESCRIPTION]&&inst.currentElem[ELEM_DESCRIPTION].length>0||inst.options.inGroup&&(inst.options.showplaybutton||inst.options.showtitleprefix)))inst.options.barheight= 192 0;var elemSize,keepratio;if(!inst.options.contentkeepratio&&(inst.currentElem[ELEM_TYPE]==5||inst.currentElem[ELEM_TYPE]==7||inst.currentElem[ELEM_TYPE]==10)){var navH=inst.options.shownavigation&&inst.navvisible?inst.options.navheight:0;elemSize=inst.getElemSize(inst.currentElem,winWidth,winH-navH);keepratio=false}else{elemSize=inst.getElemSize(inst.currentElem);keepratio=inst.currentElem[ELEM_TYPE]==0?inst.options.imagekeepratio:true}var sizeObj=inst.calcElemSize(elemSize,keepratio);inst.adjustLightboxPos(sizeObj.w, 193 sizeObj.h);inst.adjustDataHeight();if(inst.options.autoresizecontent&&!inst.options.contentkeepratio&&(inst.currentElem[ELEM_TYPE]==5||inst.currentElem[ELEM_TYPE]==7||inst.currentElem[ELEM_TYPE]==10)){var resizeHeight=false;if(inst.currentElem[ELEM_TYPE]==7&&$(".html5lightbox-web-iframe",inst.$lightbox).length>0&&$(".html5lightbox-web-iframe",inst.$lightbox).data("sameoriginloaded")){var iframe=$(".html5lightbox-web-iframe",inst.$lightbox)[0];if(iframe&&iframe.contentWindow&&iframe.contentWindow.document&& 194 iframe.contentWindow.document.documentElement.offsetHeight)if(elemSize.h>iframe.contentWindow.document.documentElement.offsetHeight){elemSize.h=iframe.contentWindow.document.documentElement.offsetHeight;resizeHeight=true}}else if(inst.currentElem[ELEM_TYPE]==10&&$(".html5lightbox-div",inst.$lightbox).length>0){var divH=$(".html5lightbox-div",inst.$lightbox).height();if(elemSize.h>divH){elemSize.h=divH;resizeHeight=true}}if(resizeHeight){sizeObj=inst.calcElemSize(elemSize,keepratio);inst.adjustLightboxPos(sizeObj.w, 195 sizeObj.h)}}if($(".html5-nav").length<=0)return;$(".html5-nav-list").css({"margin-left":0});var $navMask=$(".html5-nav-mask");var $navPrev=$(".html5-nav-prev");var $navNext=$(".html5-nav-next");var winWidth=$(window).width();if(inst.options.totalwidth<=winWidth){$navMask.css({width:inst.options.totalwidth+"px"});$navPrev.hide();$navNext.hide()}else{$navMask.css({width:winWidth-2*inst.options.navbuttonwidth+"px"});$navPrev.show();$navNext.show()}};inst.calcElemSize=function(sizeObj,keepratio){if(!inst.options.responsive)return sizeObj; 196 var winWidth=$(window).width();var winH=inst.getWinH();winH=winH?winH:$(document).height();var strW=String(sizeObj.w);if(strW.charAt(strW.length-1)=="%")sizeObj.w=winWidth*parseFloat(strW.substring(0,strW.length-1))/100;var strH=String(sizeObj.h);if(strH.charAt(strH.length-1)=="%")sizeObj.h=winH*parseFloat(strH.substring(0,strH.length-1))/100;var navH=inst.options.shownavigation&&inst.navvisible?inst.options.navheight:0;var topmargin=$(window).height()<inst.options.smallscreenheight?inst.options.bordertopmarginsmall: 197 inst.options.bordertopmargin;var h0=winH-navH-2*inst.options.bordersize-2*topmargin;if(inst.options.responsivebarheight)if(winH<=inst.options.smallscreenheight)inst.options.barheight=inst.options.barheightonsmallheight;else inst.options.barheight=inst.options.barheightoriginal;if(inst.options.titlestyle=="bottom")h0-=inst.options.barheight;else if(inst.options.titlestyle=="outside")h0-=inst.$elemData.outerHeight();var w0=winWidth-2*inst.options.bordersize-2*inst.options.bordermargin;if(inst.options.resizeleftright&& 198 (inst.options.titlestyle=="left"||inst.options.titlestyle=="right")&&winWidth>inst.options.sidetobottomscreenwidth)w0-=2*inst.options.bordersize;if(inst.options.fullscreenmode&&winWidth>inst.options.navarrowsbottomscreenwidth||inst.options.isTouch&&inst.options.navarrowsalwaysshowontouch&&winWidth>inst.options.navarrowsbottomscreenwidth)w0-=64;if(inst.options.notkeepratioonsmallheight&&winH<=inst.options.smallscreenheight)keepratio=false;if(keepratio){var originWidth=inst.currentElem[ELEM_TYPE]== 199 0?inst.currentElem[ELEM_ORIGINALWIDTH]:sizeObj.w;var originHeight=inst.currentElem[ELEM_TYPE]==0?inst.currentElem[ELEM_ORIGINALHEIGHT]:sizeObj.h;if(inst.options.resizeleftright&&(inst.options.titlestyle=="left"||inst.options.titlestyle=="right")&&winWidth>inst.options.sidetobottomscreenwidth){var ratio=originWidth/originHeight;sizeObj.h=Math.round(sizeObj.w/ratio);if(sizeObj.h>h0){sizeObj.w=Math.round(ratio*h0);sizeObj.h=h0}if((sizeObj.w+2*inst.options.bordersize)*100/inst.options.imagepercentage> 200 w0){sizeObj.w=w0*inst.options.imagepercentage/100-2*inst.options.bordersize;sizeObj.h=Math.round(sizeObj.w/ratio)}sizeObj.w=(sizeObj.w+2*inst.options.bordersize)*100/inst.options.imagepercentage-2*inst.options.bordersize}else{var ratio=originWidth/originHeight;sizeObj.h=Math.round(sizeObj.w/ratio);if(sizeObj.h>h0){sizeObj.w=Math.round(ratio*h0);sizeObj.h=h0}if(sizeObj.w>w0){sizeObj.h=Math.round(w0/ratio);sizeObj.w=w0}}}else{if(inst.options.resizeleftright&&(inst.options.titlestyle=="left"||inst.options.titlestyle== 201 "right")&&winWidth>inst.options.sidetobottomscreenwidth)sizeObj.w=sizeObj.w*100/inst.options.imagepercentage;if(sizeObj.h>h0)sizeObj.h=h0;else if(inst.options.maxheight)sizeObj.h=h0;if(sizeObj.w>w0)sizeObj.w=w0}return sizeObj};inst.adjustDataHeight=function(){var winWidth=$(window).width();var winH=inst.getWinH();var isBottomText=inst.options.titlestyle=="bottom"||inst.options.titlestyle=="outside"||(inst.options.titlestyle=="left"||inst.options.titlestyle=="right")&&winWidth<=inst.options.sidetobottomscreenwidth; 202 if(inst.options.responsivebarheight)if(winH<=inst.options.smallscreenheight)inst.options.barheight=inst.options.barheightonsmallheight;else inst.options.barheight=inst.options.barheightoriginal;if(isBottomText){var topmargin=$(window).height()<inst.options.smallscreenheight?inst.options.bordertopmarginsmall:inst.options.bordertopmargin;var navH=inst.options.shownavigation&&inst.navvisible?inst.options.navheight:0;var winH=inst.getWinH();var maxH=winH-topmargin-navH;var barHeight=inst.options.barautoheight? 203 inst.$elemData.outerHeight():inst.options.barheight;var totalHeight=inst.$elemWrap.outerHeight()+barHeight;var elemHeight=Math.min(maxH,totalHeight);var boxMargin=(winH-navH-elemHeight)/2;inst.$elem.css({"max-height":elemHeight+"px"});var topmargin=$(window).height()<inst.options.smallscreenheight?inst.options.bordertopmarginsmall:inst.options.bordertopmargin;if(boxMargin<topmargin)boxMargin=topmargin;if(inst.options.insideiframe&&window.self!=window.top){boxMargin=inst.options.iframetopmargin>0? 204 inst.options.iframetopmargin:topmargin;if(inst.options.iframesamedomain&&parent.window.jQuery&&parent.window.jQuery("#"+inst.options.iframeid).length){var iframetop=parent.window.jQuery("#"+inst.options.iframeid).offset().top;var parentscroll=parent.window.document.body.scrollTop;boxMargin+=parentscroll>iframetop?parentscroll-iframetop:0}}if(inst.options.transition=="crossfade"&&inst.$prevelem)inst.$prevelem.css({"top":String(inst.existingBoxT-boxMargin)+"px"});inst.$lightboxBox.css({"margin-top":boxMargin+ 205 "px"})}else inst.$elem.css({"max-height":"none"});if(inst.options.titlestyle=="bottom"||inst.options.titlestyle=="inside")inst.$lightboxBox.css({height:"auto"});if(inst.options.positionFixed)$("#html5-lightbox-overlay",inst.$lightbox).css({height:Math.max($(window).height(),$(document).height())});else $("#html5-lightbox-overlay",inst.$lightbox).css({height:"100%"})};inst.showData=function(){if(inst.$text.text().length>0)inst.$elemData.show();inst.adjustDataHeight();$(window).trigger("html5lightbox.lightboxopened")}; 206 inst.resizeLightbox=function(elemW,elemH,bAnimate,onFinish,speedZero){inst.hideNavArrows();var boxPos=inst.calcBoxPosition(elemW,elemH);var boxW=boxPos[0];var boxH=boxPos[1];var boxT=boxPos[2];inst.$loading.hide();inst.$watermark.hide();if(inst.options.nextElem<=inst.options.curElem)if(inst.options.onlastitem&&window[inst.options.onlastitem]&&typeof window[inst.options.onlastitem]=="function")window[inst.options.onlastitem](inst.currentElem);if(inst.options.prevElem>=inst.options.curElem)if(inst.options.onfirstitem&& 207 window[inst.options.onfirstitem]&&typeof window[inst.options.onfirstitem]=="function")window[inst.options.onfirstitem](inst.currentElem);if(!inst.options.fullscreenmode&&!(inst.options.navarrowspos=="side")&&!(inst.options.navarrowspos=="browserside")&&(!inst.options.isTouch||!inst.options.navarrowsalwaysshowontouch)&&!inst.options.alwaysshownavarrows){inst.$lightboxBox.on("mouseenter mousemove",function(){if(inst.options.arrowloop&&inst.options.prevElem>=0||!inst.options.arrowloop&&inst.options.prevElem>= 208 0&&inst.options.prevElem<inst.options.curElem)inst.$prev.fadeIn();if(inst.options.arrowloop&&inst.options.nextElem>=0||!inst.options.arrowloop&&inst.options.nextElem>=0&&inst.options.nextElem>inst.options.curElem)inst.$next.fadeIn()});inst.$lightboxBox.on("mouseleave",function(){inst.$next.fadeOut();inst.$prev.fadeOut()})}inst.existingBoxT=parseFloat(inst.$lightboxBox.css("margin-top"));inst.$lightboxBox.css({"margin-top":boxT});inst.resizePositionFixed();var speed=bAnimate?inst.options.resizespeed: 209 0;if(inst.options.fullscreenmode&&inst.options.fullscreennotransition)speed=0;if((inst.options.transition=="slide"||inst.options.transition=="crossfade")&&inst.existingElem>=0)speed=0;if(typeof speedZero!=="undefined"&&speedZero)speed=0;if(inst.options.enteranimation){speed=0;if(!inst.$lightboxBox.hasClass("html5box-enter-animated")){inst.$lightboxBox.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){inst.$lightboxBox.removeClass("html5box-"+inst.options.enteranimation)}); 210 inst.$lightboxBox.addClass("html5box-enter-animated html5box-"+inst.options.enteranimation)}}var winWidth=$(window).width();if((inst.options.titlestyle=="left"||inst.options.titlestyle=="right")&&winWidth>inst.options.sidetobottomscreenwidth){if(boxW==inst.$lightboxBox.width()&&boxH==inst.$lightboxBox.height())speed=0;inst.$lightboxBox.animate({width:boxW},speed).animate({height:boxH},speed,function(){inst.onAnimateFinish(onFinish)})}else{if(boxW==inst.$elemWrap.width()&&boxH==inst.$elemWrap.height())speed= 211 0;inst.$lightboxBox.css({"width":boxW,"height":"auto"});inst.$elemWrap.animate({width:boxW},speed).animate({height:boxH},speed,function(){inst.onAnimateFinish(onFinish)})}};inst.onAnimateFinish=function(onFinish){inst.$loading.show();inst.$watermark.show();inst.$close.show();inst.$elem.css({"background-color":inst.options.bgcolor});inst.resizePositionFixed();onFinish();inst.finishCallback();$(window).trigger("html5lightbox.lightboxshowend")};inst.finishCallback=function(){if((inst.options.transition== 212 "slide"||inst.options.transition=="crossfade")&&inst.existingElem>=0)if(inst.options.transition=="slide"){inst.$prevelem.animate({left:inst.direction==-1?"-100%":"100%",opacity:0},{duration:inst.options.transitionduration});inst.$elem.animate({left:0,opacity:1},{duration:inst.options.transitionduration,always:function(){inst.$prevelem.remove();inst.$elem.removeClass("html5-elem-box-current").css({position:"relative",height:"100%"})}})}else{inst.$prevelem.animate({opacity:0},{duration:inst.options.transitionduration}); 213 inst.$elem.animate({opacity:1},{duration:inst.options.transitionduration,always:function(){inst.$prevelem.remove();$(".html5-prev-inside, .html5-next-inside, .html5-prev-outside, .html5-next-outside",inst.$lightbox).css({visibility:"visible"});inst.$elem.removeClass("html5-elem-box-current").css({position:"relative",height:"100%"})}})}},inst.resetDiv=function(elemID){if(inst.elemArray.length>0&&elemID>=0)if(inst.elemArray[elemID][ELEM_TYPE]==10){var divID=inst.elemArray[elemID][ELEM_HREF];if($(divID).length> 214 0)$("#html5lightbox-div"+elemID).children().appendTo($(divID))}};inst.reset=function(){if(inst.options.stamp)inst.$watermark.hide();inst.showing=false;inst.$image.empty();inst.$text.empty();inst.$error.hide();inst.$loading.hide();inst.$image.hide();if(inst.options.titlestyle=="bottom"||inst.options.titlestyle=="inside")inst.$elemData.hide();if(!inst.options.fullscreenmode)inst.$close.hide();inst.$elem.css({"background-color":""})};inst.resetNavigation=function(){inst.options.navheight=0;$(".html5-nav").remove(); 215 inst.navvisible=false};inst.finish=function(){if($(".html5-nav").length>0)$(".html5-nav").addClass("html5box-animated html5box-fadeOutDown");if(inst.options.enteranimation)inst.$lightboxBox.removeClass("html5box-enter-animated html5box-"+inst.options.enteranimation);if(inst.options.exitanimation=="fadeOut"||inst.options.exitanimation=="fadeOutDown"){inst.$lightbox.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){inst.$lightboxBox.removeClass("html5box-animated html5box-"+ 216 inst.options.exitanimation);inst.$lightbox.removeClass("html5box-animated html5box-fadeOut");inst.finishDone()});inst.$lightbox.addClass("html5box-animated html5box-fadeOut");inst.$lightboxBox.addClass("html5box-animated html5box-"+inst.options.exitanimation)}else inst.finishDone()};inst.finishDone=function(){inst.existingElem=-1;inst.resetDiv(inst.options.curElem);if($(".html5-lightbox-video",inst.$lightbox).length)$(".html5-lightbox-video",inst.$lightbox).attr("src","");$("head").find("style").each(function(){if($(this).data("creator")== 217 "slider-html5-lightbox")$(this).remove()});if(inst.options.bodynoscroll)$("html,body").removeClass("bodynoscroll");inst.slideTimeout.stop();inst.reset();inst.resetNavigation();inst.$lightbox.remove();$("#slider-html5-lightbox").remove();inst.showObjects();if(inst.options.oncloselightbox&&window[inst.options.oncloselightbox]&&typeof window[inst.options.oncloselightbox]=="function")window[inst.options.oncloselightbox](inst.currentElem);if(inst.onLightboxClosed&&typeof inst.onLightboxClosed=="function")inst.onLightboxClosed(inst.currentElem); 218 $(window).trigger("html5lightbox.lightboxclosed")};inst.pauseSlide=function(){};inst.playSlide=function(){};inst.gotoSlide=function(slide){inst.existingElem=inst.options.curElem;inst.direction=slide;inst.resetDiv(inst.options.curElem);if(slide==-1){if(inst.options.nextElem<0)return;inst.options.curElem=inst.options.nextElem}else if(slide==-2){if(inst.options.prevElem<0)return;inst.options.curElem=inst.options.prevElem}else if(slide>=0){inst.direction=slide>inst.options.curElem?-1:-2;inst.options.curElem= 219 slide}if(inst.autosliding)inst.slideTimeout.stop();inst.calcNextPrevElem();if(inst.options.transition!="slide"&&inst.options.transition!="crossfade")inst.reset();inst.loadCurElem();if(inst.options.titlestyle=="inside"&&inst.options.showonmouseoverinside&&inst.currentElem[ELEM_TYPE]!==0&&inst.options.showinsidetitleforimageonly)inst.$elemData.css({opacity:0})};inst.enableSwipe=function(){var preventDefault=inst.options.isAndroid&&(inst.options.swipepreventdefaultonandroid||inst.options.androidVersion>= 220 0&&inst.options.androidVersion<=5)?true:false;inst.$lightboxBox.sliderTouchSwipe({preventWebBrowser:preventDefault,swipeDistance:inst.options.swipedistance,swipeLeft:function(){if(inst.options.inGroup)inst.gotoSlide(-1)},swipeRight:function(){if(inst.options.inGroup)inst.gotoSlide(-2)}})};inst.hideObjects=function(){$("embed, object").css({"visibility":"hidden"})};inst.showObjects=function(){$("embed, object").css({"visibility":"visible"})};inst.embedHTML5Video=function($container,src,autoplay,loopvideo, 221 mutevideo,playsinline){$container.html("<div style='display:block;width:100%;height:100%;position:relative;'><video class='html5-lightbox-video' width='100%' height='100%'"+(inst.options.html5videoposter&&inst.options.html5videoposter.length>0?"poster='"+inst.options.html5videoposter+"'":"")+(autoplay?" autoplay":"")+(loopvideo?" loop":"")+(mutevideo?" muted":"")+(playsinline?" playsinline":"")+(inst.options.nativehtml5controls&&!inst.options.videohidecontrols?" controls='controls'":"")+(inst.options.nativecontrolsnodownload? 222 ' controlsList="nodownload"':"")+" src='"+src+"'>"+(inst.options.showsubtitle&&inst.options.vtturl?'<track default src="'+inst.options.vtturl+'" kind="subtitles" srclang="'+inst.options.vttlang+'" label="'+inst.options.vttlabel+'">':"")+"</video></div>");if(mutevideo)inst.options.defaultvideovolume=0;if(!inst.options.nativehtml5controls&&!inst.options.videohidecontrols){$("video",$container).data("src",src);$("video",$container).asHTML5VideoControls(inst.options.skinsfolder,inst,".html5-lightbox-video", 223 inst.options.videohidecontrols,false,inst.options.defaultvideovolume,inst.options.nativecontrolsonfullscreen,inst.options.nativecontrolsnodownload,null,inst.options.showsubtitle,inst.options.vttline,inst.options.showsubtitlebydefault)}$("video",$container).off("ended").on("ended",function(){$(window).trigger("html5lightbox.videofinished");if(inst.autosliding)inst.gotoSlide(-1);else if(inst.options.autoclose)setTimeout(function(){inst.finish()},inst.options.autoclosedelay)})};inst.embedFlash=function($container, 224 src,wmode,flashVars){if(inst.options.flashInstalled){var htmlOptions={pluginspage:"https://www.adobe.com/go/getflashplayer",quality:"high",allowFullScreen:"true",allowScriptAccess:"always",type:"application/x-shockwave-flash"};htmlOptions.width="100%";htmlOptions.height="100%";htmlOptions.src=src;htmlOptions.flashVars=$.param(flashVars);htmlOptions.wmode=wmode;var htmlString="";for(var key in htmlOptions)htmlString+=key+"="+htmlOptions[key]+" ";$container.html("<embed "+htmlString+"/>")}else $container.html("<div class='html5lightbox-flash-error' style='display:block; position:relative;text-align:center; width:100%; left:0px; top:40%;'><div class='html5-error'><div>The required Adobe Flash Player plugin is not installed</div><br /><div style='display:block;position:relative;text-align:center;width:112px;height:33px;margin:0px auto;'><a href='https://www.adobe.com/go/getflashplayer'><img src='https://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33'></img></a></div></div>")}; 225 inst.checkType=function(href){if(!href)return-1;if(href.match(/\.(jpg|gif|png|bmp|jpeg|webp)(.*)?$/i))return 0;if(href.match(/[^\.]\.(swf)\s*$/i))return 1;if(href.match(/\.(mp4|m4v|ogv|ogg|webm)(.*)?$/i))return 2;if(href.match(/\:\/\/.*(youtube\.com)/i)||href.match(/\:\/\/.*(youtu\.be)/i)||href.match(/\:\/\/.*(youtube-nocookie\.com)/i))return 3;if(href.match(/\:\/\/.*(vimeo\.com)/i))return 4;if(href.match(/\:\/\/.*(dailymotion\.com)/i)||href.match(/\:\/\/.*(dai\.ly)/i))return 9;if(href.match(/[^\.]\.(pdf)/i))return 5; 226 if(href.match(/[^\.]\.(mp3)\s*$/i))return 6;if(href.match(/[^\.]\.(flv)\s*$/i))return 8;if(href.match(/^\#\w+/i))return 10;if(href.match(/\:\/\/.*(wistia)/i))return 11;return 7};inst.getURLParams=function(){var result={};var params=window.location.search.substring(1).split("&");for(var i=0;i<params.length;i++){var value=params[i].split("=");if(value&&value.length==2)result[value[0].toLowerCase()]=unescape(value[1])}return result};inst.absoluteUrl=function(href){var link=document.createElement("a"); 227 link.href=href;return link.protocol+"//"+link.host+link.pathname+link.search+link.hash};inst.showLightboxObject=function(obj){if(obj)inst.showLightbox(obj.type,obj.href,obj.title,obj.width,obj.height,obj.webm,obj.ogg,obj.thumbnail,obj.description,obj.div,obj.originalwidth,obj.originalheight,obj.socialmedia,obj.weblink,obj.weblinktarget,obj.weblinktext,obj.group,obj.mediumwidth,obj.mediumheight,obj.smallwidth,obj.smallheight)};inst.showLightbox=function(type,href,title,width,height,webm,ogg,thumbnail, 228 description,div,originalwidth,originalheight,socialmedia,weblink,weblinktarget,weblinktext,group,mediumwidth,mediumheight,smallwidth,smallheight){inst.options=$.extend(inst.options,inst.defaultoptions);$(window).trigger("html5lightbox.lightboxshow");inst.init();inst.reset();inst.$lightbox.show();inst.adjustLightboxPos(inst.options.loadingwidth,inst.options.loadingheight);inst.loadElem(new Array(type,href,title,group,width,height,webm,ogg,thumbnail,description,div,originalwidth,originalheight,socialmedia, 229 weblink,weblinktarget,weblinktext,mediumwidth,mediumheight,smallwidth,smallheight))};inst.addItemNoDuplicate=function(href,title,group,width,height,webm,ogg,thumbnail,description,mediatype,mediumwidth,mediumheight,smallwidth,smallheight){for(var i=0;i<inst.elemArray.length;i++)if(inst.elemArray[i][ELEM_HREF]==href)return;inst.addItem(href,title,group,width,height,webm,ogg,thumbnail,description,mediatype,mediumwidth,mediumheight,smallwidth,smallheight)};inst.addItem=function(href,title,group,width, 230 height,webm,ogg,thumbnail,description,mediatype,mediumwidth,mediumheight,smallwidth,smallheight){type=mediatype&&mediatype>=0?mediatype:inst.checkType(href);inst.elemArray.push(new Array(type,href,title,group,width,height,webm,ogg,thumbnail,description,null,null,null,null,null,null,null,mediumwidth,mediumheight,smallwidth,smallheight))};inst.showItem=function(href){inst.options=$.extend(inst.options,inst.defaultoptions);$(window).trigger("html5lightbox.lightboxshow");inst.init();if(inst.elemArray.length<= 231 0)return true;inst.hideObjects();for(var i=0;i<inst.elemArray.length;i++)if(inst.elemArray[i][ELEM_HREF]==href)break;if(i==inst.elemArray.length)return true;inst.options.curElem=i;inst.calcNextPrevElem();inst.reset();inst.$lightbox.show();inst.adjustLightboxPos(inst.options.loadingwidth,inst.options.loadingheight);inst.loadCurElem();return false};inst.each(function(){var self=$(this);var nodeName=this.nodeName.toLowerCase();if(nodeName=="a"||nodeName=="area")self.off("click").click(inst.clickHandler); 232 else self.find("a,area").each(function(){$(this).off("click").click(inst.clickHandler)});var autoopen=false;var autoopendelay=0;var autoopenonce=false;var autoopenonceexpire=0;if(typeof html5lightbox_options!="undefined"&&html5lightbox_options){if("autoopen"in html5lightbox_options)autoopen=html5lightbox_options.autoopen;if("autoopendelay"in html5lightbox_options)autoopendelay=html5lightbox_options.autoopendelay;if("autoopenonce"in html5lightbox_options)autoopenonce=html5lightbox_options.autoopenonce; 233 if("autoopenonceexpire"in html5lightbox_options)autoopenonceexpire=html5lightbox_options.autoopenonceexpire}autoopen=self.data("autoopen")?self.data("autoopen"):autoopen;autoopendelay=self.data("autoopendelay")?self.data("autoopendelay"):autoopendelay;autoopenonce=self.data("autoopenonce")?self.data("autoopenonce"):autoopenonce;autoopenonceexpire=self.data("autoopenonceexpire")?self.data("autoopenonceexpire"):autoopenonceexpire;var classoptions=inst.readClassOptions(self);if(classoptions){if("autoopen"in 234 classoptions)autoopen=classoptions.autoopen;if("autoopendelay"in classoptions)autoopendelay=classoptions.autoopendelay;if("autoopenonce"in classoptions)autoopenonce=classoptions.autoopenonce;if("autoopenonceexpire"in classoptions)autoopenonceexpire=classoptions.autoopenonceexpire}autocookie="html5lightboxpopup=1;path=/";if(autoopenonceexpire>0){var expires=new Date;expires.setTime(expires.getTime()+autoopenonceexpire*60*60*1E3);autocookie+=";expires="+expires.toUTCString()}if(autoopen){var is_popped= 235 false;if(autoopenonce){var cookies=document.cookie?document.cookie.split(";"):[];for(var i in cookies){var parts=$.trim(cookies[i]).split("=");if(parts.length&&parts[0]=="html5lightboxpopup"){is_popped=true;break}}}if(!is_popped)setTimeout(function(){self.click();document.cookie=autocookie},autoopendelay)}if(self.data("preloadonpageload")){var fileType="mediatype"in self.data()?self.data("mediatype"):inst.checkType(self.attr("href"));if(fileType==0){var preloaddelay=self.data("preloaddelay")?self.data("preloaddelay"): 236 0;setTimeout(function(){(new Image).src=self.attr("href")},preloaddelay)}}});if(inst.options.preloadallonpageload)setTimeout(function(){inst.each(function(){if(this.nodeName.toLowerCase()!="a"&&this.nodeName.toLowerCase()!="area")return;var fileType="mediatype"in $(this).data()?$(this).data("mediatype"):inst.checkType($(this).attr("href"));if(fileType!==0)return;(new Image).src=$(this).attr("href");if($(this).data("thumbnail"))(new Image).src=$(this).data("thumbnail")})},inst.options.preloadalldelay); 237 return inst}})(jQuery); 168 inst.calcElemSize(elemSize,true);var dataW=sizeObj.w;var dataH=sizeObj.h;inst.resizeLightbox(dataW,dataH,true,function(){inst.$loading.hide();inst.$image.html("<div class='html5lightbox-error' style='position:absolute;top:50%;left:50%;transform: translate(-50%, -50%);'>Adobe Flash has been discontinued!</div>").show();inst.$elem.show();inst.showData();if(inst.autosliding){inst.slideTimeout.stop();inst.slideTimeout.start()}})};inst.showVideo=function(elem){inst.slideTimeout.stop();inst.showTitle(elem[ELEM_TITLE], 169 elem[ELEM_DESCRIPTION]);var elemSize=inst.getElemSize(elem);var sizeObj=inst.calcElemSize(elemSize,true);var dataW=sizeObj.w;var dataH=sizeObj.h;inst.resizeLightbox(dataW,dataH,true,function(){inst.$loading.hide();inst.$image.html("<div class='html5lightbox-video' style='display:block;width:100%;height:100%;overflow:hidden;background-color:"+inst.options.videobgcolor+";'></div>").show();var videoSrc=elem[ELEM_HREF];if(inst.options.isFirefox||inst.options.isOpera)if(elem[ELEM_HREF_WEBM])videoSrc=elem[ELEM_HREF_WEBM]; 170 else if(elem[ELEM_HREF_OGG])videoSrc=elem[ELEM_HREF_OGG];inst.embedHTML5Video($(".html5lightbox-video",inst.$image),videoSrc,inst.options.autoplay,inst.options.loopvideo,inst.options.mutevideo,inst.options.playsinline);if(elem[ELEM_WEBLINK]&&elem[ELEM_WEBLINK].length>0)$(".html5-lightbox-video",inst.$image).css({cursor:"pointer"}).click(function(){if(elem[ELEM_WEBLINKTARGET]&&elem[ELEM_WEBLINKTARGET].length>0)window.open(elem[ELEM_WEBLINK],elem[ELEM_WEBLINKTARGET]);else window.open(elem[ELEM_WEBLINK])}); 171 inst.$elem.show();inst.showData()},inst.options.isMobile&&inst.options.autoplayhtml5onmobile)};inst.loadNext=function(){$(window).trigger("html5lightbox.videofinished");if(inst.autosliding)inst.gotoSlide(-1);else if(inst.options.autoclose)setTimeout(function(){inst.finish()},inst.options.autoclosedelay)};inst.getYoutubeParams=function(href){var result={};if(href.indexOf("?")<0)return result;var params=href.substring(href.indexOf("?")+1).split("&");for(var i=0;i<params.length;i++){var value=params[i].split("="); 172 if(value&&value.length==2&&value[0].toLowerCase()!="v")result[value[0].toLowerCase()]=value[1]}return result};inst.getYoutubeId=function(href){var youtubeId="";var regExp=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\??v?=?))([^#\&\?]*).*/;var match=href.match(regExp);if(match&&match[7]&&match[7].length==11)youtubeId=match[7];return youtubeId};inst.prepareYoutubeHref=function(href){var youtubeId=inst.getYoutubeId(href);var protocol="https:";var youtubeDomain=href.indexOf("youtube-nocookie")>= 173 0?"youtube-nocookie":"youtube";var result=protocol+"//www."+youtubeDomain+".com/embed/"+youtubeId;var params=this.getYoutubeParams(href);var first=true;for(var key in params){if(first){result+="?";first=false}else result+="&";result+=key+"="+params[key]}return result};inst.prepareDailymotionHref=function(href){if(href.match(/\:\/\/.*(dai\.ly)/i)){var protocol="https:";var id=href.match(/(dai\.ly\/)([a-zA-Z0-9\-\_]+)/)[2];href=protocol+"//www.dailymotion.com/embed/video/"+id}return href};inst.showYoutubeVimeo= 174 function(elem){inst.slideTimeout.stop();inst.showTitle(elem[ELEM_TITLE],elem[ELEM_DESCRIPTION]);var elemSize=inst.getElemSize(elem);var sizeObj=inst.calcElemSize(elemSize,true);var dataW=sizeObj.w;var dataH=sizeObj.h;if(inst.options.noresizecallback){inst.resizeLightbox(dataW,dataH,true,function(){inst.showData()});inst.showYouTubeVimeoCallback(elem,sizeObj)}else inst.resizeLightbox(dataW,dataH,true,function(){inst.showYouTubeVimeoCallback(elem,sizeObj);inst.showData()})};inst.showYouTubeVimeoCallback= 175 function(elem,sizeObj){inst.$loading.hide();inst.$image.html("<div class='html5lightbox-video' style='display:block;width:100%;height:100%;overflow:hidden;'></div>").show();var href=elem[ELEM_HREF];var youtubeid="";if(elem[ELEM_TYPE]==3){youtubeid=inst.getYoutubeId(href);href=inst.prepareYoutubeHref(href)}if(elem[ELEM_TYPE]==9)href=inst.prepareDailymotionHref(href);if(inst.options.autoplay){href+=href.indexOf("?")<0?"?":"&";if(elem[ELEM_TYPE]==11)href+="autoPlay=true";else href+="autoplay=1"}if(inst.options.loopvideo){href+= 176 href.indexOf("?")<0?"?":"&";switch(elem[ELEM_TYPE]){case 3:href+="loop=1&playlist="+youtubeid;break;case 4:case 9:href+="loop=1";break;case 11:href+="endVideoBehavior=loop";break}}if(elem[ELEM_TYPE]==3){if(href.indexOf("?")<0)href+="?wmode=transparent&rel=0";else href+="&wmode=transparent&rel=0";if(inst.options.videohidecontrols)href+="&controls=0&showinfo=0";if(inst.options.mutevideo)href+="&mute=1";if(inst.options.playsinline)href+="&playsinline=1";href+="&enablejsapi=1&origin="+document.location.protocol+ 177 "//"+document.location.hostname}else if(elem[ELEM_TYPE]==4){href+=href.indexOf("?")<0?"?":"&";href+="api=1&player_id=html5boxiframevideo"+inst.options.curElem;if(inst.options.mutevideo)href+="&muted=1";if(inst.options.playsinline)href+="&playsinline=1";href+="&origin="+document.location.protocol+"//"+document.location.hostname}$(".html5lightbox-video",inst.$image).html("<iframe style='margin:0;padding:0;border:0;' class='html5boxiframevideo' id='html5boxiframevideo"+inst.options.curElem+"' width='100%' height='100%' src='"+ 178 href+"' frameborder='0' allow='autoplay' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>");inst.$elem.show();if(elem[ELEM_TYPE]==3){if(inst.options.inityoutube){inst.youtubeFinishCount=0;inst.initYoutubeFinishCallback()}}else if(elem[ELEM_TYPE]==4)if(inst.options.initvimeo){inst.vimeoFinishCount=0;inst.initVimeoFinishCallback()}};inst.initYoutubeFinishCallback=function(){if(typeof YT==="object"&&typeof YT.Player==="function")inst.ytplayer=new YT.Player("html5boxiframevideo"+inst.options.curElem, 179 {events:{"onStateChange":function(event){if(event.data==YT.PlayerState.ENDED){$(window).trigger("html5lightbox.videofinished");if(inst.autosliding)inst.gotoSlide(-1);else if(inst.options.autoclose)setTimeout(function(){inst.finish()},inst.options.autoclosedelay)}}}});else setTimeout(function(){if(inst.youtubeFinishCount<10){inst.youtubeFinishCount++;inst.initYoutubeFinishCallback()}},300)};inst.initVimeoFinishCallback=function(){if(typeof $f==="function"){var vimeoIframe=$("#html5boxiframevideo"+ 180 inst.options.curElem)[0];inst.vimeoPlayer=$f(vimeoIframe);inst.vimeoPlayer.addEvent("ready",function(){inst.vimeoPlayer.addEvent("finish",function(id){$(window).trigger("html5lightbox.videofinished");if(inst.autosliding)inst.gotoSlide(-1);else if(inst.options.autoclose)setTimeout(function(){inst.finish()},inst.options.autoclosedelay)})})}else setTimeout(function(){if(inst.vimeoFinishCount<10){inst.vimeoFinishCount++;inst.initVimeoFinishCallback()}},300)};inst.showPDF=function(elem){if(inst.options.enablepdfjs){if(inst.options.isIPhone&& 181 inst.options.openpdfinnewtaboniphone||inst.options.isIPad&&inst.options.openpdfinnewtabonipad){var win=window.open(elem[ELEM_HREF],"_blank");win.focus();inst.finish();return}if(!inst.options.pdfjsengine)inst.options.pdfjsengine=inst.options.jsfolder+"pdfjs/web/viewer.html";var href=elem[ELEM_HREF];if(href.substring(0,5)!="http:"&&href.substring(0,6)!="https:")href=inst.absoluteUrl(href);var hashindex=href.indexOf("#");if(hashindex>0)href=encodeURIComponent(href.substring(0,hashindex))+href.substring(hashindex); 182 else href=encodeURIComponent(href);var pdfelem=jQuery.extend(true,{},elem);pdfelem[ELEM_HREF]=inst.options.pdfjsengine+(inst.options.pdfjsengine.indexOf("?")<0?"?":"&")+inst.options.pdfengineurlparam+"="+href;inst.showWeb(pdfelem,false)}else if(inst.options.isIPhone||inst.options.isIPad)inst.showWeb(elem,true);else if(inst.options.isAndroid||inst.options.isIE||inst.options.isIE11){var win=window.open(elem[ELEM_HREF],"_blank");win.focus();inst.finish();return}else inst.showWeb(elem,false)};inst.showMP3= 183 function(elem){};inst.showDiv=function(elem){inst.showTitle(elem[ELEM_TITLE],elem[ELEM_DESCRIPTION]);var winWidth=$(window).width();var winH=inst.getWinH();var navH=inst.options.shownavigation&&inst.navvisible?inst.options.navheight:0;var elemSize=inst.getElemSize(elem,winWidth,winH-navH);var sizeObj=inst.calcElemSize(elemSize,inst.options.contentkeepratio);var dataW=sizeObj.w;var dataH=sizeObj.h;inst.resizeLightbox(dataW,dataH,true,function(){inst.$loading.hide();inst.$image.html("<div class='html5lightbox-div' id='html5lightbox-div"+ 184 inst.options.curElem+"' style='display:block;width:100%;height:"+(inst.options.autoresizecontent?"auto":"100%")+";"+(inst.options.isIOS?"-webkit-overflow-scrolling:touch;overflow-y:scroll;":"overflow:auto;")+"'></div>").show();var divID=elem[ELEM_HREF];if($(divID).length>0)$(divID).children().appendTo($("#html5lightbox-div"+inst.options.curElem,inst.$image));else $("#html5lightbox-div"+inst.options.curElem,inst.$image).html("<div class='html5-error'>The specified div ID does not exist.</div>");inst.$elem.show(); 185 inst.showData();if(inst.options.autoresizecontent)inst.resizeWindow();if(inst.autosliding){inst.slideTimeout.stop();inst.slideTimeout.start()}})};inst.isSameDomain=function(href){if(href.substring(0,5)!="http:"&&href.substring(0,6)!="https:")return true;var link=document.createElement("a");link.setAttribute("href",href);var result=link.protocol==document.location.protocol&&link.host==document.location.host&&link.port==document.location.port;link=null;return result};inst.showWeb=function(elem,pdfobject){inst.showTitle(elem[ELEM_TITLE], 186 elem[ELEM_DESCRIPTION]);var winWidth=$(window).width();var winH=inst.getWinH();var navH=inst.options.shownavigation&&inst.navvisible?inst.options.navheight:0;var elemSize=inst.getElemSize(elem,winWidth,winH-navH);var sizeObj=inst.calcElemSize(elemSize,inst.options.contentkeepratio);var dataW=sizeObj.w;var dataH=sizeObj.h;inst.resizeLightbox(dataW,dataH,true,function(){inst.$image.html("<div class='html5lightbox-web' style='display:block;width:100%;height:100%;"+(inst.options.isIOS?"-webkit-overflow-scrolling:touch;overflow-y:scroll;": 187 "")+"'></div>").show();if(pdfobject){$(".html5lightbox-web",inst.$image).html("<object data='"+elem[ELEM_HREF]+"' type='application/pdf' width='100%' height='100%'></object>");inst.$loading.hide()}else $(".html5lightbox-web",inst.$image).html("<iframe style='margin:0;padding:0;border:0;' class='html5lightbox-web-iframe' width='100%' height='100%' src='"+elem[ELEM_HREF]+"' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>");$(".html5lightbox-web-iframe",inst.$image).on("load", 188 function(){inst.$loading.hide()});inst.$elem.show();inst.showData();if(inst.options.autoresizecontent&&inst.isSameDomain(elem[ELEM_HREF])){$(".html5lightbox-web-iframe",inst.$image).data("sameorigin",true);$(".html5lightbox-web-iframe",inst.$image).on("load",function(){$(this).data("sameoriginloaded",true);inst.resizeWindow()})}if(inst.autosliding){inst.slideTimeout.stop();inst.slideTimeout.start()}})};inst.scrollBox=function(){};inst.resizeWindow=function(){if(!inst.currentElem)return;if(!inst.options.responsive)return; 189 var winWidth=$(window).width();var winH=inst.getWinH();if(!(inst.options.showtitle&&inst.currentElem[ELEM_TITLE]&&inst.currentElem[ELEM_TITLE].length>0||inst.options.showdescription&&inst.currentElem[ELEM_DESCRIPTION]&&inst.currentElem[ELEM_DESCRIPTION].length>0||inst.options.inGroup&&(inst.options.showplaybutton||inst.options.showtitleprefix)))inst.options.barheight=0;var elemSize,keepratio;if(!inst.options.contentkeepratio&&(inst.currentElem[ELEM_TYPE]==5||inst.currentElem[ELEM_TYPE]==7||inst.currentElem[ELEM_TYPE]== 190 10)){var navH=inst.options.shownavigation&&inst.navvisible?inst.options.navheight:0;elemSize=inst.getElemSize(inst.currentElem,winWidth,winH-navH);keepratio=false}else{elemSize=inst.getElemSize(inst.currentElem);keepratio=inst.currentElem[ELEM_TYPE]==0?inst.options.imagekeepratio:true}var sizeObj=inst.calcElemSize(elemSize,keepratio);inst.adjustLightboxPos(sizeObj.w,sizeObj.h);inst.adjustDataHeight();if(inst.options.autoresizecontent&&!inst.options.contentkeepratio&&(inst.currentElem[ELEM_TYPE]== 191 5||inst.currentElem[ELEM_TYPE]==7||inst.currentElem[ELEM_TYPE]==10)){var resizeHeight=false;if(inst.currentElem[ELEM_TYPE]==7&&$(".html5lightbox-web-iframe",inst.$lightbox).length>0&&$(".html5lightbox-web-iframe",inst.$lightbox).data("sameoriginloaded")){var iframe=$(".html5lightbox-web-iframe",inst.$lightbox)[0];if(iframe&&iframe.contentWindow&&iframe.contentWindow.document&&iframe.contentWindow.document.documentElement.offsetHeight)if(elemSize.h>iframe.contentWindow.document.documentElement.offsetHeight){elemSize.h= 192 iframe.contentWindow.document.documentElement.offsetHeight;resizeHeight=true}}else if(inst.currentElem[ELEM_TYPE]==10&&$(".html5lightbox-div",inst.$lightbox).length>0){var divH=$(".html5lightbox-div",inst.$lightbox).height();if(elemSize.h>divH){elemSize.h=divH;resizeHeight=true}}if(resizeHeight){sizeObj=inst.calcElemSize(elemSize,keepratio);inst.adjustLightboxPos(sizeObj.w,sizeObj.h)}}if($(".html5-nav").length<=0)return;$(".html5-nav-list").css({"margin-left":0});var $navMask=$(".html5-nav-mask"); 193 var $navPrev=$(".html5-nav-prev");var $navNext=$(".html5-nav-next");var winWidth=$(window).width();if(inst.options.totalwidth<=winWidth){$navMask.css({width:inst.options.totalwidth+"px"});$navPrev.hide();$navNext.hide()}else{$navMask.css({width:winWidth-2*inst.options.navbuttonwidth+"px"});$navPrev.show();$navNext.show()}};inst.calcElemSize=function(sizeObj,keepratio){if(!inst.options.responsive)return sizeObj;var winWidth=$(window).width();var winH=inst.getWinH();winH=winH?winH:$(document).height(); 194 var strW=String(sizeObj.w);if(strW.charAt(strW.length-1)=="%")sizeObj.w=winWidth*parseFloat(strW.substring(0,strW.length-1))/100;var strH=String(sizeObj.h);if(strH.charAt(strH.length-1)=="%")sizeObj.h=winH*parseFloat(strH.substring(0,strH.length-1))/100;var navH=inst.options.shownavigation&&inst.navvisible?inst.options.navheight:0;var topmargin=$(window).height()<inst.options.smallscreenheight?inst.options.bordertopmarginsmall:inst.options.bordertopmargin;var h0=winH-navH-2*inst.options.bordersize- 195 2*topmargin;if(inst.options.responsivebarheight)if(winH<=inst.options.smallscreenheight)inst.options.barheight=inst.options.barheightonsmallheight;else inst.options.barheight=inst.options.barheightoriginal;if(inst.options.titlestyle=="bottom")h0-=inst.options.barheight;else if(inst.options.titlestyle=="outside")h0-=inst.$elemData.outerHeight();var w0=winWidth-2*inst.options.bordersize-2*inst.options.bordermargin;if(inst.options.resizeleftright&&(inst.options.titlestyle=="left"||inst.options.titlestyle== 196 "right")&&winWidth>inst.options.sidetobottomscreenwidth)w0-=2*inst.options.bordersize;if(inst.options.fullscreenmode&&winWidth>inst.options.navarrowsbottomscreenwidth||inst.options.isTouch&&inst.options.navarrowsalwaysshowontouch&&winWidth>inst.options.navarrowsbottomscreenwidth)w0-=64;if(inst.options.notkeepratioonsmallheight&&winH<=inst.options.smallscreenheight)keepratio=false;if(keepratio){var originWidth=inst.currentElem[ELEM_TYPE]==0?inst.currentElem[ELEM_ORIGINALWIDTH]:sizeObj.w;var originHeight= 197 inst.currentElem[ELEM_TYPE]==0?inst.currentElem[ELEM_ORIGINALHEIGHT]:sizeObj.h;if(inst.options.resizeleftright&&(inst.options.titlestyle=="left"||inst.options.titlestyle=="right")&&winWidth>inst.options.sidetobottomscreenwidth){var ratio=originWidth/originHeight;sizeObj.h=Math.round(sizeObj.w/ratio);if(sizeObj.h>h0){sizeObj.w=Math.round(ratio*h0);sizeObj.h=h0}if((sizeObj.w+2*inst.options.bordersize)*100/inst.options.imagepercentage>w0){sizeObj.w=w0*inst.options.imagepercentage/100-2*inst.options.bordersize; 198 sizeObj.h=Math.round(sizeObj.w/ratio)}sizeObj.w=(sizeObj.w+2*inst.options.bordersize)*100/inst.options.imagepercentage-2*inst.options.bordersize}else{var ratio=originWidth/originHeight;sizeObj.h=Math.round(sizeObj.w/ratio);if(sizeObj.h>h0){sizeObj.w=Math.round(ratio*h0);sizeObj.h=h0}if(sizeObj.w>w0){sizeObj.h=Math.round(w0/ratio);sizeObj.w=w0}}}else{if(inst.options.resizeleftright&&(inst.options.titlestyle=="left"||inst.options.titlestyle=="right")&&winWidth>inst.options.sidetobottomscreenwidth)sizeObj.w= 199 sizeObj.w*100/inst.options.imagepercentage;if(sizeObj.h>h0)sizeObj.h=h0;else if(inst.options.maxheight)sizeObj.h=h0;if(sizeObj.w>w0)sizeObj.w=w0}return sizeObj};inst.adjustDataHeight=function(){var winWidth=$(window).width();var winH=inst.getWinH();var isBottomText=inst.options.titlestyle=="bottom"||inst.options.titlestyle=="outside"||(inst.options.titlestyle=="left"||inst.options.titlestyle=="right")&&winWidth<=inst.options.sidetobottomscreenwidth;if(inst.options.responsivebarheight)if(winH<=inst.options.smallscreenheight)inst.options.barheight= 200 inst.options.barheightonsmallheight;else inst.options.barheight=inst.options.barheightoriginal;if(isBottomText){var topmargin=$(window).height()<inst.options.smallscreenheight?inst.options.bordertopmarginsmall:inst.options.bordertopmargin;var navH=inst.options.shownavigation&&inst.navvisible?inst.options.navheight:0;var winH=inst.getWinH();var maxH=winH-topmargin-navH;var barHeight=inst.options.barautoheight?inst.$elemData.outerHeight():inst.options.barheight;var totalHeight=inst.$elemWrap.outerHeight()+ 201 barHeight;var elemHeight=Math.min(maxH,totalHeight);var boxMargin=(winH-navH-elemHeight)/2;inst.$elem.css({"max-height":elemHeight+"px"});var topmargin=$(window).height()<inst.options.smallscreenheight?inst.options.bordertopmarginsmall:inst.options.bordertopmargin;if(boxMargin<topmargin)boxMargin=topmargin;if(inst.options.insideiframe&&window.self!=window.top){boxMargin=inst.options.iframetopmargin>0?inst.options.iframetopmargin:topmargin;if(inst.options.iframesamedomain&&parent.window.jQuery&&parent.window.jQuery("#"+ 202 inst.options.iframeid).length){var iframetop=parent.window.jQuery("#"+inst.options.iframeid).offset().top;var parentscroll=parent.window.document.body.scrollTop;boxMargin+=parentscroll>iframetop?parentscroll-iframetop:0}}if(inst.options.transition=="crossfade"&&inst.$prevelem)inst.$prevelem.css({"top":String(inst.existingBoxT-boxMargin)+"px"});inst.$lightboxBox.css({"margin-top":boxMargin+"px"})}else inst.$elem.css({"max-height":"none"});if(inst.options.titlestyle=="bottom"||inst.options.titlestyle== 203 "inside")inst.$lightboxBox.css({height:"auto"});if(inst.options.positionFixed)$("#html5-lightbox-overlay",inst.$lightbox).css({height:Math.max($(window).height(),$(document).height())});else $("#html5-lightbox-overlay",inst.$lightbox).css({height:"100%"})};inst.showData=function(){if(inst.$text.text().length>0)inst.$elemData.show();inst.adjustDataHeight();$(window).trigger("html5lightbox.lightboxopened")};inst.resizeLightbox=function(elemW,elemH,bAnimate,onFinish,speedZero){inst.hideNavArrows();var boxPos= 204 inst.calcBoxPosition(elemW,elemH);var boxW=boxPos[0];var boxH=boxPos[1];var boxT=boxPos[2];inst.$loading.hide();inst.$watermark.hide();if(inst.options.nextElem<=inst.options.curElem)if(inst.options.onlastitem&&window[inst.options.onlastitem]&&typeof window[inst.options.onlastitem]=="function")window[inst.options.onlastitem](inst.currentElem);if(inst.options.prevElem>=inst.options.curElem)if(inst.options.onfirstitem&&window[inst.options.onfirstitem]&&typeof window[inst.options.onfirstitem]=="function")window[inst.options.onfirstitem](inst.currentElem); 205 if(!inst.options.fullscreenmode&&!(inst.options.navarrowspos=="side")&&!(inst.options.navarrowspos=="browserside")&&(!inst.options.isTouch||!inst.options.navarrowsalwaysshowontouch)&&!inst.options.alwaysshownavarrows){inst.$lightboxBox.on("mouseenter mousemove",function(){if(inst.options.arrowloop&&inst.options.prevElem>=0||!inst.options.arrowloop&&inst.options.prevElem>=0&&inst.options.prevElem<inst.options.curElem)inst.$prev.fadeIn();if(inst.options.arrowloop&&inst.options.nextElem>=0||!inst.options.arrowloop&& 206 inst.options.nextElem>=0&&inst.options.nextElem>inst.options.curElem)inst.$next.fadeIn()});inst.$lightboxBox.on("mouseleave",function(){inst.$next.fadeOut();inst.$prev.fadeOut()})}inst.existingBoxT=parseFloat(inst.$lightboxBox.css("margin-top"));inst.$lightboxBox.css({"margin-top":boxT});inst.resizePositionFixed();var speed=bAnimate?inst.options.resizespeed:0;if(inst.options.fullscreenmode&&inst.options.fullscreennotransition)speed=0;if((inst.options.transition=="slide"||inst.options.transition== 207 "crossfade")&&inst.existingElem>=0)speed=0;if(typeof speedZero!=="undefined"&&speedZero)speed=0;if(inst.options.enteranimation){speed=0;if(!inst.$lightboxBox.hasClass("html5box-enter-animated")){inst.$lightboxBox.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){inst.$lightboxBox.removeClass("html5box-"+inst.options.enteranimation)});inst.$lightboxBox.addClass("html5box-enter-animated html5box-"+inst.options.enteranimation)}}var winWidth=$(window).width(); 208 if((inst.options.titlestyle=="left"||inst.options.titlestyle=="right")&&winWidth>inst.options.sidetobottomscreenwidth){if(boxW==inst.$lightboxBox.width()&&boxH==inst.$lightboxBox.height())speed=0;inst.$lightboxBox.animate({width:boxW},speed).animate({height:boxH},speed,function(){inst.onAnimateFinish(onFinish)})}else{if(boxW==inst.$elemWrap.width()&&boxH==inst.$elemWrap.height())speed=0;inst.$lightboxBox.css({"width":boxW,"height":"auto"});inst.$elemWrap.animate({width:boxW},speed).animate({height:boxH}, 209 speed,function(){inst.onAnimateFinish(onFinish)})}};inst.onAnimateFinish=function(onFinish){inst.$loading.show();inst.$watermark.show();inst.$close.show();inst.$elem.css({"background-color":inst.options.bgcolor});inst.resizePositionFixed();onFinish();inst.finishCallback();$(window).trigger("html5lightbox.lightboxshowend")};inst.finishCallback=function(){if((inst.options.transition=="slide"||inst.options.transition=="crossfade")&&inst.existingElem>=0)if(inst.options.transition=="slide"){inst.$prevelem.animate({left:inst.direction== 210 -1?"-100%":"100%",opacity:0},{duration:inst.options.transitionduration});inst.$elem.animate({left:0,opacity:1},{duration:inst.options.transitionduration,always:function(){inst.$prevelem.remove();inst.$elem.removeClass("html5-elem-box-current").css({position:"relative",height:"100%"})}})}else{inst.$prevelem.animate({opacity:0},{duration:inst.options.transitionduration});inst.$elem.animate({opacity:1},{duration:inst.options.transitionduration,always:function(){inst.$prevelem.remove();$(".html5-prev-inside, .html5-next-inside, .html5-prev-outside, .html5-next-outside", 211 inst.$lightbox).css({visibility:"visible"});inst.$elem.removeClass("html5-elem-box-current").css({position:"relative",height:"100%"})}})}},inst.resetDiv=function(elemID){if(inst.elemArray.length>0&&elemID>=0)if(inst.elemArray[elemID][ELEM_TYPE]==10){var divID=inst.elemArray[elemID][ELEM_HREF];if($(divID).length>0)$("#html5lightbox-div"+elemID).children().appendTo($(divID))}};inst.reset=function(){if(inst.options.stamp)inst.$watermark.hide();inst.showing=false;inst.$image.empty();inst.$text.empty(); 212 inst.$error.hide();inst.$loading.hide();inst.$image.hide();if(inst.options.titlestyle=="bottom"||inst.options.titlestyle=="inside")inst.$elemData.hide();if(!inst.options.fullscreenmode)inst.$close.hide();inst.$elem.css({"background-color":""})};inst.resetNavigation=function(){inst.options.navheight=0;$(".html5-nav").remove();inst.navvisible=false};inst.finish=function(){if($(".html5-nav").length>0)$(".html5-nav").addClass("html5box-animated html5box-fadeOutDown");if(inst.options.enteranimation)inst.$lightboxBox.removeClass("html5box-enter-animated html5box-"+ 213 inst.options.enteranimation);if(inst.options.exitanimation=="fadeOut"||inst.options.exitanimation=="fadeOutDown"){inst.$lightbox.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){inst.$lightboxBox.removeClass("html5box-animated html5box-"+inst.options.exitanimation);inst.$lightbox.removeClass("html5box-animated html5box-fadeOut");inst.finishDone()});inst.$lightbox.addClass("html5box-animated html5box-fadeOut");inst.$lightboxBox.addClass("html5box-animated html5box-"+ 214 inst.options.exitanimation)}else inst.finishDone()};inst.finishDone=function(){inst.existingElem=-1;inst.resetDiv(inst.options.curElem);if($(".html5-lightbox-video",inst.$lightbox).length)$(".html5-lightbox-video",inst.$lightbox).attr("src","");$("head").find("style").each(function(){if($(this).data("creator")=="slider-html5-lightbox")$(this).remove()});if(inst.options.bodynoscroll)$("html,body").removeClass("bodynoscroll");inst.slideTimeout.stop();inst.reset();inst.resetNavigation();inst.$lightbox.remove(); 215 $("#slider-html5-lightbox").remove();inst.showObjects();if(inst.options.oncloselightbox&&window[inst.options.oncloselightbox]&&typeof window[inst.options.oncloselightbox]=="function")window[inst.options.oncloselightbox](inst.currentElem);if(inst.onLightboxClosed&&typeof inst.onLightboxClosed=="function")inst.onLightboxClosed(inst.currentElem);$(window).trigger("html5lightbox.lightboxclosed")};inst.pauseSlide=function(){};inst.playSlide=function(){};inst.gotoSlide=function(slide){inst.existingElem= 216 inst.options.curElem;inst.direction=slide;inst.resetDiv(inst.options.curElem);if(slide==-1){if(inst.options.nextElem<0)return;inst.options.curElem=inst.options.nextElem}else if(slide==-2){if(inst.options.prevElem<0)return;inst.options.curElem=inst.options.prevElem}else if(slide>=0){inst.direction=slide>inst.options.curElem?-1:-2;inst.options.curElem=slide}if(inst.autosliding)inst.slideTimeout.stop();inst.calcNextPrevElem();if(inst.options.transition!="slide"&&inst.options.transition!="crossfade")inst.reset(); 217 inst.loadCurElem();if(inst.options.titlestyle=="inside"&&inst.options.showonmouseoverinside&&inst.currentElem[ELEM_TYPE]!==0&&inst.options.showinsidetitleforimageonly)inst.$elemData.css({opacity:0})};inst.enableSwipe=function(){var preventDefault=inst.options.isAndroid&&(inst.options.swipepreventdefaultonandroid||inst.options.androidVersion>=0&&inst.options.androidVersion<=5)?true:false;inst.$lightboxBox.sliderTouchSwipe({preventWebBrowser:preventDefault,swipeDistance:inst.options.swipedistance,swipeLeft:function(){if(inst.options.inGroup)inst.gotoSlide(-1)}, 218 swipeRight:function(){if(inst.options.inGroup)inst.gotoSlide(-2)}})};inst.hideObjects=function(){$("embed, object").css({"visibility":"hidden"})};inst.showObjects=function(){$("embed, object").css({"visibility":"visible"})};inst.embedHTML5Video=function($container,src,autoplay,loopvideo,mutevideo,playsinline){$container.html("<div style='display:block;width:100%;height:100%;position:relative;'><video class='html5-lightbox-video' width='100%' height='100%'"+(inst.options.html5videoposter&&inst.options.html5videoposter.length> 219 0?"poster='"+inst.options.html5videoposter+"'":"")+(autoplay?" autoplay":"")+(loopvideo?" loop":"")+(mutevideo?" muted":"")+(playsinline?" playsinline":"")+(inst.options.nativehtml5controls&&!inst.options.videohidecontrols?" controls='controls'":"")+(inst.options.nativecontrolsnodownload?' controlsList="nodownload"':"")+" src='"+src+"'>"+(inst.options.showsubtitle&&inst.options.vtturl?'<track default src="'+inst.options.vtturl+'" kind="subtitles" srclang="'+inst.options.vttlang+'" label="'+inst.options.vttlabel+ 220 '">':"")+"</video></div>");if(mutevideo)inst.options.defaultvideovolume=0;if(!inst.options.nativehtml5controls&&!inst.options.videohidecontrols){$("video",$container).data("src",src);$("video",$container).asHTML5VideoControls(inst.options.skinsfolder,inst,".html5-lightbox-video",inst.options.videohidecontrols,false,inst.options.defaultvideovolume,inst.options.nativecontrolsonfullscreen,inst.options.nativecontrolsnodownload,null,inst.options.showsubtitle,inst.options.vttline,inst.options.showsubtitlebydefault, 221 inst.options.enableclick,inst.options.enablespacekey)}$("video",$container).off("ended").on("ended",function(){$(window).trigger("html5lightbox.videofinished");if(inst.autosliding)inst.gotoSlide(-1);else if(inst.options.autoclose)setTimeout(function(){inst.finish()},inst.options.autoclosedelay)})};inst.checkType=function(href){if(!href)return-1;if(href.match(/\.(jpg|gif|png|bmp|jpeg|webp)(.*)?$/i))return 0;if(href.match(/[^\.]\.(swf)\s*$/i))return 1;if(href.match(/\.(mp4|m4v|ogv|ogg|webm)(.*)?$/i))return 2; 222 if(href.match(/\:\/\/.*(youtube\.com)/i)||href.match(/\:\/\/.*(youtu\.be)/i)||href.match(/\:\/\/.*(youtube-nocookie\.com)/i))return 3;if(href.match(/\:\/\/.*(vimeo\.com)/i))return 4;if(href.match(/\:\/\/.*(dailymotion\.com)/i)||href.match(/\:\/\/.*(dai\.ly)/i))return 9;if(href.match(/[^\.]\.(pdf)/i))return 5;if(href.match(/[^\.]\.(mp3)\s*$/i))return 6;if(href.match(/[^\.]\.(flv)\s*$/i))return 8;if(href.match(/^\#\w+/i))return 10;if(href.match(/\:\/\/.*(wistia)/i))return 11;return 7};inst.getURLParams= 223 function(){var result={};var params=window.location.search.substring(1).split("&");for(var i=0;i<params.length;i++){var value=params[i].split("=");if(value&&value.length==2)result[value[0].toLowerCase()]=unescape(value[1])}return result};inst.absoluteUrl=function(href){var link=document.createElement("a");link.href=href;return link.protocol+"//"+link.host+link.pathname+link.search+link.hash};inst.showLightboxObject=function(obj){if(obj)inst.showLightbox(obj.type,obj.href,obj.title,obj.width,obj.height, 224 obj.webm,obj.ogg,obj.thumbnail,obj.description,obj.div,obj.originalwidth,obj.originalheight,obj.socialmedia,obj.weblink,obj.weblinktarget,obj.weblinktext,obj.group,obj.mediumwidth,obj.mediumheight,obj.smallwidth,obj.smallheight)};inst.showLightbox=function(type,href,title,width,height,webm,ogg,thumbnail,description,div,originalwidth,originalheight,socialmedia,weblink,weblinktarget,weblinktext,group,mediumwidth,mediumheight,smallwidth,smallheight){inst.options=$.extend(inst.options,inst.defaultoptions); 225 $(window).trigger("html5lightbox.lightboxshow");inst.init();inst.reset();inst.$lightbox.show();inst.adjustLightboxPos(inst.options.loadingwidth,inst.options.loadingheight);inst.loadElem(new Array(type,href,title,group,width,height,webm,ogg,thumbnail,description,div,originalwidth,originalheight,socialmedia,weblink,weblinktarget,weblinktext,mediumwidth,mediumheight,smallwidth,smallheight))};inst.addItemNoDuplicate=function(href,title,group,width,height,webm,ogg,thumbnail,description,mediatype,mediumwidth, 226 mediumheight,smallwidth,smallheight){for(var i=0;i<inst.elemArray.length;i++)if(inst.elemArray[i][ELEM_HREF]==href)return;inst.addItem(href,title,group,width,height,webm,ogg,thumbnail,description,mediatype,mediumwidth,mediumheight,smallwidth,smallheight)};inst.addItem=function(href,title,group,width,height,webm,ogg,thumbnail,description,mediatype,mediumwidth,mediumheight,smallwidth,smallheight){type=mediatype&&mediatype>=0?mediatype:inst.checkType(href);inst.elemArray.push(new Array(type,href,title, 227 group,width,height,webm,ogg,thumbnail,description,null,null,null,null,null,null,null,mediumwidth,mediumheight,smallwidth,smallheight))};inst.showItem=function(href){inst.options=$.extend(inst.options,inst.defaultoptions);$(window).trigger("html5lightbox.lightboxshow");inst.init();if(inst.elemArray.length<=0)return true;inst.hideObjects();for(var i=0;i<inst.elemArray.length;i++)if(inst.elemArray[i][ELEM_HREF]==href)break;if(i==inst.elemArray.length)return true;inst.options.curElem=i;inst.calcNextPrevElem(); 228 inst.reset();inst.$lightbox.show();inst.adjustLightboxPos(inst.options.loadingwidth,inst.options.loadingheight);inst.loadCurElem();return false};inst.each(function(){var self=$(this);var nodeName=this.nodeName.toLowerCase();if(nodeName=="a"||nodeName=="area")self.off("click").click(inst.clickHandler);else self.find("a,area").each(function(){$(this).off("click").click(inst.clickHandler)});var autoopen=false;var autoopendelay=0;var autoopenonce=false;var autoopenonceexpire=0;if(typeof html5lightbox_options!= 229 "undefined"&&html5lightbox_options){if("autoopen"in html5lightbox_options)autoopen=html5lightbox_options.autoopen;if("autoopendelay"in html5lightbox_options)autoopendelay=html5lightbox_options.autoopendelay;if("autoopenonce"in html5lightbox_options)autoopenonce=html5lightbox_options.autoopenonce;if("autoopenonceexpire"in html5lightbox_options)autoopenonceexpire=html5lightbox_options.autoopenonceexpire}autoopen=self.data("autoopen")?self.data("autoopen"):autoopen;autoopendelay=self.data("autoopendelay")? 230 self.data("autoopendelay"):autoopendelay;autoopenonce=self.data("autoopenonce")?self.data("autoopenonce"):autoopenonce;autoopenonceexpire=self.data("autoopenonceexpire")?self.data("autoopenonceexpire"):autoopenonceexpire;var classoptions=inst.readClassOptions(self);if(classoptions){if("autoopen"in classoptions)autoopen=classoptions.autoopen;if("autoopendelay"in classoptions)autoopendelay=classoptions.autoopendelay;if("autoopenonce"in classoptions)autoopenonce=classoptions.autoopenonce;if("autoopenonceexpire"in 231 classoptions)autoopenonceexpire=classoptions.autoopenonceexpire}autocookie="html5lightboxpopup=1;path=/";if(autoopenonceexpire>0){var expires=new Date;expires.setTime(expires.getTime()+autoopenonceexpire*60*60*1E3);autocookie+=";expires="+expires.toUTCString()}if(autoopen){var is_popped=false;if(autoopenonce){var cookies=document.cookie?document.cookie.split(";"):[];for(var i in cookies){var parts=$.trim(cookies[i]).split("=");if(parts.length&&parts[0]=="html5lightboxpopup"){is_popped=true;break}}}if(!is_popped)setTimeout(function(){self.click(); 232 document.cookie=autocookie},autoopendelay)}if(self.data("preloadonpageload")){var fileType="mediatype"in self.data()?self.data("mediatype"):inst.checkType(self.attr("href"));if(fileType==0){var preloaddelay=self.data("preloaddelay")?self.data("preloaddelay"):0;setTimeout(function(){(new Image).src=self.attr("href")},preloaddelay)}}});if(inst.options.preloadallonpageload)setTimeout(function(){inst.each(function(){if(this.nodeName.toLowerCase()!="a"&&this.nodeName.toLowerCase()!="area")return;var fileType= 233 "mediatype"in $(this).data()?$(this).data("mediatype"):inst.checkType($(this).attr("href"));if(fileType!==0)return;(new Image).src=$(this).attr("href");if($(this).data("thumbnail"))(new Image).src=$(this).data("thumbnail")})},inst.options.preloadalldelay);return inst}})(jQuery); 238 234 function ASliderTimer(interval,callback,updatecallback){var timerInstance=this;timerInstance.timeout=interval;var updateinterval=50;var updateTimerId=null;var runningTime=0;var paused=false;var started=false;var startedandpaused=false;this.pause=function(){if(started){paused=true;clearInterval(updateTimerId)}};this.resume=function(forceresume){if(startedandpaused&&!forceresume)return;startedandpaused=false;if(started&&paused){paused=false;updateTimerId=setInterval(function(){runningTime+=updateinterval; 239 235 if(runningTime>timerInstance.timeout){clearInterval(updateTimerId);if(callback)callback()}if(updatecallback)updatecallback(runningTime/timerInstance.timeout)},updateinterval)}};this.stop=function(){clearInterval(updateTimerId);if(updatecallback)updatecallback(-1);runningTime=0;paused=false;started=false};this.start=function(){runningTime=0;paused=false;started=true;updateTimerId=setInterval(function(){runningTime+=updateinterval;if(runningTime>timerInstance.timeout){clearInterval(updateTimerId);if(callback)callback()}if(updatecallback)updatecallback(runningTime/ 240 236 timerInstance.timeout)},updateinterval)};this.startandpause=function(){runningTime=0;paused=true;started=true;startedandpaused=true};this.unsetstartandpause=function(){startedandpaused=false}} 241 var ASPlatforms={flashInstalled:function(){ var flashInstalled=false;try{if(new ActiveXObject("ShockwaveFlash.ShockwaveFlash"))flashInstalled=true}catch(e){if(navigator.mimeTypes["application/x-shockwave-flash"])flashInstalled=true}return flashInstalled},html5VideoSupported:function(){return!!document.createElement("video").canPlayType},canPlayMP4:function(){var v=document.createElement("video");return v&&v.canPlayType&&v.canPlayType("video/mp4").replace(/no/,"")},isQt:function(){return navigator.userAgent.match(/\sQt\//i)!=242 null },isChrome:function(){return navigator.userAgent.match(/Chrome/i)!=null},isFirefox:function(){return navigator.userAgent.match(/Firefox/i)!=null},isOpera:function(){return navigator.userAgent.match(/Opera/i)!=null||navigator.userAgent.match(/OPR\//i)!=null},isSafari:function(){return navigator.userAgent.match(/Safari/i)!=null},isAndroid:function(){return navigator.userAgent.match(/Android/i)!=null},isIPad:function(){return navigator.userAgent.match(/iPad/i)!=null},isIPhone:function(){return navigator.userAgent.match(/iPod/i)!=243 null||navigator.userAgent.match(/iPhone/i)!=null},isIOS:function(){return this.isIPad()||this.isIPhone()},isMobile:function(){return this.isAndroid()||this.isIPad()||this.isIPhone()},isIE11:function(){return navigator.userAgent.match(/Trident\/7/)!=null&&navigator.userAgent.match(/rv:11/)!=null},isIE:function(){return(navigator.userAgent.match(/MSIE/i)!=null||this.isIE11())&&!this.isOpera()},isIE10:function(){return navigator.userAgent.match(/MSIE 10/i)!=null&&!this.isOpera()},isIE9:function(){return navigator.userAgent.match(/MSIE 9/i)!=244 null&&!this.isOpera()},isIE 8:function(){return navigator.userAgent.match(/MSIE 8/i)!=null&&!this.isOpera()},isIE7:function(){return navigator.userAgent.match(/MSIE 7/i)!=null&&!this.isOpera()},isIE6:function(){return navigator.userAgent.match(/MSIE 6/i)!=null&&!this.isOpera()},isIE678:function(){return this.isIE6()||this.isIE7()||this.isIE8()},isIE6789:function(){return this.isIE6()||this.isIE7()||this.isIE8()||this.isIE9()},isTouch:function(){return"ontouchstart"in window},css33dTransformSupported:function(){return!this.isIE()&&245 !this.isOpera()},applyBrowserStyles:function(object,applyToValue){var ret={};for(var key in object){ret[key]=object[key];ret["-webkit-"+key]=applyToValue?"-webkit-"+object[key]:object[key];ret["-moz-"+key]=applyToValue?"-moz-"+object[key]:object[key];ret["-ms-"+key]=applyToValue?"-ms-"+object[key]:object[key];ret["-o-"+key]=applyToValue?"-o-"+object[key]:object[key]}return ret}};237 var ASPlatforms={flashInstalled:function(){return false},html5VideoSupported:function(){return!!document.createElement("video").canPlayType},canPlayMP4:function(){var v=document.createElement("video");return v&&v.canPlayType&&v.canPlayType("video/mp4").replace(/no/,"")},isQt:function(){return navigator.userAgent.match(/\sQt\//i)!=null},isChrome:function(){return navigator.userAgent.match(/Chrome/i)!=null},isFirefox:function(){return navigator.userAgent.match(/Firefox/i)!=null},isOpera:function(){return navigator.userAgent.match(/Opera/i)!= 238 null||navigator.userAgent.match(/OPR\//i)!=null},isSafari:function(){return navigator.userAgent.match(/Safari/i)!=null},isAndroid:function(){return navigator.userAgent.match(/Android/i)!=null},isIPad:function(){return navigator.userAgent.match(/iPad/i)!=null},isIPhone:function(){return navigator.userAgent.match(/iPod/i)!=null||navigator.userAgent.match(/iPhone/i)!=null},isIOS:function(){return this.isIPad()||this.isIPhone()},isMobile:function(){return this.isAndroid()||this.isIPad()||this.isIPhone()}, 239 isIE11:function(){return navigator.userAgent.match(/Trident\/7/)!=null&&navigator.userAgent.match(/rv:11/)!=null},isIE:function(){return(navigator.userAgent.match(/MSIE/i)!=null||this.isIE11())&&!this.isOpera()},isIE10:function(){return navigator.userAgent.match(/MSIE 10/i)!=null&&!this.isOpera()},isIE9:function(){return navigator.userAgent.match(/MSIE 9/i)!=null&&!this.isOpera()},isIE8:function(){return navigator.userAgent.match(/MSIE 8/i)!=null&&!this.isOpera()},isIE7:function(){return navigator.userAgent.match(/MSIE 7/i)!= 240 null&&!this.isOpera()},isIE6:function(){return navigator.userAgent.match(/MSIE 6/i)!=null&&!this.isOpera()},isIE678:function(){return this.isIE6()||this.isIE7()||this.isIE8()},isIE6789:function(){return this.isIE6()||this.isIE7()||this.isIE8()||this.isIE9()},isTouch:function(){return"ontouchstart"in window},css33dTransformSupported:function(){return!this.isIE()&&!this.isOpera()},applyBrowserStyles:function(object,applyToValue){var ret={};for(var key in object){ret[key]=object[key];ret["-webkit-"+ 241 key]=applyToValue?"-webkit-"+object[key]:object[key];ret["-moz-"+key]=applyToValue?"-moz-"+object[key]:object[key];ret["-ms-"+key]=applyToValue?"-ms-"+object[key]:object[key];ret["-o-"+key]=applyToValue?"-o-"+object[key]:object[key]}return ret}}; 246 242 (function($){$.fn.wonderpluginslider=function(options){var ELEM_ID=0,ELEM_SRC=1,ELEM_TITLE=2,ELEM_DESCRIPTION=3,ELEM_LINK=4,ELEM_TARGET=5,ELEM_VIDEO=6,ELEM_THUMBNAIL=7,ELEM_LIGHTBOX=8,ELEM_LIGHTBOXWIDTH=9,ELEM_LIGHTBOXHEIGHT=10,ELEM_WEBM=11,ELEM_OGG=12,ELEM_TEXTEFFECT=13,ELEM_DURATION=14,ELEM_BUTTON=15,ELEM_VIDEOTYPE=16,ELEM_ALT=17,ELEM_EXTRA=18;var TYPE_IMAGE=1,TYPE_SWF=2,TYPE_MP3=3,TYPE_PDF=4,TYPE_VIDEO_FLASH=5,TYPE_VIDEO_MP4=6,TYPE_VIDEO_OGG=7,TYPE_VIDEO_WEBM=8,TYPE_VIDEO_YOUTUBE=9,TYPE_VIDEO_VIMEO= 247 243 10,TYPE_IFRAME=11;var AmazingSlider=function(container,options,textoptions,id){this.container=container;this.options=options;this.textoptions=textoptions;this.id=id;this.transitionTimeout=null;this.arrowTimeout=null;this.socialTimeout=null;this.lightboxArray=[];this.elemArray=[];this.container.children().hide();this.container.css({"display":"block","position":"relative"});$(".amazingslider-engine").css({"display":"none"});if(ASPlatforms.isMobile()&&!this.options.navshowpreviewontouch)this.options.navshowpreview= … … 267 263 bgcolor:this.options.lightboxbgcolor,titleprefix:this.options.lightboxtitleprefix,titleinsidecss:this.options.lightboxtitleinsidecss,descriptioninsidecss:this.options.lightboxdescriptioninsidecss,titleoutsidecss:this.options.lightboxtitleoutsidecss,descriptionoutsidecss:this.options.lightboxdescriptionoutsidecss,autoslide:this.options.lightboxautoslide,slideinterval:this.options.lightboxslideinterval,showtimer:this.options.lightboxshowtimer,timerposition:this.options.lightboxtimerposition,timerheight:this.options.lightboxtimerheight, 268 264 timercolor:this.options.lightboxtimercolor,timeropacity:this.options.lightboxtimeropacity,showplaybutton:this.options.lightboxshowplaybutton,alwaysshownavarrows:this.options.lightboxalwaysshownavarrows,bordersize:this.options.lightboxbordersize,showtitleprefix:this.options.lightboxshowtitleprefix,borderradius:this.options.lightboxborderradius,showsocial:this.options.lightboxshowsocial,socialposition:this.options.lightboxsocialposition,socialpositionsmallscreen:this.options.lightboxsocialpositionsmallscreen, 269 socialdirection:this.options.lightboxsocialdirection,socialbuttonsize:this.options.lightboxsocialbuttonsize,socialbuttonfontsize:this.options.lightboxsocialbuttonfontsize,socialrotateeffect:this.options.lightboxsocialrotateeffect,showfacebook:this.options.lightboxshowfacebook,showtwitter:this.options.lightboxshowtwitter,showpinterest:this.options.lightboxshowpinterest, html5player:!this.options.forceflash,useflashonie10:this.options.forceflashonie10,useflashonie11:this.options.forceflashonie11,id:this.id};270 if($("#wpsliderlightbox_advanced_options").length)$.each($("#wpsliderlightbox_advanced_options").data(),function(key,value){lightboxOptions[key.toLowerCase()]=value});if($("#wpsliderlightbox_advanced_options_"+this.options.sliderid).length)$.each($("#wpsliderlightbox_advanced_options_"+this.options.sliderid).data(),function(key,value){lightboxOptions[key.toLowerCase()]=value});this.html5Lightbox=$([]).ashtml5lightbox(lightboxOptions);html5Lightbox=this.html5Lightbox;for(i=0;i<this.lightboxArray.length;i++)this.html5Lightbox.addItem(this.lightboxArray[i][ELEM_LINK],271 this.lightboxArray[i][ELEM_ TITLE],this.options.lightboxnogroup?"":"amazingslider"+this.id,this.lightboxArray[i][ELEM_LIGHTBOXWIDTH],this.lightboxArray[i][ELEM_LIGHTBOXHEIGHT],this.lightboxArray[i][ELEM_WEBM],this.lightboxArray[i][ELEM_OGG],this.lightboxArray[i][ELEM_THUMBNAIL],this.lightboxArray[i][ELEM_DESCRIPTION],this.lightboxArray[i][ELEM_VIDEOTYPE]==TYPE_IFRAME?9:-1);var instance=this;this.html5Lightbox.onLightboxClosed=function(){if(instance.lightboxPaused){instance.lightboxPaused=false;instance.isPaused=272 false;instance.sliderTimeout.resume()}}}},createGoogleFonts:function(){this.googleFontsCreated=true;if(this.options.previewmode)return;if(this.textoptions.addgooglefonts&&this.textoptions.googlefonts&&this.textoptions.googlefonts.length>0){var fontRef="https://fonts.googleapis.com/css?family="+this.textoptions.googlefonts;var fontLink=document.createElement("link");fontLink.setAttribute("rel","stylesheet");fontLink.setAttribute("type","text/css");fontLink.setAttribute("href",fontRef);fontLink.setAttribute("data-creator",273 "wonderpluginslidercreator"+this.id);document.getElementsByTagName("head")[0].appendChild(fontLink)}},createRibbon:function(){if(!this.options.showribbon||this.options.ribbonimage.length<=0)return;$(".amazingslider-ribbon-"+this.id,this.container).html("<img src='"+this.options.ribbonimage+"' alt='' style='border:none;' />")},createWm:function(){if(!this.options.showwatermark)return;if(this.options.watermarkstyle=="text"&&this.options.watermarktext.length<=0)return;if(this.options.watermarkstyle=="image"&& 274 this.options.watermarkimage.length<=0)return;var html="";if(this.options.watermarklink){html+="<a href='"+this.options.watermarklink+"' style='"+this.options.watermarklinkcss+"'";if(this.options.versionmark=="AMC"+"om"||this.options.versionmark=="AML"+"ite"&&this.options.skin&&$.inArray(this.options.skin,["classic","cube","content"])>=0)html+=" class='amazingslider-watermark-"+this.id+"'";if(this.options.watermarktitle)html+=" title='"+this.options.watermarktitle+"'";if(this.options.watermarktarget)html+=275 " target='"+this.options.watermarktarget+"'";html+=">"}if(this.options.watermarkstyle=="text")html+=this.options.watermarktext;else if(this.options.watermarkstyle=="image"){var watermarkimage=this.options.watermarkimage;if(watermarkimage.substring(0,7).toLowerCase()!="http://"&&watermarkimage.substring(0,8).toLowerCase()!="https://")watermarkimage=this.options.skinsfolder+watermarkimage;html+="<img alt='' src='"+watermarkimage+"' style='border:none;' />"}if(this.options.watermarklink)html+="</a>";276 var stylecode=this.options.watermarkpositioncss;if(this.options.watermarkstyle=="text"&&this.options.watermarktext.length>0)stylecode+=this.options.watermarktextcss;if(this.options.watermarklink)stylecode+="cursor:pointer;";$(".amazingslider-box-"+this.id,this.container).append('<div style="'+stylecode+'">'+html+"</div>")},absoluteUrl:function(href){var link=document.createElement("a");link.href=href;return link.protocol+"//"+link.host+link.pathname+link.search+link.hash},initSocial:function(){if(!this.options.initsocial)return; 277 $("head").append('<link rel="stylesheet" href="'+this.options.jsfolder+'icons/css/mhfontello.css" type="text/css" />')},showSocial:function(){if(!this.options.showsocial)return;var instance=this;var socialCode='<div class="amazingslider-social-'+this.id+'" style="display:'+(this.options.socialmode=="mouseover"?"none":"block")+";"+this.options.socialposition+'">';var socialBtnCSS=(this.options.socialdirection=="horizontal"?"display:inline-block;":"display:block;")+"margin:4px;";var socialCSS="display:table-cell;width:"+278 this.options.socialbuttonsize+"px;height:"+this.options.socialbuttonsize+"px;font-size:"+this.options.socialbuttonfontsize+"px;border-radius:50%;color:#fff;vertical-align:middle;text-align:center;cursor:pointer;padding:0;";if(this.options.showfacebook)socialCode+='<div class="amazingslider-social-btn'+(this.options.socialrotateeffect?" amazingslider-rotate":"")+' amazingslider-social-facebook" style="'+socialBtnCSS+'"><div class="mh-icon-facebook" style="'+socialCSS+'background-color:#3b5998;"></div></div>'; 279 if(this.options.showtwitter)socialCode+='<div class="amazingslider-social-btn'+(this.options.socialrotateeffect?" amazingslider-rotate":"")+' amazingslider-social-twitter" style="'+socialBtnCSS+'"><div class="mh-icon-twitter" style="'+socialCSS+'background-color:#03b3ee;"></div></div>';if(this.options.showpinterest)socialCode+='<div class="amazingslider-social-btn'+(this.options.socialrotateeffect?" amazingslider-rotate":"")+' amazingslider-social-pinterest" style="'+socialBtnCSS+'"><div class="mh-icon-pinterest" style="'+ 280 socialC SS+'background-color:#c92228;"></div></div>';socialCode+='<div style="clear:both;"></div></div>';$(".wonderpluginslider-container-"+this.id,this.container).append(socialCode);if(this.options.socialmode=="mouseover")$(".wonderpluginslider-container-"+this.id,this.container).hover(function(){clearTimeout(instance.socialTimeout);$(".amazingslider-social-"+instance.id,instance.container).fadeIn()},function(){instance.socialTimeout=setTimeout(function(){$(".amazingslider-social-"+instance.id,instance.container).fadeOut()},281 instance.options.arrowhideonmouseleave)});$(".amazingslider-social-btn",this.container).click(function(){var shareUrl=window.location.href+(window.location.href.indexOf("?")<0?"?":"&")+"slidershareid="+instance.elemArray[instance.curElem][ELEM_ID];var shareTitle=instance.elemArray[instance.curElem][ELEM_TITLE];var shareMedia=instance.absoluteUrl(instance.elemArray[instance.curElem][ELEM_SRC]);var isVideo=instance.elemArray[instance.curElem][ELEM_VIDEO].length>0;if($(this).hasClass("amazingslider-social-facebook"))window.open("https://www.facebook.com/sharer/sharer.php?u="+265 socialdirection:this.options.lightboxsocialdirection,socialbuttonsize:this.options.lightboxsocialbuttonsize,socialbuttonfontsize:this.options.lightboxsocialbuttonfontsize,socialrotateeffect:this.options.lightboxsocialrotateeffect,showfacebook:this.options.lightboxshowfacebook,showtwitter:this.options.lightboxshowtwitter,showpinterest:this.options.lightboxshowpinterest,id:this.id};if($("#wpsliderlightbox_advanced_options").length)$.each($("#wpsliderlightbox_advanced_options").data(),function(key,value){lightboxOptions[key.toLowerCase()]= 266 value});if($("#wpsliderlightbox_advanced_options_"+this.options.sliderid).length)$.each($("#wpsliderlightbox_advanced_options_"+this.options.sliderid).data(),function(key,value){lightboxOptions[key.toLowerCase()]=value});this.html5Lightbox=$([]).ashtml5lightbox(lightboxOptions);html5Lightbox=this.html5Lightbox;for(i=0;i<this.lightboxArray.length;i++)this.html5Lightbox.addItem(this.lightboxArray[i][ELEM_LINK],this.lightboxArray[i][ELEM_TITLE],this.options.lightboxnogroup?"":"amazingslider"+this.id, 267 this.lightboxArray[i][ELEM_LIGHTBOXWIDTH],this.lightboxArray[i][ELEM_LIGHTBOXHEIGHT],this.lightboxArray[i][ELEM_WEBM],this.lightboxArray[i][ELEM_OGG],this.lightboxArray[i][ELEM_THUMBNAIL],this.lightboxArray[i][ELEM_DESCRIPTION],this.lightboxArray[i][ELEM_VIDEOTYPE]==TYPE_IFRAME?9:-1);var instance=this;this.html5Lightbox.onLightboxClosed=function(){if(instance.lightboxPaused){instance.lightboxPaused=false;instance.isPaused=false;instance.sliderTimeout.resume()}}}},createGoogleFonts:function(){this.googleFontsCreated= 268 true;if(this.options.previewmode)return;if(this.textoptions.addgooglefonts&&this.textoptions.googlefonts&&this.textoptions.googlefonts.length>0){var fontRef="https://fonts.googleapis.com/css?family="+this.textoptions.googlefonts;var fontLink=document.createElement("link");fontLink.setAttribute("rel","stylesheet");fontLink.setAttribute("type","text/css");fontLink.setAttribute("href",fontRef);fontLink.setAttribute("data-creator","wonderpluginslidercreator"+this.id);document.getElementsByTagName("head")[0].appendChild(fontLink)}}, 269 createRibbon:function(){if(!this.options.showribbon||this.options.ribbonimage.length<=0)return;$(".amazingslider-ribbon-"+this.id,this.container).html("<img src='"+this.options.ribbonimage+"' alt='' style='border:none;' />")},createWm:function(){if(!this.options.showwatermark)return;if(this.options.watermarkstyle=="text"&&this.options.watermarktext.length<=0)return;if(this.options.watermarkstyle=="image"&&this.options.watermarkimage.length<=0)return;var html="";if(this.options.watermarklink){html+= 270 "<a href='"+this.options.watermarklink+"' style='"+this.options.watermarklinkcss+"'";if(this.options.versionmark=="AMC"+"om"||this.options.versionmark=="AML"+"ite"&&this.options.skin&&$.inArray(this.options.skin,["classic","cube","content"])>=0)html+=" class='amazingslider-watermark-"+this.id+"'";if(this.options.watermarktitle)html+=" title='"+this.options.watermarktitle+"'";if(this.options.watermarktarget)html+=" target='"+this.options.watermarktarget+"'";html+=">"}if(this.options.watermarkstyle== 271 "text")html+=this.options.watermarktext;else if(this.options.watermarkstyle=="image"){var watermarkimage=this.options.watermarkimage;if(watermarkimage.substring(0,7).toLowerCase()!="http://"&&watermarkimage.substring(0,8).toLowerCase()!="https://")watermarkimage=this.options.skinsfolder+watermarkimage;html+="<img alt='' src='"+watermarkimage+"' style='border:none;' />"}if(this.options.watermarklink)html+="</a>";var stylecode=this.options.watermarkpositioncss;if(this.options.watermarkstyle=="text"&& 272 this.options.watermarktext.length>0)stylecode+=this.options.watermarktextcss;if(this.options.watermarklink)stylecode+="cursor:pointer;";$(".amazingslider-box-"+this.id,this.container).append('<div style="'+stylecode+'">'+html+"</div>")},absoluteUrl:function(href){var link=document.createElement("a");link.href=href;return link.protocol+"//"+link.host+link.pathname+link.search+link.hash},initSocial:function(){if(!this.options.initsocial)return;$("head").append('<link rel="stylesheet" href="'+this.options.jsfolder+ 273 'icons/css/mhfontello.css" type="text/css" />')},showSocial:function(){if(!this.options.showsocial)return;var instance=this;var socialCode='<div class="amazingslider-social-'+this.id+'" style="display:'+(this.options.socialmode=="mouseover"?"none":"block")+";"+this.options.socialposition+'">';var socialBtnCSS=(this.options.socialdirection=="horizontal"?"display:inline-block;":"display:block;")+"margin:4px;";var socialCSS="display:table-cell;width:"+this.options.socialbuttonsize+"px;height:"+this.options.socialbuttonsize+ 274 "px;font-size:"+this.options.socialbuttonfontsize+"px;border-radius:50%;color:#fff;vertical-align:middle;text-align:center;cursor:pointer;padding:0;";if(this.options.showfacebook)socialCode+='<div class="amazingslider-social-btn'+(this.options.socialrotateeffect?" amazingslider-rotate":"")+' amazingslider-social-facebook" style="'+socialBtnCSS+'"><div class="mh-icon-facebook" style="'+socialCSS+'background-color:#3b5998;"></div></div>';if(this.options.showtwitter)socialCode+='<div class="amazingslider-social-btn'+ 275 (this.options.socialrotateeffect?" amazingslider-rotate":"")+' amazingslider-social-twitter" style="'+socialBtnCSS+'"><div class="mh-icon-twitter" style="'+socialCSS+'background-color:#03b3ee;"></div></div>';if(this.options.showpinterest)socialCode+='<div class="amazingslider-social-btn'+(this.options.socialrotateeffect?" amazingslider-rotate":"")+' amazingslider-social-pinterest" style="'+socialBtnCSS+'"><div class="mh-icon-pinterest" style="'+socialCSS+'background-color:#c92228;"></div></div>'; 276 socialCode+='<div style="clear:both;"></div></div>';$(".wonderpluginslider-container-"+this.id,this.container).append(socialCode);if(this.options.socialmode=="mouseover")$(".wonderpluginslider-container-"+this.id,this.container).hover(function(){clearTimeout(instance.socialTimeout);$(".amazingslider-social-"+instance.id,instance.container).fadeIn()},function(){instance.socialTimeout=setTimeout(function(){$(".amazingslider-social-"+instance.id,instance.container).fadeOut()},instance.options.arrowhideonmouseleave)}); 277 $(".amazingslider-social-btn",this.container).click(function(){var shareUrl=window.location.href+(window.location.href.indexOf("?")<0?"?":"&")+"slidershareid="+instance.elemArray[instance.curElem][ELEM_ID];var shareTitle=instance.elemArray[instance.curElem][ELEM_TITLE];var shareMedia=instance.absoluteUrl(instance.elemArray[instance.curElem][ELEM_SRC]);var isVideo=instance.elemArray[instance.curElem][ELEM_VIDEO].length>0;if($(this).hasClass("amazingslider-social-facebook"))window.open("https://www.facebook.com/sharer/sharer.php?u="+ 282 278 encodeURIComponent(shareUrl)+"&t="+encodeURIComponent(shareTitle),"_blank");else if($(this).hasClass("amazingslider-social-twitter"))window.open("https://twitter.com/share?url="+encodeURIComponent(shareUrl)+"&text="+encodeURIComponent(shareTitle),"_blank");else if($(this).hasClass("amazingslider-social-pinterest"))window.open("https://pinterest.com/pin/create/bookmarklet/?media="+encodeURIComponent(shareMedia)+"&url="+encodeURIComponent(shareUrl)+"&description="+encodeURIComponent(shareTitle)+"&is_video="+ 283 279 (isVideo?"true":"false"),"_blank");return false})},initVideoApi:function(){var i,j,videos;var initYoutube=false,initVimeo=false;for(i=0;i<this.elemArray.length;i++){videos=this.elemArray[i][ELEM_VIDEO];for(j=0;j<videos.length;j++)if(videos[j].type==TYPE_VIDEO_YOUTUBE)initYoutube=true;else if(videos[j].type==TYPE_VIDEO_VIMEO)initVimeo=true}if(this.options.inityoutube&&initYoutube){var tag=document.createElement("script");tag.src="https://www.youtube.com/iframe_api";var firstScriptTag=document.getElementsByTagName("script")[0]; … … 290 286 instance.slideRun(-1)},swipeRight:function(){instance.container.trigger("amazingslider.touchswipe",[instance.curElem,-2]);instance.videoAutoplayMode=false;instance.slideRun(-2)}})}if(this.options.supportarrowkeys)$(document).on("keyup",function(e){if(e.keyCode==39)instance.slideRun(-1);else if(e.keyCode==37)instance.slideRun(-2)});$(".amazingslider-play-"+this.id,this.container).click(function(){instance.videoAutoplayMode=false;instance.playVideo(true)})},playVideo:function(autoplay){var videos=this.elemArray[this.curElem][ELEM_VIDEO]; 291 287 if(videos.length<=0)return;$(".amazingslider-img-"+this.id,this.container).empty();this.sliderTimeout.stop();this.videoPaused=true;var muted=false;var playsinline=false;if(autoplay&&this.options.playmutedandinlinewhenautoplay&&this.videoAutoplayMode){muted=true;playsinline=true}var href=videos[0].href;var type=videos[0].type;if(type==TYPE_VIDEO_YOUTUBE)this.playYoutubeVideo(href,autoplay,muted,playsinline);else if(type==TYPE_VIDEO_VIMEO)this.playVimeoVideo(href,autoplay,muted,playsinline);else if(type== 292 TYPE_VIDEO_MP4){var webmhref=videos.length>1?videos[1].href:"";this.playMp4Video(href,webmhref,autoplay,muted,playsinline)}else if(type==TYPE_IFRAME)this.playIframeVideo(href,autoplay)},playMp4Video:function(href,webmhref,autoplay,muted,playsinline){var $videoWrapper=$(".amazingslider-video-wrapper-"+this.id,this.container);$videoWrapper.css({display:"block",width:"100%",height:"100%"});var isHTML5=true;if(this.options.forceflash&&ASPlatforms.flashInstalled())isHTML5=false;if(!ASPlatforms.html5VideoSupported())isHTML5= 293 false;if(ASPlatforms.isIE6789())isHTML5=false;if(ASPlatforms.isFirefox()||ASPlatforms.isOpera())if(!ASPlatforms.canPlayMP4()&&!webmhref)isHTML5=false;if(ASPlatforms.isIE10()&&this.options.forceflashonie10||ASPlatforms.isIE11()&&this.options.forceflashonie11)isHTML5=false;if(ASPlatforms.isQt())isHTML5=true;if(isHTML5){var videoSrc=href;if(ASPlatforms.isFirefox()||ASPlatforms.isOpera())if(webmhref)videoSrc=webmhref;this.embedHTML5Video($videoWrapper,videoSrc,autoplay,muted,playsinline)}else{var videoFile= 294 href;if(videoFile.charAt(0)!="/"&&videoFile.substring(0,5)!="http:"&&videoFile.substring(0,6)!="https:")videoFile=this.options.htmlfolder+videoFile;this.embedFlash($videoWrapper,"100%","100%",this.options.jsfolder+"html5boxplayer.swf","transparent",{width:"100%",height:"100%",jsobjectname:"wonderpluginsliderObjects",hidecontrols:this.options.videohidecontrols?"1":"0",hideplaybutton:this.options.videohideplaybutton?"1":"0",videofile:videoFile,hdfile:"",ishd:"0",autoplay:autoplay?"1":"0",errorcss:".amazingslider-error"+ 295 this.options.errorcss,id:this.id})}},embedHTML5Video:function($container,src,autoPlay,muted,playsinline){if(this.options.savevolumetocookie){var cookies=document.cookie?document.cookie.split(";"):[];for(var i in cookies){var parts=$.trim(cookies[i]).split("=");if(parts.length&&parts[0]=="amazingslidervideovolume"){this.options.defaultvideovolume=parts[1];break}}}if(ASPlatforms.isFirefox()&&this.options.nativecontrolsonfirefox||(ASPlatforms.isIE6789()||ASPlatforms.isIE10()||ASPlatforms.isIE11())&& 288 TYPE_VIDEO_MP4){var webmhref=videos.length>1?videos[1].href:"";this.playMp4Video(href,webmhref,autoplay,muted,playsinline)}else if(type==TYPE_IFRAME)this.playIframeVideo(href,autoplay)},playMp4Video:function(href,webmhref,autoplay,muted,playsinline){var $videoWrapper=$(".amazingslider-video-wrapper-"+this.id,this.container);$videoWrapper.css({display:"block",width:"100%",height:"100%"});var videoSrc=href;if(ASPlatforms.isFirefox()||ASPlatforms.isOpera())if(webmhref)videoSrc=webmhref;this.embedHTML5Video($videoWrapper, 289 videoSrc,autoplay,muted,playsinline)},embedHTML5Video:function($container,src,autoPlay,muted,playsinline){if(this.options.savevolumetocookie){var cookies=document.cookie?document.cookie.split(";"):[];for(var i in cookies){var parts=$.trim(cookies[i]).split("=");if(parts.length&&parts[0]=="amazingslidervideovolume"){this.options.defaultvideovolume=parts[1];break}}}if(ASPlatforms.isFirefox()&&this.options.nativecontrolsonfirefox||(ASPlatforms.isIE6789()||ASPlatforms.isIE10()||ASPlatforms.isIE11())&& 296 290 this.options.nativecontrolsonie||ASPlatforms.isIPhone()&&this.options.nativecontrolsoniphone||ASPlatforms.isIPad()&&this.options.nativecontrolsonipad||ASPlatforms.isAndroid()&&this.options.nativecontrolsonandroid)this.options.nativehtml5controls=true;if(ASPlatforms.isIOS()||ASPlatforms.isAndroid())this.options.nativecontrolsonfullscreen=true;$container.html("<div class='amazingslider-video-container-"+this.id+"' style='position:relative;display:block;width:100%;height:100%;'><video class='slider-inline-video' style='width:100%;height:100%;'"+ 297 291 (this.options.nativehtml5controls&&!this.options.videohidecontrols?" controls='controls'":"")+(this.options.nativecontrolsnodownload?" controlsList='nodownload'":"")+(muted?" muted":"")+(playsinline?" playsinline":"")+"></div>");$("video",$container).get(0).setAttribute("src",src);if(autoPlay)$("video",$container).get(0).play();if(!this.options.nativehtml5controls&&!this.options.videohidecontrols){$("video",$container).data("src",src);$("video",$container).asHTML5VideoControls(this.options.skinsfolder, 298 this,".slider-inline-video",this.options.videohidecontrols,this.options.videohideplaybutton,muted?0:this.options.defaultvideovolume,this.options.nativecontrolsonfullscreen,this.options.nativecontrolsnodownload,null)}var instance=this;$("video",$container).off("ended").on("ended",function(){instance.videoPaused=false;if(!instance.isPaused)instance.slideRun(-1,true)});$("video",$container).get(0).onvolumechange=function(){if(!this.muted&&this.volume>0)instance.videoAutoplayMode=false}},embedFlash:function($container, 299 w,h,src,wmode,flashVars){if(ASPlatforms.flashInstalled()){var htmlOptions={pluginspage:"https://www.adobe.com/go/getflashplayer",quality:"high",allowFullScreen:"true",allowScriptAccess:"always",type:"application/x-shockwave-flash"};htmlOptions.width=w;htmlOptions.height=h;htmlOptions.src=src;htmlOptions.wmode=wmode;htmlOptions.flashVars=$.param(flashVars);var htmlString="";for(var key in htmlOptions)htmlString+=key+"="+htmlOptions[key]+" ";$container.html("<embed "+htmlString+"/>")}else $container.html("<div class='amazingslider-error-"+ 300 this.id+"' style='display:block; position:absolute; text-align:center; width:"+this.options.width+"px; left:0px; top:"+Math.round(this.options.height/2-10)+"px;'><div>The required Adobe Flash Player plugin is not installed</div><br /><div style='display:block;position:relative;text-align:center;width:112px;height:33px;margin:0px auto;'><a href='https://www.adobe.com/go/getflashplayer'><img src='https://www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' width='112' height='33'></img></a></div>")}, 301 playVimeoVideo:function(href,autoplay,muted,playsinline){var $videoWrapper=$(".amazingslider-video-wrapper-"+this.id,this.container);$videoWrapper.css({display:"block",width:"100%",height:"100%"});if(this.options.previewmode){$videoWrapper.html("<div class='amazingslider-error-"+this.id+"'>To view Vimeo video, publish the slider then open it in your web browser</div>");return}else{var src=href+(href.indexOf("?")<0?"?":"&")+"autoplay="+(autoplay&&!ASPlatforms.isAndroid()?"1":"0")+(muted?"&muted=1": 302 "")+(playsinline?"&playsinline=1":"")+"&api=1&player_id=amazingslider_vimeo_"+this.id;$videoWrapper.html("<iframe id='amazingslider_vimeo_"+this.id+"' width='"+this.options.width+"' height='"+this.options.height+"' src='"+src+"' frameborder='0' allow='autoplay' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>");this.playVimeoAPICallback()}},playVimeoAPICallback:function(){var instance=this;if(typeof $f==="function"){var vimeoIframe=$("#amazingslider_vimeo_"+this.id)[0];var vimeoPlayer= 303 $f(vimeoIframe);vimeoPlayer.addEvent("ready",function(){vimeoPlayer.addEvent("finish",function(id){instance.videoPaused=false;if(!instance.isPaused)instance.slideRun(-1,true)});vimeoPlayer.addEvent("volumechange",function(id){instance.videoAutoplayMode=false})})}else setTimeout(function(){if(instance.vimeoAPILoadCount<10){instance.vimeoAPILoadCount++;instance.playVimeoAPICallback()}},300)},playIframeVideo:function(href,autoplay){var $videoWrapper=$(".amazingslider-video-wrapper-"+this.id,this.container); 304 $videoWrapper.css({display:"block",width:"100%",height:"100%"});if(this.options.previewmode){$videoWrapper.html("<div class='amazingslider-error-"+this.id+"'>To view the video, publish the slider then open it in your web browser</div>");return}else{var src=href;$videoWrapper.html("<iframe id='amazingslider_iframevideo_"+this.id+"' width='"+this.options.width+"' height='"+this.options.height+"' src='"+src+"' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>")}},getYoutubeParams:function(href){var result= 305 {};if(href.indexOf("?")<0)return result;var params=href.substring(href.indexOf("?")+1).split("&");for(var i=0;i<params.length;i++){var value=params[i].split("=");if(value&&value.length==2&&value[0].toLowerCase()!="v")result[value[0].toLowerCase()]=value[1]}return result},playYoutubeVideo:function(href,autoplay,muted,playsinline){var $videoWrapper=$(".amazingslider-video-wrapper-"+this.id,this.container);$videoWrapper.css({display:"block",width:"100%",height:"100%"});if(this.options.previewmode){$videoWrapper.html("<div class='amazingslider-error-"+ 292 this,".slider-inline-video",this.options.videohidecontrols,this.options.videohideplaybutton,muted?0:this.options.defaultvideovolume,this.options.nativecontrolsonfullscreen,this.options.nativecontrolsnodownload,null)}var instance=this;$("video",$container).off("ended").on("ended",function(){instance.videoPaused=false;if(!instance.isPaused)instance.slideRun(-1,true)});$("video",$container).get(0).onvolumechange=function(){if(!this.muted&&this.volume>0)instance.videoAutoplayMode=false}},playVimeoVideo:function(href, 293 autoplay,muted,playsinline){var $videoWrapper=$(".amazingslider-video-wrapper-"+this.id,this.container);$videoWrapper.css({display:"block",width:"100%",height:"100%"});if(this.options.previewmode){$videoWrapper.html("<div class='amazingslider-error-"+this.id+"'>To view Vimeo video, publish the slider then open it in your web browser</div>");return}else{var src=href+(href.indexOf("?")<0?"?":"&")+"autoplay="+(autoplay&&!ASPlatforms.isAndroid()?"1":"0")+(muted?"&muted=1":"")+(playsinline?"&playsinline=1": 294 "")+"&api=1&player_id=amazingslider_vimeo_"+this.id;$videoWrapper.html("<iframe id='amazingslider_vimeo_"+this.id+"' width='"+this.options.width+"' height='"+this.options.height+"' src='"+src+"' frameborder='0' allow='autoplay' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>");this.playVimeoAPICallback()}},playVimeoAPICallback:function(){var instance=this;if(typeof $f==="function"){var vimeoIframe=$("#amazingslider_vimeo_"+this.id)[0];var vimeoPlayer=$f(vimeoIframe);vimeoPlayer.addEvent("ready", 295 function(){vimeoPlayer.addEvent("finish",function(id){instance.videoPaused=false;if(!instance.isPaused)instance.slideRun(-1,true)});vimeoPlayer.addEvent("volumechange",function(id){instance.videoAutoplayMode=false})})}else setTimeout(function(){if(instance.vimeoAPILoadCount<10){instance.vimeoAPILoadCount++;instance.playVimeoAPICallback()}},300)},playIframeVideo:function(href,autoplay){var $videoWrapper=$(".amazingslider-video-wrapper-"+this.id,this.container);$videoWrapper.css({display:"block",width:"100%", 296 height:"100%"});if(this.options.previewmode){$videoWrapper.html("<div class='amazingslider-error-"+this.id+"'>To view the video, publish the slider then open it in your web browser</div>");return}else{var src=href;$videoWrapper.html("<iframe id='amazingslider_iframevideo_"+this.id+"' width='"+this.options.width+"' height='"+this.options.height+"' src='"+src+"' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>")}},getYoutubeParams:function(href){var result={};if(href.indexOf("?")< 297 0)return result;var params=href.substring(href.indexOf("?")+1).split("&");for(var i=0;i<params.length;i++){var value=params[i].split("=");if(value&&value.length==2&&value[0].toLowerCase()!="v")result[value[0].toLowerCase()]=value[1]}return result},playYoutubeVideo:function(href,autoplay,muted,playsinline){var $videoWrapper=$(".amazingslider-video-wrapper-"+this.id,this.container);$videoWrapper.css({display:"block",width:"100%",height:"100%"});if(this.options.previewmode){$videoWrapper.html("<div class='amazingslider-error-"+ 306 298 this.id+"'>To view YouTube video, publish the slider then open it in your web browser</div>");return}var instance=this;if(!ASYouTubeIframeAPIReady){ASYouTubeTimeout+=100;if(ASYouTubeTimeout<3E3){setTimeout(function(){instance.playYoutubeVideo(href,autoplay,muted,playsinline)},100);return}}if(ASYouTubeIframeAPIReady){$videoWrapper.html("<div id='amazingslider-video-"+this.id+"' style='display:block;'></div>");var params=this.getYoutubeParams(href);params=$.extend({},params,{"html5":1,"autoplay":1, 307 299 "rel":0,"autohide":1,"wmode":"transparent"});if(instance.options.videohidecontrols)params=$.extend({},params,{"controls":0,"showinfo":0});if(muted)params["mute"]=1;if(playsinline)params["playsinline"]=1;var id=href.match(/(\?v=|\/\d\/|\/embed\/|\/v\/|\.be\/)([a-zA-Z0-9\-\_]+)/)[2];new YT.Player("amazingslider-video-"+this.id,{width:instance.options.width,height:instance.options.height,videoId:id,playerVars:params,events:{"onVolumeChange":function(event){if(!event.target.isMuted()&&event.target.getVolume()> … … 490 482 this.options.customeffects)this.options=$.extend({},this.options.customeffects[this.options.textformat],this.options);if($(this).data("skin")&&typeof WONDERPLUGIN_SLIDER_SKIN_OPTIONS!=="undefined")if($(this).data("skin")in WONDERPLUGIN_SLIDER_SKIN_OPTIONS)this.options=$.extend({},WONDERPLUGIN_SLIDER_SKIN_OPTIONS[$(this).data("skin")],this.options);var defaultOptions={watermarklinkdefault:"https://www.wonderplugin.com/wordpress-slider/",watermarktargetdefault:"_blank",previewmode:false,preloadprevnext:true,isresponsive:true,isfullscreen:false, 491 483 fullbrowserwidth:false,usejsforfullbrowserwidth:false,windowresizetimeout:0,outputtext:false,titletag:"h2",descriptiontag:"h3",initsocial:true,showsocial:false,socialmode:"mouseover",socialposition:"position:absolute;top:8px;right:8px;",socialpositionsmallscreen:"position:absolute;top:8px;right:8px;",socialdirection:"horizontal",socialbuttonsize:32,socialbuttonfontsize:18,socialrotateeffect:true,showfacebook:true,showtwitter:true,showpinterest:true,titleusealt:true,ratioresponsive:false,ratiomediumscreen:800, 492 ratiomediumheight:1.2,ratiosmallscreen:480,ratiosmallheight:1.6,autoplay:false,pauseonmouseover:true,slideinterval:5E3,randomplay:false,loop:0, forceflash:false,forceflashonie10:true,forceflashonie11:false,nativehtml5controls:false,nativecontrolsonfirefox:false,nativecontrolsonie:false,nativecontrolsoniphone:true,nativecontrolsonipad:true,nativecontrolsonandroid:true,nativecontrolsonfullscreen:true,nativecontrolsnodownload:true,lazyloadtags:"lazy-src,lazyload-src,cfsrc,src,orig-src",addextraattributes:false,493 initvimeo:true,inityoutube:true,lightboxbarheight:64,lightboxresponsive:true,lightboxshowtitle:true,lightboxshowdescription:false,lightboxshownavigation:false,lightboxthumbwidth:80,lightboxthumbheight:60,lightboxthumbtopmargin:12,lightboxthumbbottommargin:4,lightboxtitlebottomcss:"color:#333; font-size:14px; font-family:Armata,sans-serif,Arial; overflow:hidden; text-align:left;",lightboxdescriptionbottomcss:"color:#333; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 0px 0px; padding: 0px;",494 lightbox fullscreenmode:false,lightboxcloseonoverlay:true,lightboxvideohidecontrols:false,lightboxtitlestyle:"bottom",lightboximagepercentage:75,lightboxdefaultvideovolume:1,lightboxoverlaybgcolor:"#000",lightboxoverlayopacity:0.9,lightboxbgcolor:"#fff",lightboxtitleprefix:"%NUM / %TOTAL",lightboxtitleinsidecss:"color:#fff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left;",lightboxdescriptioninsidecss:"color:#fff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 0px 0px; padding: 0px;",484 ratiomediumheight:1.2,ratiosmallscreen:480,ratiosmallheight:1.6,autoplay:false,pauseonmouseover:true,slideinterval:5E3,randomplay:false,loop:0,nativehtml5controls:false,nativecontrolsonfirefox:false,nativecontrolsonie:false,nativecontrolsoniphone:true,nativecontrolsonipad:true,nativecontrolsonandroid:true,nativecontrolsonfullscreen:true,nativecontrolsnodownload:true,lazyloadtags:"lazy-src,lazyload-src,cfsrc,src,orig-src",addextraattributes:false,initvimeo:true,inityoutube:true,lightboxbarheight:64, 485 lightboxresponsive:true,lightboxshowtitle:true,lightboxshowdescription:false,lightboxshownavigation:false,lightboxthumbwidth:80,lightboxthumbheight:60,lightboxthumbtopmargin:12,lightboxthumbbottommargin:4,lightboxtitlebottomcss:"color:#333; font-size:14px; font-family:Armata,sans-serif,Arial; overflow:hidden; text-align:left;",lightboxdescriptionbottomcss:"color:#333; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 0px 0px; padding: 0px;",lightboxfullscreenmode:false, 486 lightboxcloseonoverlay:true,lightboxvideohidecontrols:false,lightboxtitlestyle:"bottom",lightboximagepercentage:75,lightboxdefaultvideovolume:1,lightboxoverlaybgcolor:"#000",lightboxoverlayopacity:0.9,lightboxbgcolor:"#fff",lightboxtitleprefix:"%NUM / %TOTAL",lightboxtitleinsidecss:"color:#fff; font-size:16px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left;",lightboxdescriptioninsidecss:"color:#fff; font-size:12px; font-family:Arial,Helvetica,sans-serif; overflow:hidden; text-align:left; margin:4px 0px 0px; padding: 0px;", 495 487 lightboxautoslide:false,lightboxslideinterval:5E3,lightboxshowtimer:true,lightboxtimerposition:"bottom",lightboxtimerheight:2,lightboxtimercolor:"#dc572e",lightboxtimeropacity:1,lightboxshowplaybutton:true,lightboxalwaysshownavarrows:false,lightboxbordersize:8,lightboxshowtitleprefix:true,lightboxborderradius:0,lightboxnogroup:false,lightboxshowsocial:false,lightboxsocialposition:"position:absolute;top:100%;right:0;",lightboxsocialpositionsmallscreen:"position:absolute;top:100%;right:0;left:0;",lightboxsocialdirection:"horizontal", 496 488 lightboxsocialbuttonsize:32,lightboxsocialbuttonfontsize:18,lightboxsocialrotateeffect:true,lightboxshowfacebook:true,lightboxshowtwitter:true,lightboxshowpinterest:true,scalemode:"fill",skinsfoldername:"skins",showtimer:true,timerposition:"bottom",timercolor:"#ffffff",timeropacity:0.6,timerheight:2,autoplayvideo:false,playvideoimage:"play-video.png",playvideoimagewidth:64,playvideoimageheight:64,playmutedandinlinewhenautoplay:false,playvideoonclickthumb:true,videohidecontrols:false,videohideplaybutton:false, … … 509 501 wtextdefault:"87,111,114,100,80,114,101,115,115,32,83,108,105,100,101,114,32,84,114,105,97,108,32,86,101,114,115,105,111,110",wimagedefault:"",wpamcss:"position:absolute;top:6px;left:6px;visibility:visible !important;z-index:999999 !important;display:block !important;",wtextcssdefault:"font:12px Arial,Tahoma,Helvetica,sans-serif;color:#666;padding:2px 4px;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;background-color:#fff;opacity:0.9;filter:alpha(opacity=90);",winkcssdefault:"text-decoration:none;font:12px Arial,Tahoma,Helvetica,sans-serif;color:#333;"}; 510 502 var defaultTextOptions={textstyle:"static",textpositionstatic:"bottom",textautohide:false,textpositionmarginstatic:0,textleftrightpercentforstatic:"40",textpositiondynamic:"topleft,topright,bottomleft,bottomright,topcenter,bottomcenter",textpositionmarginleft:24,textpositionmarginright:24,textpositionmargintop:24,textpositionmarginbottom:24,texteffect:"slide",texteffecteasing:"easeOutCubic",texteffectduration:600,texteffectslidedirection:"left",texteffectslidedistance:120,texteffectdelay:500,texteffectseparate:true, 511 texteffect1:"slide",texteffectslidedirection1:"right",texteffectslidedistance1:120,texteffecteasing1:"easeOutCubic",texteffectduration1:600,texteffectdelay1:1500,texteffect2:"slide",texteffectslidedirection2:"right",texteffectslidedistance2:120,texteffecteasing2:"easeOutCubic",texteffectduration2:600,texteffectdelay2:1500,addgooglefonts: true,googlefonts:"Inder",textcss:"display:block; padding:12px; text-align:left;",textbgcss:"display:block; position:absolute; top:0px; left:0px; width:100%; height:100%; background-color:#333333; opacity:0.6; filter:alpha(opacity=60);",503 texteffect1:"slide",texteffectslidedirection1:"right",texteffectslidedistance1:120,texteffecteasing1:"easeOutCubic",texteffectduration1:600,texteffectdelay1:1500,texteffect2:"slide",texteffectslidedirection2:"right",texteffectslidedistance2:120,texteffecteasing2:"easeOutCubic",texteffectduration2:600,texteffectdelay2:1500,addgooglefonts:false,googlefonts:"",textcss:"display:block; padding:12px; text-align:left;",textbgcss:"display:block; position:absolute; top:0px; left:0px; width:100%; height:100%; background-color:#333333; opacity:0.6; filter:alpha(opacity=60);", 512 504 titlecss:"display:block; position:relative; font:bold 14px Inder,Arial,Tahoma,Helvetica,sans-serif; color:#fff;",descriptioncss:"display:block; position:relative; font:12px Anaheim,Arial,Tahoma,Helvetica,sans-serif; color:#fff;",buttoncss:"display:block; position:relative;",texteffectresponsive:true,texteffectresponsivesize:600,titlecssresponsive:"font-size:12px;",descriptioncssresponsive:"font-size:12px;",buttoncssresponsive:""};this.options=$.extend(true,defaultOptions,this.options);var effects= 513 505 ["slice","blocks","threedtiles","tiles","slide","cssslide","elastic","crossfade","fadeoutfadein","kenburns","threedhorizontal","threedhorizontalwithzoom","fade","shuffle","threed","threedwithzoom","blinds","threedflip","threedflipwithzoom","flip","flipwithzoom"];for(var i=0;i<effects.length;i++){var effectduration=effects[i]+"duration";if(effectduration in this.options)this.options[effects[i]].duration=this.options[effectduration];var effectfallback=effects[i]+"fallback";if(effectfallback in this.options)this.options[effects[i]].fallback= -
wonderplugin-slider-lite/trunk/engine/wonderpluginsliderskins.js
r2365455 r2806215 1 var WONDERPLUGIN_SLIDER_SKIN_OPTIONS={classic:{textformat:"Bottom bar",skinsfoldername:"",loadimageondemand:false,isresponsive:true,autoplayvideo:false,pauseonmouseover:false,addmargin:false,randomplay:false,playvideoonclickthumb:true,slideinterval:8E3,enabletouchswipe:true,transitiononfirstslide:false,loop:0,autoplay:true,navplayvideoimage:"play-32-32-0.png",navpreviewheight:60,timerheight:2,shownumbering:false,skin:"Classic",textautohide:true,addgooglefonts: true,navshowplaypause:true,navshowplayvideo:false,2 navshowplaypausestandalonemarginx:8,navshowplaypausestandalonemarginy:8,navbuttonradius:0,navpreviewposition:"top",navmarginy:16,showshadow:false,navfeaturedarrowimagewidth:16,navpreviewwidth:120,googlefonts:" Inder",textpositionmarginright:24,bordercolor:"#ffffff",navthumbnavigationarrowimagewidth:32,navthumbtitlehovercss:"text-decoration:underline;",arrowwidth:32,texteffecteasing:"easeOutCubic",texteffect:"fade,slide",navspacing:8,playvideoimage:"playvideo-64-64-0.png",ribbonimage:"ribbon_topleft-0.png",1 var WONDERPLUGIN_SLIDER_SKIN_OPTIONS={classic:{textformat:"Bottom bar",skinsfoldername:"",loadimageondemand:false,isresponsive:true,autoplayvideo:false,pauseonmouseover:false,addmargin:false,randomplay:false,playvideoonclickthumb:true,slideinterval:8E3,enabletouchswipe:true,transitiononfirstslide:false,loop:0,autoplay:true,navplayvideoimage:"play-32-32-0.png",navpreviewheight:60,timerheight:2,shownumbering:false,skin:"Classic",textautohide:true,addgooglefonts:false,navshowplaypause:true,navshowplayvideo:false, 2 navshowplaypausestandalonemarginx:8,navshowplaypausestandalonemarginy:8,navbuttonradius:0,navpreviewposition:"top",navmarginy:16,showshadow:false,navfeaturedarrowimagewidth:16,navpreviewwidth:120,googlefonts:"",textpositionmarginright:24,bordercolor:"#ffffff",navthumbnavigationarrowimagewidth:32,navthumbtitlehovercss:"text-decoration:underline;",arrowwidth:32,texteffecteasing:"easeOutCubic",texteffect:"fade,slide",navspacing:8,playvideoimage:"playvideo-64-64-0.png",ribbonimage:"ribbon_topleft-0.png", 3 3 navwidth:24,navheight:24,arrowimage:"arrows-32-32-0.png",timeropacity:0.6,navthumbnavigationarrowimage:"carouselarrows-32-32-0.png",navshowplaypausestandalone:false,navpreviewbordercolor:"#ffffff",ribbonposition:"topleft",navthumbdescriptioncss:"display:block;position:relative;padding:2px 4px;text-align:left;font:normal 12px Arial,Helvetica,sans-serif;color:#333;",navborder:4,navthumbtitleheight:20,textpositionmargintop:24,navswitchonmouseover:false,navarrowimage:"navarrows-28-28-0.png",arrowtop:50, 4 4 textstyle:"static",playvideoimageheight:64,navfonthighlightcolor:"#666666",showbackgroundimage:false,navpreviewborder:4,navopacity:0.8,shadowcolor:"#aaaaaa",navbuttonshowbgimage:true,navbuttonbgimage:"navbuttonbgimage-28-28-0.png",navthumbnavigationarrowimageheight:32,textbgcss:"display:block; position:absolute; top:0px; left:0px; width:100%; height:100%; background-color:#333333; opacity:0.6; filter:alpha(opacity=60);",navpreviewarrowwidth:16,playvideoimagewidth:64,navshowpreviewontouch:false,bottomshadowimagewidth:96, … … 7 7 navthumbtitlewidth:120,arrowheight:32,arrowmargin:8,texteffectduration:1E3,bottomshadowimage:"bottomshadow-110-95-0.png",border:0,timerposition:"bottom",navfontcolor:"#333333",navthumbnavigationstyle:"arrow",borderradius:0,navbuttonhighlightcolor:"#333333",textpositionstatic:"bottom",navthumbstyle:"imageonly",textcss:"display:block; padding:12px; text-align:left;",navbordercolor:"#ffffff",navpreviewarrowimage:"previewarrow-16-8-0.png",showbottomshadow:true,navdirection:"horizontal",textpositionmarginstatic:0, 8 8 backgroundimage:"",navposition:"bottom",arrowstyle:"mouseover",bottomshadowimagetop:95,textpositiondynamic:"bottomleft",navshowbuttons:false,navthumbtitlecss:"display:block;position:relative;padding:2px 4px;text-align:left;font:bold 14px Arial,Helvetica,sans-serif;color:#333;",textpositionmarginbottom:24},cube:{textformat:"Color box",skinsfoldername:"",loadimageondemand:false,isresponsive:true,autoplayvideo:false,pauseonmouseover:false,addmargin:false,randomplay:false,playvideoonclickthumb:true,slideinterval:8E3, 9 enabletouchswipe:true,transitiononfirstslide:false,loop:0,autoplay:true,navplayvideoimage:"play-32-32-0.png",navpreviewheight:60,timerheight:2,shownumbering:false,skin:"Cube",textautohide:true,addgooglefonts: true,navshowplaypause:true,navshowplayvideo:true,navshowplaypausestandalonemarginx:8,navshowplaypausestandalonemarginy:8,navbuttonradius:0,navpreviewposition:"top",navmarginy:16,showshadow:false,navfeaturedarrowimagewidth:16,navpreviewwidth:120,googlefonts:"Inder",textpositionmarginright:24,bordercolor:"#ffffff",9 enabletouchswipe:true,transitiononfirstslide:false,loop:0,autoplay:true,navplayvideoimage:"play-32-32-0.png",navpreviewheight:60,timerheight:2,shownumbering:false,skin:"Cube",textautohide:true,addgooglefonts:false,navshowplaypause:true,navshowplayvideo:true,navshowplaypausestandalonemarginx:8,navshowplaypausestandalonemarginy:8,navbuttonradius:0,navpreviewposition:"top",navmarginy:16,showshadow:false,navfeaturedarrowimagewidth:16,navpreviewwidth:120,googlefonts:"",textpositionmarginright:24,bordercolor:"#ffffff", 10 10 navthumbnavigationarrowimagewidth:32,navthumbtitlehovercss:"text-decoration:underline;",arrowwidth:36,texteffecteasing:"easeOutCubic",texteffect:"fade",navspacing:8,playvideoimage:"playvideo-64-64-0.png",ribbonimage:"ribbon_topleft-0.png",navwidth:24,navheight:24,arrowimage:"arrows-36-80-0.png",timeropacity:0.6,navthumbnavigationarrowimage:"carouselarrows-32-32-0.png",navshowplaypausestandalone:false,navpreviewbordercolor:"#ffffff",ribbonposition:"topleft",navthumbdescriptioncss:"display:block;position:relative;padding:2px 4px;text-align:left;font:normal 12px Arial,Helvetica,sans-serif;color:#333;", 11 11 navborder:4,navthumbtitleheight:20,textpositionmargintop:24,navswitchonmouseover:false,navarrowimage:"navarrows-28-28-0.png",arrowtop:50,textstyle:"static",playvideoimageheight:64,navfonthighlightcolor:"#666666",showbackgroundimage:false,navpreviewborder:4,navopacity:0.8,shadowcolor:"#aaaaaa",navbuttonshowbgimage:true,navbuttonbgimage:"navbuttonbgimage-28-28-0.png",navthumbnavigationarrowimageheight:32,textbgcss:"display:block; position:absolute; top:0px; left:0px; width:100%; height:100%; background-color:#333333; opacity:0.6; filter:alpha(opacity=60);", -
wonderplugin-slider-lite/trunk/readme.txt
r2783785 r2806215 4 4 Donate link: https://www.wonderplugin.com/order/?ref=lite 5 5 Requires at least: 3.6 6 Tested up to: 6.0. 26 Tested up to: 6.0.3 7 7 Stable tag: trunk 8 8 License: GPLv2 or later … … 89 89 == Changelog == 90 90 91 = 13.5 = 92 * Remove Google fonts from the default Skin CSS for GDPR 93 * Remove the legacy Flash video player SWF file from the installation package 94 * Change the plugin folder of the Trial version to the same as the Pro version 95 * Hide the lightbox slideshow play button by default 96 91 97 = 13.4 = 92 98 * Support Google Analytics 4 to track lightbox events -
wonderplugin-slider-lite/trunk/wonderpluginslider.php
r2783785 r2806215 4 4 Plugin URI: https://www.wonderplugin.com/wordpress-slider/ 5 5 Description: WordPress Image and Video Slider Plugin 6 Version: 13. 46 Version: 13.5 7 7 Author: Magic Hills Pty Ltd 8 8 Author URI: https://www.wonderplugin.com/ … … 16 16 return; 17 17 18 define('WONDERPLUGIN_SLIDER_VERSION', '13. 4');18 define('WONDERPLUGIN_SLIDER_VERSION', '13.5'); 19 19 define('WONDERPLUGIN_SLIDER_URL', plugin_dir_url( __FILE__ )); 20 20 define('WONDERPLUGIN_SLIDER_PATH', plugin_dir_path( __FILE__ )); 21 21 define('WONDERPLUGIN_SLIDER_PLUGIN', basename(dirname(__FILE__)) . '/' . basename(__FILE__)); 22 define('WONDERPLUGIN_SLIDER_PLUGIN_VERSION', '13. 4');22 define('WONDERPLUGIN_SLIDER_PLUGIN_VERSION', '13.5'); 23 23 24 24 require_once 'app/class-wonderplugin-slider-controller.php';
Note: See TracChangeset
for help on using the changeset viewer.