User talk:Para/flickreview.user.js
Jump to navigation
Jump to search
Install flickreview.user.js for Greasemonkey - Show flickreview.user.js without installing
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)
- And it now starts in the top right corner. Hooray. Alphax (talk) 15:09, 10 November 2006 (UTC)
- 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:
- Initial box position is on something empty, like the top right corner of body area or right side of the image or so
- Box moves down when user scrolls down, so that it's not necessary to both scroll down and move the box to compare licenses
- Copypasting the license is possible
- 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)
- See Image:Hay Tor Back with flickreview.png for what it looks like at 1024x768.
- Done, using fixed positioning
- 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.
- 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)
- 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)