• Resolved aviadherman

    (@aviadherman)


    Hi,
    I’m using your awesome plugin in a RTL language site.

    Is there a setting to flip the widget so that the star on the far right will represent a 1 star rating and the far left represents a 5 star rating?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Milan Petrovic

    (@gdragon)

    The plugin currently doesn’t support RTL. I hope to have that in development later this year, due to the nature of the rating CSS used, it is not easy to do.

    Thread Starter aviadherman

    (@aviadherman)

    Thanks for the quick reply.
    Is it possible for the user to update his vote without refreshing the page? That way they would immediately see their mistake and correct it by clicking the opposite star.

    Plugin Author Milan Petrovic

    (@gdragon)

    No, and that is not planned to change for now.

    Thread Starter aviadherman

    (@aviadherman)

    Hey Milan!

    I would like to help with your awesome plugin.

    I added RTL support with two simple adjustments :

    1) In CSS:
    .gdrts-with-fonticon .gdrts-stars-active, .gdrts-with-fonticon .gdrts-stars-current{right:0 !important;}

    2) In JS:
    Changed x=e.pageX-offset.left to x=math.min(width-e.pageX+offset.left,width)

    Hope this helps adding RTL support to your great plugin!

    Aviad

    Thread Starter aviadherman

    (@aviadherman)

    Almost forgot, here is an example:
    https://atudaim.org.il/מידע/עתודה-אקדמית

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘RTL support’ is closed to new replies.