Archived
1
0

try making not dragable

This commit is contained in:
Jeff Becker 2016-04-30 14:49:09 -04:00
parent 5cd2c3d43a
commit 702dcf7997
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
2 changed files with 2 additions and 2 deletions

View File

@ -265,7 +265,7 @@ function init(prefix) {
var rpl = getReplyTo(); var rpl = getReplyTo();
rpl.setPrefix(prefix); rpl.setPrefix(prefix);
var e = rpl.elem; var e = rpl.elem;
e.setAttribute("draggable", "true"); //e.setAttribute("draggable", "true");
var mouseDownX, mouseDownY; var mouseDownX, mouseDownY;
var originalX = window.width - 300; var originalX = window.width - 300;

View File

@ -38,7 +38,7 @@ parent.appendChild(wrapper);parent.backlink=false;},function(msg){var wrapper=do
parent.backlink=true;}};parent.backlink=true;} parent.backlink=true;}};parent.backlink=true;}
function inject_hover_for_element(elem){var elems=elem.getElementsByClassName("backlink");var ls=[];var l=elems.length;for(var idx=0;idx<l;idx++){var e=elems[idx];ls.push(e);} function inject_hover_for_element(elem){var elems=elem.getElementsByClassName("backlink");var ls=[];var l=elems.length;for(var idx=0;idx<l;idx++){var e=elems[idx];ls.push(e);}
for(var elem in ls){inject_hover(prefix,ls[elem]);}} for(var elem in ls){inject_hover(prefix,ls[elem]);}}
function init(prefix){inject_hover_for_element(document);var rpl=getReplyTo();rpl.setPrefix(prefix);var e=rpl.elem;e.setAttribute("draggable","true");var mouseDownX,mouseDownY;var originalX=window.width-300;var originalY=10;rpl.moveTo(originalX,originalY);e.addEventListener("mousedown",function(ev){mouseDownX=ev.clientX;mouseDownY=ev.clientY;ev.stopPropagation();});e.addEventListener("mouseup",function(ev){ev.stopPropagation();var x=originalX+ev.clientX-mouseDownX function init(prefix){inject_hover_for_element(document);var rpl=getReplyTo();rpl.setPrefix(prefix);var e=rpl.elem;var mouseDownX,mouseDownY;var originalX=window.width-300;var originalY=10;rpl.moveTo(originalX,originalY);e.addEventListener("mousedown",function(ev){mouseDownX=ev.clientX;mouseDownY=ev.clientY;ev.stopPropagation();});e.addEventListener("mouseup",function(ev){ev.stopPropagation();var x=originalX+ev.clientX-mouseDownX
var y=originalY+ev.clientY-mouseDownY var y=originalY+ev.clientY-mouseDownY
rpl.moveTo(x,y);originalX=x;originalY=y;});} rpl.moveTo(x,y);originalX=x;originalY=y;});}
/* ./contrib/js/banner.js */ /* ./contrib/js/banner.js */