domContainer.onmousedown = function(e) {domContainer.setAttribute('draggable','true');};
domContainer.onmouseup = function(e) {domContainer.setAttribute('draggable','false');};
if (this.cookieData.pos) {
var posContainer = this.cookieData.pos.split(',');
Warning: Undefined variable $currentPosition in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 6
Warning: Trying to access array offset on value of type null in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 6
domContainer.style.left = posContainer[0];
Warning: Undefined variable $currentPosition in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 12
Warning: Trying to access array offset on value of type null in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 12
domContainer.style.bottom = posContainer[1];
if (typeof posContainer[2] !== 'undefined' && posContainer[2] > 0){
this.pendingHeight = posContainer[2];
}
};
this.addEvent(domContainer, 'dragstart', function (event) {
lhc_obj.removeById('
Warning: Undefined variable $chatCSSPrefix in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 24
_overlapse');
var style = window.getComputedStyle(event.target, null);
lhc_obj.offset_data = (parseInt(style.getPropertyValue("
Warning: Undefined variable $currentPosition in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 26
Warning: Trying to access array offset on value of type null in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 26
left"),10) + (
Warning: Undefined variable $currentPosition in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 26
Warning: Trying to access array offset on value of type null in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 26
-event.clientX)) + ',' + (parseInt(style.getPropertyValue("
Warning: Undefined variable $currentPosition in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 26
Warning: Trying to access array offset on value of type null in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 26
bottom"),10)
Warning: Undefined variable $currentPosition in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 26
Warning: Trying to access array offset on value of type null in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 26
+event.clientY);
try {
event.dataTransfer.setData("text/plain",lhc_obj.offset_data);
} catch (e){};
lhc_obj.is_dragging = true;
domContainer.style.zIndex=2147483647;
theKid = document.createElement("div");
theKid.innerHTML = '';
theKid.setAttribute('id','
Warning: Undefined variable $chatCSSPrefix in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 34
_overlapse');
theKid.style.cssText = "position:absolute;height:" + domContainer.style.height + ";width:100%;";
domContainer.insertBefore(theKid, domContainer.firstChild);
lhc_obj.removeClass(document.getElementById('
Warning: Undefined variable $chatCSSPrefix in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 37
_iframe'),'lhc-loading');
});
this.addEvent(domContainer, 'dragenter', function (e) {
lhc_obj.is_dragging = true;
return false;
});
if (!this.dragAttatched) {
this.dragAttatched = true;
this.addEvent(document.body, 'drop', function (event) {
if (lhc_obj.is_dragging == true) {
domContainer = document.getElementById(domContainerId);
domContainer.style.zIndex=2147483646;
lhc_obj.is_dragging = false;
lhc_obj.removeById('
Warning: Undefined variable $chatCSSPrefix in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 53
_overlapse');
var offset = lhc_obj.offset_data.split(',');
dm = domContainer;
var w = window,
d = document,
e = d.documentElement,
g = d.getElementsByTagName('body')[0],
x = w.innerWidth || e.clientWidth || g.clientWidth,
y = w.innerHeight|| e.clientHeight|| g.clientHeight;
var cookiePos = '';
Warning: Undefined variable $currentPosition in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 66
Warning: Trying to access array offset on value of type null in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 66
var leftpos = (event.clientX + parseInt(offset[0],10));
leftpos = leftpos < 0 ? 0 : leftpos;
if (x < (leftpos + parseInt(dm.offsetWidth)+20)){
leftpos = x - parseInt(dm.offsetWidth)-10;
};
dm.style.left = leftpos + 'px';
cookiePos += dm.style.left;
Warning: Undefined variable $currentPosition in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 84
Warning: Trying to access array offset on value of type null in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 84
var botpos = (-event.clientY + parseInt(offset[1],10));
botpos = botpos < 0 ? 0 : botpos;
if (y < (botpos + parseInt(dm.offsetHeight))){
botpos = y - parseInt(dm.offsetHeight);
};
dm.style.bottom = botpos + 'px';
cookiePos += ","+dm.style.bottom;
lhc_obj.addCookieAttribute('pos',cookiePos);
event.preventDefault();
domContainer.draggable = false;
return false;
};
});
this.addEvent(window, 'dragover', function (event) {
if (lhc_obj.is_dragging == true) {
domContainer = document.getElementById(domContainerId);
domContainer.setAttribute('draggable','false');
var offset = lhc_obj.offset_data.split(',');
var dm = domContainer;
window.dmcontainer = dm;
var w = window,
d = document,
e = d.documentElement,
g = d.getElementsByTagName('body')[0],
x = w.innerWidth || e.clientWidth || g.clientWidth,
y = w.innerHeight|| e.clientHeight|| g.clientHeight;
Warning: Undefined variable $currentPosition in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 130
Warning: Trying to access array offset on value of type null in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 130
var leftpos = (event.clientX + parseInt(offset[0],10));
leftpos = leftpos < 0 ? 0 : leftpos;
if (x < (leftpos + parseInt(dm.offsetWidth)+20)){
leftpos = x - parseInt(dm.offsetWidth)-10;
};
if (dm.style.left != leftpos + 'px') {
dm.style.left = leftpos + 'px';
};
Warning: Undefined variable $currentPosition in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 150
Warning: Trying to access array offset on value of type null in /www/cadena24.net/cadena24.net/public/livehelperchat-master/lhc_web/design/defaulttheme/tpl/lhchat/getstatus/drag_drop_logic.tpl.php on line 150
var botpos = (-event.clientY + parseInt(offset[1],10));
botpos = botpos < 0 ? 0 : botpos;
if (y < (botpos + parseInt(dm.offsetHeight))){
botpos = y - parseInt(dm.offsetHeight);
};
if (dm.style.bottom != botpos + 'px') {
dm.style.bottom = botpos + 'px';
};
event.preventDefault();
return false;
}
});
};