first commit
This commit is contained in:
commit
aee061ddba
7322 files changed
+2918816
No files matched your search
+3
@@ -0,0 +1,3 @@
|
||||
//Unite Gallery, Version: 1.7.79, released 08 April 2024
|
||||
|
||||
function debugLine(e,t,i){!0===e&&(e="true"),!1===e&&(e="false");var n=e;if("object"==typeof e)for(name in n="",e){var r=e[name];n+=" "+name+": "+r}1!=t||i||(n+=" "+Math.random()),1==i&&((i=jQuery("#debug_line")).width(200),500<=i.height()&&i.html(""),n=i.html()+"<br> -------------- <br>"+n),jQuery("#debug_line").show().html(n)}function debugSide(e){var t="";for(name in e){var i=e[name];t+=name+" : "+i+"<br>"}jQuery("#debug_side").show().html(t)}function trace(e){"undefined"!=typeof console&&console.log(e)}function UGFunctions(){var r=null,v=this,o={starTime:0,arrThemes:[],isTouchDevice:-1,isRgbaSupported:-1,timeCache:{},dataCache:{},lastEventType:"",lastEventTime:0,lastTouchStartElement:null,touchThreshold:700,handle:null};function t(e,t,i){t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent?t.attachEvent("on"+e,i):t[e]=i}this.debugVar="",this.getvalopt={FORCE_BOOLEAN:"force_boolean",FORCE_NUMERIC:"force_numeric",TRIM:"trim"},this.z__________GENERAL___________=function(){},this.getVal=function(e,t,i,n){i=i||"";var r="",r=!e||"object"!=typeof e||0==e.hasOwnProperty(t)?i:e[t];switch(n){case v.getvalopt.FORCE_BOOLEAN:r=v.strToBool(r);break;case v.getvalopt.TRIM:r=String(r),r=jQuery.trim(r);break;case v.getvalopt.FORCE_NUMERIC:"string"==typeof(r=jQuery.trim(r))&&(r.replace("px",""),r=Number(r))}return r},this.z__________FULL_SCREEN___________=function(){},this.toFullscreen=function(e,t){if(e.requestFullscreen)e.requestFullscreen();else if(e.mozRequestFullScreen)e.mozRequestFullScreen();else if(e.webkitRequestFullscreen)e.webkitRequestFullscreen();else{if(!e.msRequestFullscreen)return!1;e.msRequestFullscreen()}return!0},this.exitFullscreen=function(){if(0==v.isFullScreen())return!1;if(document.exitFullscreen)document.exitFullscreen();else if(document.cancelFullScreen)document.cancelFullScreen();else if(document.mozCancelFullScreen)document.mozCancelFullScreen();else if(document.webkitExitFullscreen)document.webkitExitFullscreen();else{if(!document.msExitFullscreen)return!1;document.msExitFullscreen()}return!0},this.addFullScreenChangeEvent=function(e){document.msExitFullscreen?t("MSFullscreenChange",document,e):document.onfullscreenchange?t("mozfullscreenchange",document,e):t("fullscreenchange",document,e)},this.destroyFullScreenChangeEvent=function(){jQuery(document).unbind("fullscreenChange"),jQuery(document).unbind("mozfullscreenchange"),jQuery(document).unbind("webkitfullscreenchange"),jQuery(document).unbind("MSFullscreenChange")},this.getFullScreenElement=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},this.isFullScreen=function(){var e=document.fullscreen||document.mozFullScreen||document.webkitIsFullScreen||document.msFullscreenElement;return e=!!e},this.z__________GET_PROPS___________=function(){},this.getBrowserPrefix=function(){if(null!==r)return r;var e,t=["webkit","Moz","ms","O"],i=document.createElement("div");for(e in t){var n=t[e];if(n+"Transform"in i.style)return n=n.toLowerCase(),r=n}return r=""},this.getImageInsideParentDataByImage=function(e,t,i){var n=e.parent(),e=v.getImageOriginalSize(e);return v.getImageInsideParentData(n,e.width,e.height,t,i)},this.getImageInsideParentData=function(e,t,i,n,r,o,a){r=r||{};var s={};void 0===o&&(o=e.width()),void 0===a&&(a=e.height()),r.padding_left&&(o-=r.padding_left),r.padding_right&&(o-=r.padding_right),r.padding_top&&(a-=r.padding_top),r.padding_bottom&&(a-=r.padding_bottom);var l,u=null,d="100%",_=null,g=null,e="display:block;margin:0px auto;";return 0<t&&0<i&&("down"==n&&t<o&&i<a?(g=(o-(u=t))/2,_=(a-(d=i))/2):"fill"==n||"filltop"==n?(u=(d=a)*(l=t/i))<o?(d=(u=o)/l,g=0,_=Math.round((d-a)/2*-1),"filltop"==n&&(_=0)):(_=0,g=Math.round((u-o)/2*-1)):(_=0,g=(o-(u=(d=a)*(l=t/i)))/2,"fitvert"!=n&&o<u&&(g=0,_=(a-(d=(u=o)/l))/2)),u=Math.floor(u),d=Math.floor(d),_=Math.floor(_),g=Math.floor(g),e="position:absolute;"),r.padding_top&&(_+=r.padding_top),r.padding_left&&(g+=r.padding_left),s.imageWidth=u,s.imageHeight=d,s.imageTop=_,s.imageLeft=g,s.imageRight=g+u,s.imageBottom=0==_||"100%"==d?null:_+d,s.style=e,s},this.getElementCenterPosition=function(e,t){var i=e.parent(),n=v.getElementSize(e),r=v.getElementSize(i),e=r.width,i=r.height;t&&void 0!==t.padding_top&&(i-=t.padding_top),t&&void 0!==t.padding_bottom&&(i-=t.padding_bottom),t&&void 0!==t.padding_left&&(e-=t.padding_left),t&&void 0!==t.padding_right&&(e-=t.padding_right);r={};return r.left=Math.round((e-n.width)/2),r.top=Math.round((i-n.height)/2),t&&void 0!==t.padding_top&&(r.top+=t.padding_top),t&&void 0!==t.padding_left&&(r.left+=t.padding_left),r},this.getElementCenterPoint=function(e,t){t=t||!1;var i=v.getElementSize(e),e={};return e.x=i.width/2,e.y=i.height/2,1==t&&(e.x+=i.left,e.y+=i.top),e.x=Math.round(e.x),e.y=Math.round(e.y),e},this.getMousePosition=function(e,t){var i={pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY};return e.originalEvent&&e.originalEvent.touches&&0<e.originalEveLine truncated
|
||||
Reference in new issue
Block a user