User talk:Para/flickreview.user.js

Latest comment: 17 years ago by Para

Install flickreview.user.js for Greasemonkey - Show flickreview.user.js without installing


Image:Flame tree mali.jpg with the box added by the script

Dragging is now implemented; a "lite" version of domdrag was extracted from http://www.xs4all.nl/~jlpoutre/BoT/Javascript/RSSpanel/ Alphax (talk) 13:39, 10 November 2006 (UTC)Reply

And it now starts in the top right corner. Hooray. Alphax (talk) 15:09, 10 November 2006 (UTC)Reply
Thanks, that's great work. There are still things I liked in the previous version though, and I have tried modifying it to fit my wishes but the domdrag script is making it somewhat more complicated to understand. The functionality I'd like to see is:
  1. Initial box position is on something empty, like the top right corner of body area or right side of the image or so
  2. Box moves down when user scrolls down, so that it's not necessary to both scroll down and move the box to compare licenses
  3. Copypasting the license is possible
  4. The box can be moved if it's on the way, and doesn't jump somewhere when starting to drag

I've tried fixing these but when I get one done, something else breaks. For 2, the box will almost certainly have to have position="fixed". For 3, the draggable item should be the image with the box as the root. These are easy to do but then 1 and 4 break. Have to keep trying to figure out this thing. --Para 18:12, 10 November 2006 (UTC)Reply

Image:Hay Tor Back.jpg with the box added by the script
  1. See Image:Hay Tor Back with flickreview.png for what it looks like at 1024x768.
  2. Done, using fixed positioning
  3. Done. Using element.innerHTML doesn't allow referencing of objects as DOM nodes, so I had to change that slightly. The frame now drags by the image instead of anywhere; as the screenshot shows, you can now select the text inside it.
  4. Not sure... it can definitely be moved, but I'm not sure if I can prevent the jumping.
Alphax (talk) 04:45, 11 November 2006 (UTC)Reply
Perfect! I fixed the jumping now too. The domdrag script initializes the box position if it hasn't been given in px, so em ones are interpreted as px. --Para 15:56, 11 November 2006 (UTC)Reply
Return to the user page of "Para/flickreview.user.js".