add logging
This commit is contained in:
parent
4264004eaf
commit
61e390daf0
@ -264,8 +264,11 @@ function init(prefix) {
|
|||||||
e.setAttribute("draggable", "true");
|
e.setAttribute("draggable", "true");
|
||||||
e.ondragend = function(ev) {
|
e.ondragend = function(ev) {
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
|
var x = 0;
|
||||||
|
var y = 0;
|
||||||
|
console.log(ev);
|
||||||
var el = document.getElementById("postform_container");
|
var el = document.getElementById("postform_container");
|
||||||
el.setAttribute("style", "top: "+ev.windowY+"px; left: "+ev.windowX+ "px; position: fixed; ");
|
el.setAttribute("style", "top: "+y+"px; left: "+x+ "px; position: fixed; ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -37,7 +37,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");e.ondragend=function(ev){ev.preventDefault();var el=document.getElementById("postform_container");el.setAttribute("style","top: "+ev.windowY+"px; left: "+ev.windowX+"px; position: fixed; ");}}
|
function init(prefix){inject_hover_for_element(document);var rpl=getReplyTo();rpl.setPrefix(prefix);var e=rpl.elem;e.setAttribute("draggable","true");e.ondragend=function(ev){ev.preventDefault();var x=0;var y=0;console.log(ev);var el=document.getElementById("postform_container");el.setAttribute("style","top: "+y+"px; left: "+x+"px; position: fixed; ");}}
|
||||||
/* ./contrib/js/banner.js */
|
/* ./contrib/js/banner.js */
|
||||||
var banner_count=3;function nntpchan_inject_banners(elem,prefix){var n=Math.floor(Math.random()*banner_count);var banner=prefix+"static/banner_"+n+".jpg";var e=document.createElement("img");e.src=banner;e.id="nntpchan_banner";elem.appendChild(e);}
|
var banner_count=3;function nntpchan_inject_banners(elem,prefix){var n=Math.floor(Math.random()*banner_count);var banner=prefix+"static/banner_"+n+".jpg";var e=document.createElement("img");e.src=banner;e.id="nntpchan_banner";elem.appendChild(e);}
|
||||||
/* ./contrib/js/expand-image.js */
|
/* ./contrib/js/expand-image.js */
|
||||||
|
Reference in New Issue
Block a user