Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: mini thread navigation for perlmonks

by tinita (Parson)
on Aug 06, 2013 at 23:35 UTC ( #1048215=note: print w/replies, xml ) Need Help??


in reply to Re: mini thread navigation for perlmonks
in thread mini thread navigation for perlmonks

only original post(er) shows up
have you selected a different layout in Display Settings? I'm using the default. If you only see the first note, then it's not finding div.notes tr.reply.
If you can tell me which layout you use I can try to make it work for that also.
and since there are no links can't use tab-select to navigate to >> to toggle it
I see. It's only a clickable span element but I can change it to a link. I guess a ctrl shortcut would also be helpful; I did that at perl-community.de and will add it here too.
Also, for this to be useful it has to float on screen, cause jumping to the end of page is irritatingand be draggable
What do you mean? I used the animate function for the scrolling. If I understand you correctly, that's how it should be?

Replies are listed 'Best First'.
Re^3: mini thread navigation for perlmonks
by Anonymous Monk on Aug 07, 2013 at 03:03 UTC

    have you selected a different layout in Display Settings?

    No, I'm using standard Anonymous Monk layout (logged out)

    What do you mean? I used the animate function for the scrolling. If I understand you correctly, that's how it should be?

    I mean it should be fixed on screen, so if I scroll the content, it remains on the screen where it was left, it floats, like a floating toolbar, it doesn't change its position on screen ; like browser navigation buttons, window contents scroll, the buttons stay on top of window

    Right now its added after all the replies -- at the end -- I kinda tend to read from top to bottom, so navigation aids tend to be most useful when they poke me in the eye, like first page somewhere on top :)

    See perlre for an example, I believe the magic it uses is  style="position: fixed;"

    About draggable, I mean re-positionable -- floating is great, collapsability is great, draggability is the ultimate in control -- it might not matter if this navigation-aid is positioned well by default, but draggability is a great way to see if there is a better position -- jquery.ui.draggable.js

      No, I'm using standard Anonymous Monk layout (logged out)
      Which browser do you use?
      I mean it should be fixed on screen, so if I scroll the content, it remains on the screen where it was left
      Well, that's the intention of line 4: position: fixed in the css file ;-)
      If the navi doesn't appear fixed in the top right corner, then there's really a problem with the css.

        Which browser do you use?

        firefox 17 something

        If the navi doesn't appear fixed in the top right corner, then there's really a problem with the css.

        Hmm, maybe its not being loaded?

        I'll try loading it explicitly with

        javascript:(function(){ $('<link rel="stylesheet" type="text/css" href="https://raw.github +.com/perlpunk/mytools/master/perlmonks-js-css/perlmonks.css" >').appe +ndTo("head"); })()

        Aha, its not being loaded , finally provoked a message Error: The stylesheet https://raw.github.com/perlpunk/mytools/master/perlmonks-js-css/perlmonks.css was not loaded because its MIME type, "text/plain", is not "text/css".

        update: apparently this is a feature not a bug, and apparently also its abuse to use raw.github like that, so

        So, if you could post/publish/maintain a version of the latest js/css in <readmore><c></c></readmore> in the root node for example, and then perlmonks can link to it (with first code tags (abspart=1) being the JS and second(abspart=2) tags the CSS) like this

        javascript:(function(){ $('<script src="?;displaytype=displaycode;node_id=1048124;abspart= +1"></script>').appendTo("head"); $('<link rel="stylesheet" type="text/css" href="?;displaytype=disp +laycode;node_id=1048124;abspart=2" >').appendTo("head"); })()

        This way of linking is used for css all the time on perlmonks, example themes for Anonymous Monk or try out themes without changing display settings

        Firefox likes it, there is no http/https/mimetype to complain about :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1048215]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2019-10-21 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?