Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Lightweight interface to cast votes? (Free Nodelet Hack)

by LanX (Archbishop)
on Nov 04, 2017 at 15:59 UTC ( #1202750=note: print w/replies, xml ) Need Help??


in reply to Lightweight interface to cast votes?

For a start:

Here a simplistic Free Nodelet hack which duplicates the vote-button next to all vote-radios.

Ugly but effective.

NB: This is still not solving the problem of unnecessary overhead by

  • traffic,
  • load-time
  • need to rebuild the page

Add the following to your Free Nodelet Settings

<script> //<!-- ( function (){ var button = document.getElementsByClassName('voteit')[0].firstChi +ld.firstChild; var votes = document.getElementsByClassName('reputation'); for ( i in votes ) { el= votes[i]; if ( el.id == "" ) { el.firstChild.appendChild( button.cloneNode() ) } } })() // --> </script>

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^2: Lightweight interface to cast votes? (Free Nodelet Hack)
by Anonymous Monk on Nov 04, 2017 at 18:42 UTC
    I think i posed a low overhead url

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2019-05-22 20:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (140 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!