WordPress/wp-includes/js/colorpicker.min.js

2 lines
16 KiB
JavaScript
Raw Normal View History

/*! This file is auto-generated */
function getAnchorPosition(F){var e=new Object,t=0,i=0,o=!1,n=!1,s=!1;if(document.getElementById?o=!0:document.all?n=!0:document.layers&&(s=!0),o&&document.all)t=AnchorPosition_getPageOffsetLeft(document.all[F]),i=AnchorPosition_getPageOffsetTop(document.all[F]);else if(o){var d=document.getElementById(F);t=AnchorPosition_getPageOffsetLeft(d),i=AnchorPosition_getPageOffsetTop(d)}else if(n)t=AnchorPosition_getPageOffsetLeft(document.all[F]),i=AnchorPosition_getPageOffsetTop(document.all[F]);else{if(!s)return e.x=0,e.y=0,e;for(var C=0,r=0;r<document.anchors.length;r++)if(document.anchors[r].name==F){C=1;break}if(0==C)return e.x=0,e.y=0,e;t=document.anchors[r].x,i=document.anchors[r].y}return e.x=t,e.y=i,e}function getAnchorWindowPosition(F){var e=getAnchorPosition(F),t=0,i=0;return document.getElementById?i=isNaN(window.screenX)?(t=e.x-document.body.scrollLeft+window.screenLeft,e.y-document.body.scrollTop+window.screenTop):(t=e.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset,e.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset):document.all?(t=e.x-document.body.scrollLeft+window.screenLeft,i=e.y-document.body.scrollTop+window.screenTop):document.layers&&(t=e.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset,i=e.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset),e.x=t,e.y=i,e}function AnchorPosition_getPageOffsetLeft(F){for(var e=F.offsetLeft;null!=(F=F.offsetParent);)e+=F.offsetLeft;return e}function AnchorPosition_getWindowOffsetLeft(F){return AnchorPosition_getPageOffsetLeft(F)-document.body.scrollLeft}function AnchorPosition_getPageOffsetTop(F){for(var e=F.offsetTop;null!=(F=F.offsetParent);)e+=F.offsetTop;return e}function AnchorPosition_getWindowOffsetTop(F){return AnchorPosition_getPageOffsetTop(F)-document.body.scrollTop}function PopupWindow_getXYPosition(F){var e;e="WINDOW"==this.type?getAnchorWindowPosition(F):getAnchorPosition(F),this.x=e.x,this.y=e.y}function PopupWindow_setSize(F,e){this.width=F,this.height=e}function PopupWindow_populate(F){this.contents=F,this.populated=!1}function PopupWindow_setUrl(F){this.url=F}function PopupWindow_setWindowProperties(F){this.windowProperties=F}function PopupWindow_refresh(){if(null!=this.divName){if(this.use_gebi)document.getElementById(this.divName).innerHTML=this.contents;else if(this.use_css)document.all[this.divName].innerHTML=this.contents;else if(this.use_layers){var F=document.layers[this.divName];F.document.open(),F.document.writeln(this.contents),F.document.close()}}else null==this.popupWindow||this.popupWindow.closed||(""!=this.url?this.popupWindow.location.href=this.url:(this.popupWindow.document.open(),this.popupWindow.document.writeln(this.contents),this.popupWindow.document.close()),this.popupWindow.focus())}function PopupWindow_showPopup(F){if(this.getXYPosition(F),this.x+=this.offsetX,this.y+=this.offsetY,this.populated||""==this.contents||(this.populated=!0,this.refresh()),null!=this.divName)this.use_gebi?(document.getElementById(this.divName).style.left=this.x+"px",document.getElementById(this.divName).style.top=this.y,document.getElementById(this.divName).style.visibility="visible"):this.use_css?(document.all[this.divName].style.left=this.x,document.all[this.divName].style.top=this.y,document.all[this.divName].style.visibility="visible"):this.use_layers&&(document.layers[this.divName].left=this.x,document.layers[this.divName].top=this.y,document.layers[this.divName].visibility="visible");else{if(null==this.popupWindow||this.popupWindow.closed){this.x<0&&(this.x=0),this.y<0&&(this.y=0),screen&&screen.availHeight&&this.y+this.height>screen.availHeight&&(this.y=screen.availHeight-this.height),screen&&screen.availWidth&&this.x+this.width>screen.availWidth&&(this.x=screen.availWidth-this.width);var e=window.opera||document.layers&&!navigator.mimeTypes["*"]||"KDE"==navigator.vendor||document.childNodes&&!document.all&&!navigator.taintEnabled;this.popupWindow=window.open(e?"":"about:blank","window_"+F,this.windowProperties+",width="+this.width+",height="