From 1452be84bf7311e23897267c99c05b56510a9c29 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 30 Apr 2016 15:10:15 -0400 Subject: [PATCH] fug --- contrib/js/backlink.js | 5 +++-- contrib/static/nntpchan.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/js/backlink.js b/contrib/js/backlink.js index 9643ee5..938dafa 100644 --- a/contrib/js/backlink.js +++ b/contrib/js/backlink.js @@ -268,7 +268,7 @@ function init(prefix) { e.setAttribute("draggable", "true"); var mouseDownX, mouseDownY; - var originalX = window.screenX - 300; + var originalX = window.screenX - 150; var originalY = 10; rpl.moveTo(originalX, originalY); @@ -280,7 +280,8 @@ function init(prefix) { e.addEventListener("dragend", function(ev) { var x = originalX + ev.clientX - mouseDownX; var y = originalY + ev.clientY - mouseDownY; - rpl.moveTo(x, y); + console.log(x,y); + //rpl.moveTo(x, y); originalX = x; originalY = y; }, false); diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index d32968e..bfec091 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -38,7 +38,7 @@ parent.appendChild(wrapper);parent.backlink=false;},function(msg){var wrapper=do 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