PageSourceSearch

https://www.torinosuites.com/js/dnn.dom.positioning.js

js torinosuites.com collected 2026-10-08 07:43:28 UTC 6,669 bytes, 1 lines download raw bytes

1Type.registerNamespace("dnn.dom.positioning"),dnn.extend(dnn.dom.positioning,{pns:"dnn.dom",ns:"positioning",dragCtr:null,dragCtrDims:null,bodyScrollLeft:function(){if(window.pageYOffset)return window.pageYOffset;var t=document.compatMode&&"BackCompat"!=document.compatMode?document.documentElement:document.body;return t.scrollLeft},bodyScrollTop:function(){if(window.pageXOffset)return window.pageXOffset;var t=document.compatMode&&"BackCompat"!=document.compatMode?document.documentElement:document.body;return t.scrollTop},viewPortHeight:function(){if(window.innerHeight)return window.innerHeight;var t=document.compatMode&&"BackCompat"!=document.compatMode?document.documentElement:document.body;return t.clientHeight},viewPortWidth:function(){if(window.innerWidth)return window.innerWidth;var t=document.compatMode&&"BackCompat"!=document.compatMode?document.documentElement:document.body;return t.clientWidth},dragContainer:function(oCtl,e){var iNewLeft=0,iNewTop=0,oCont=dnn.dom.getById(oCtl.contID),oTitle=dnn.dom.positioning.dragCtr,iScrollTop=this.bodyScrollTop(),iScrollLeft=this.bodyScrollLeft();null==oCtl.startLeft&&(oCtl.startLeft=e.clientX-this.elementLeft(oCont)+iScrollLeft),null==oCtl.startTop&&(oCtl.startTop=e.clientY-this.elementTop(oCont)+iScrollTop),"relative"==oCont.style.position&&(oCont.style.position="absolute"),iNewLeft=e.clientX-oCtl.startLeft+iScrollLeft,iNewTop=e.clientY-oCtl.startTop+iScrollTop,iNewLeft>this.elementWidth(document.forms[0])&&(iNewLeft=this.elementWidth(document.forms[0])),iNewTop>this.elementHeight(document.forms[0])&&(iNewTop=this.elementHeight(document.forms[0])),oCont.style.left=iNewLeft+"px",oCont.style.top=iNewTop+"px",null!=oTitle&&null!=oTitle.dragOver&&eval(oCtl.dragOver)},elementHeight:function(t){return null==t.offsetHeight||0==t.offsetHeight?null==t.offsetParent?0:null==t.offsetParent.offsetHeight||0==t.offsetParent.offsetHeight?null!=t.offsetParent.offsetParent?t.offsetParent.offsetParent.offsetHeight:0:t.offsetParent.offsetHeight:t.offsetHeight},elementLeft:function(t){return this.elementPos(t).l},elementOverlapScore:function(t,e){var n=0,o=0;return t.l<=e.l&&e.l<=t.r&&(n+=(t.r<e.r?t.r:e.r)-e.l),e.l<=t.l&&t.l<=e.r&&(n+=(e.r<t.r?e.r:t.r)-t.l),t.t<=e.t&&e.t<=t.b&&(o+=(t.b<e.b?t.b:e.b)-e.t),e.t<=t.t&&t.t<=e.b&&(o+=(e.b<t.b?e.b:t.b)-t.t),n*o},elementTop:function(t){return this.elementPos(t).t},elementPos:function(t){var e=new Object;e.t=0,e.l=0,e.at=0,e.al=0;var n,o=t,i=t.id;for(null!=i&&0==i.length&&(i=null),"absolute"==t.style.position&&(e.t=o.offsetTop,e.l=o.offsetLeft);null!=o&&(e.at+=o.offsetTop,e.al+=o.offsetLeft,"absolute"!=t.style.position&&(n=o.currentStyle?o.currentStyle:Sys.UI.DomElement._getCurrentStyle(o),(o.id==i||"relative"!=n.position)&&(e.t+=o.offsetTop,e.l+=o.offsetLeft)),o=o.offsetParent,!(null==o||"BODY"==o.tagName.toUpperCase()&&dnn.dom.browser.isType(dnn.dom.browser.Konqueror))););return e},elementWidth:function(t){return null==t.offsetWidth||0==t.offsetWidth?null==t.offsetParent?0:null==t.offsetParent.offsetWidth||0==t.offsetParent.offsetWidth?null!=t.offsetParent.offsetParent?t.offsetParent.offsetParent.offsetWidth:0:t.offsetParent.offsetWidth:t.offsetWidth},enableDragAndDrop:function(t,e,n,o){return dnn.dom.addSafeHandler(document.body,"onmousemove",dnn.dom.positioning,"__dnn_bodyMouseMove"),dnn.dom.addSafeHandler(document.body,"onmouseup",dnn.dom.positioning,"__dnn_bodyMouseUp"),dnn.dom.addSafeHandler(e,"onmousedown",dnn.dom.positioning,"__dnn_containerMouseDownDelay"),dnn.dom.browser.type==dnn.dom.browser.InternetExplorer?e.style.cursor="hand":e.style.cursor="pointer",0==t.id.length&&(t.id=e.id+"__dnnCtr"),e.contID=t.id,null!=n&&(e.dragComplete=n),null!=o&&(e.dragOver=o),!0},placeOnTop:function(t,e,n){if(!(dnn.dom.browser.isType(dnn.dom.browser.Opera,dnn.dom.browser.Mozilla,dnn.dom.browser.Netscape,dnn.dom.browser.Safari)||dnn.dom.browser.isType(dnn.dom.browser.InternetExplorer)&&dnn.dom.browser.version>=7)){var o=dnn.dom.getById("ifr"+t.id);if(null==o){var o=document.createElement("iframe");o.id="ifr"+t.id,null!=n&&(o.src=n),o.style.top="0px",o.style.left="0px",o.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)",o.scrolling="no",o.frameBorder="no",o.style.display="none",o.style.position="absolute",t.parentNode.appendChild(o)}var i=new dnn.dom.positioning.dims(t);o.style.width=i.w,o.style.height=i.h,o.style.top=i.t+"px",o.style.left=i.l+"px";var r=dnn.dom.getCurrentStyle(t,"zIndex");(null==r||0==r||isNaN(null))&&(r=1),t.style.zIndex=r,o.style.zIndex=r-1,e?o.style.display="block":null!=o&&(o.style.display="none")}},__dnn_containerMouseDown:function(t){for(;null==t.contID;)if(t=t.parentNode,"BODY"==t.tagName.toUpperCase())return;dnn.dom.positioning.dragCtr=t,t.startTop=null,t.startLeft=null;var e=dnn.dom.getById(t.contID);(null==e.style.position||0==e.style.position.length)&&(e.style.position="relative"),dnn.dom.positioning.dragCtrDims=new dnn.dom.positioning.dims(e),null==e.getAttribute("_b")&&(e.setAttribute("_b",e.style.backgroundColor),e.setAttribute("_z",e.style.zIndex),e.setAttribute("_w",e.style.width),e.setAttribute("_d",e.style.border),e.style.zIndex=9999,e.style.backgroundColor=DNN_HIGHLIGHT_COLOR,e.style.border="4px outset "+DNN_HIGHLIGHT_COLOR,e.style.width=dnn.dom.positioning.elementWidth(e),dnn.dom.browser.type==dnn.dom.browser.InternetExplorer&&(e.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=80)"))},__dnn_containerMouseDownDelay:function(t){var e=t.srcElement;null==e&&(e=t.target),dnn.doDelay("__dnn_dragdrop",500,this.__dnn_containerMouseDown,e)},__dnn_bodyMouseUp:function(){dnn.cancelDelay("__dnn_dragdrop");var oCtl=dnn.dom.positioning.dragCtr;if(null!=oCtl&&null!=oCtl.dragComplete){eval(oCtl.dragComplete);var oCont=dnn.dom.getById(oCtl.contID);oCont.style.backgroundColor=oCont.getAttribute("_b"),oCont.style.zIndex=oCont.getAttribute("_z"),oCont.style.width=oCont.getAttribute("_w"),oCont.style.border=oCont.getAttribute("_d"),oCont.setAttribute("_b",null),oCont.setAttribute("_z",null),dnn.dom.browser.type==dnn.dom.browser.InternetExplorer&&(oCont.style.filter=null)}dnn.dom.positioning.dragCtr=null},__dnn_bodyMouseMove:function(t){null!=this.dragCtr&&this.dragContainer(this.dragCtr,t)}}),dnn.dom.positioning.dims=function(t){var e="none"==t.style.display;e&&(t.style.display=""),this.w=dnn.dom.positioning.elementWidth(t),this.h=dnn.dom.positioning.elementHeight(t);var n=dnn.dom.positioning.elementPos(t);this.t=n.t,this.l=n.l,this.at=n.at,this.al=n.al,this.rot=this.at-this.t,this.rol=this.al-this.l,this.r=this.l+this.w,this.b=this.t+this.h,e&&(t.style.display="none")},dnn.dom.positioning.dims.registerClass("dnn.dom.positioning.dims");

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.