www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [dlang website] Up Arrow in library

reply "Chris" <wendlec tcd.ie> writes:
A small suggestion for the library layout (phobos etc) on 
dlang.org:

An up arrow like on duckduckgo would be cool, i.e. as soon as you 
scroll down an up arrow appears that brings you back to the top, 
if you click on it. This would be very convenient when browsing 
through the library. Would it be hard to add this feature? If 
needs be, I could write a JS function for that.
May 18 2015
next sibling parent reply "wobbles" <grogan.colin gmail.com> writes:
On Monday, 18 May 2015 at 09:18:55 UTC, Chris wrote:
 A small suggestion for the library layout (phobos etc) on 
 dlang.org:

 An up arrow like on duckduckgo would be cool, i.e. as soon as 
 you scroll down an up arrow appears that brings you back to the 
 top, if you click on it. This would be very convenient when 
 browsing through the library. Would it be hard to add this 
 feature? If needs be, I could write a JS function for that.
Ctrl+Home Ctrl+End work wonders!
May 18 2015
next sibling parent reply "wobbles" <grogan.colin gmail.com> writes:
On Monday, 18 May 2015 at 10:25:26 UTC, wobbles wrote:
 On Monday, 18 May 2015 at 09:18:55 UTC, Chris wrote:
 A small suggestion for the library layout (phobos etc) on 
 dlang.org:

 An up arrow like on duckduckgo would be cool, i.e. as soon as 
 you scroll down an up arrow appears that brings you back to 
 the top, if you click on it. This would be very convenient 
 when browsing through the library. Would it be hard to add 
 this feature? If needs be, I could write a JS function for 
 that.
Ctrl+Home Ctrl+End work wonders!
(On chrome at least...)
May 18 2015
parent "Brad Anderson" <eco gnuk.net> writes:
On Monday, 18 May 2015 at 10:28:11 UTC, wobbles wrote:
 On Monday, 18 May 2015 at 10:25:26 UTC, wobbles wrote:
 On Monday, 18 May 2015 at 09:18:55 UTC, Chris wrote:
 A small suggestion for the library layout (phobos etc) on 
 dlang.org:

 An up arrow like on duckduckgo would be cool, i.e. as soon as 
 you scroll down an up arrow appears that brings you back to 
 the top, if you click on it. This would be very convenient 
 when browsing through the library. Would it be hard to add 
 this feature? If needs be, I could write a JS function for 
 that.
Ctrl+Home Ctrl+End work wonders!
(On chrome at least...)
Home and End without Ctrl work fine for me.
May 18 2015
prev sibling parent "Chris" <wendlec tcd.ie> writes:
On Monday, 18 May 2015 at 10:25:26 UTC, wobbles wrote:
 On Monday, 18 May 2015 at 09:18:55 UTC, Chris wrote:
 A small suggestion for the library layout (phobos etc) on 
 dlang.org:

 An up arrow like on duckduckgo would be cool, i.e. as soon as 
 you scroll down an up arrow appears that brings you back to 
 the top, if you click on it. This would be very convenient 
 when browsing through the library. Would it be hard to add 
 this feature? If needs be, I could write a JS function for 
 that.
Ctrl+Home Ctrl+End work wonders!
But you have to switch between keyboard and mouse. Not optimal.
May 18 2015
prev sibling next sibling parent "w0rp" <devw0rp gmail.com> writes:
"Back to top" links are dumb. Navigating to the top of the page 
is something the client browser should handle. In Firefox, I use 
a plugin with a mouse gesture myself, so holding right click and 
moving my mouse up takes me back to the top of the page. Either 
that, or I press my "home" or "end" keys.
May 18 2015
prev sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 5/18/2015 2:18 AM, Chris wrote:
 A small suggestion for the library layout (phobos etc) on dlang.org:

 An up arrow like on duckduckgo would be cool, i.e. as soon as you scroll down
an
 up arrow appears that brings you back to the top, if you click on it. This
would
 be very convenient when browsing through the library. Would it be hard to add
 this feature? If needs be, I could write a JS function for that.
Pressing the [Home] key does that.
May 18 2015
parent reply "Chris" <wendlec tcd.ie> writes:
On Monday, 18 May 2015 at 19:22:09 UTC, Walter Bright wrote:
 On 5/18/2015 2:18 AM, Chris wrote:
 A small suggestion for the library layout (phobos etc) on 
 dlang.org:

 An up arrow like on duckduckgo would be cool, i.e. as soon as 
 you scroll down an
 up arrow appears that brings you back to the top, if you click 
 on it. This would
 be very convenient when browsing through the library. Would it 
 be hard to add
 this feature? If needs be, I could write a JS function for 
 that.
Pressing the [Home] key does that.
And what do you use on touch screen devices? The up arrow (on duckduckgo for example) is very convenient. It's one of those little things that are not _strictly_ necessary but often come in handy. I agree that a "back to top" link under every function would be kinda stupid. But a little arrow that resides unobtrusively in the corner of the browser window does no harm.
May 19 2015
next sibling parent =?UTF-8?Q?Tobias=20M=C3=BCller?= <troplin bluewin.ch> writes:
"Chris" <wendlec tcd.ie> wrote:
 On Monday, 18 May 2015 at 19:22:09 UTC, Walter Bright wrote:
 On 5/18/2015 2:18 AM, Chris wrote:
 A small suggestion for the library layout (phobos etc) on >> dlang.org:
 
 An up arrow like on duckduckgo would be cool, i.e. as soon as >> you scroll
down an
 up arrow appears that brings you back to the top, if you click >> on it. This
would
 be very convenient when browsing through the library. Would it >> be hard to
add
 this feature? If needs be, I could write a JS function for >> that.
Pressing the [Home] key does that.
And what do you use on touch screen devices? The up arrow (on duckduckgo for example) is very convenient. It's one of those little things that are not _strictly_ necessary but often come in handy.
On iOS (Safari) just tap on the status bar at the top, where the time and battery status is displayed.
May 19 2015
prev sibling parent reply "rumbu" <rumbu rumbu.ro> writes:
 And what do you use on touch screen devices? The up arrow (on 
 duckduckgo for example) is very convenient. It's one of those 
 little things that are not _strictly_ necessary but often come 
 in handy.

 I agree that a "back to top" link under every function would be 
 kinda stupid. But a little arrow that resides unobtrusively in 
 the corner of the browser window does no harm.
Any touch screen browser has this feature (On iOS tap on status bar, on Android diagonal swipe or on Windows use the dedicated Home button). On desktop browsers there are various plugins to do that or you can add a favorite/bookmark/star button pointing to "javascript:scroll(0,0)".
May 20 2015
parent "Chris" <wendlec tcd.ie> writes:
On Wednesday, 20 May 2015 at 21:49:13 UTC, rumbu wrote:
 And what do you use on touch screen devices? The up arrow (on 
 duckduckgo for example) is very convenient. It's one of those 
 little things that are not _strictly_ necessary but often come 
 in handy.

 I agree that a "back to top" link under every function would 
 be kinda stupid. But a little arrow that resides unobtrusively 
 in the corner of the browser window does no harm.
Any touch screen browser has this feature (On iOS tap on status bar, on Android diagonal swipe or on Windows use the dedicated Home button). On desktop browsers there are various plugins to do that or you can add a favorite/bookmark/star button pointing to "javascript:scroll(0,0)".
I've settled for "Scroll To Top": http://pratikabu.users.sourceforge.net/extensions/scrolltotop/ It's customizable and has different scroll modes.
May 21 2015