GithubHelp home page GithubHelp logo

auxiliary / rater Goto Github PK

View Code? Open in Web Editor NEW
128.0 128.0 57.0 90 KB

A highly customizable rating widget that supports images, utf8 glyphs and other html elements!

Home Page: http://auxiliary.github.io/rater

License: MIT License

HTML 26.56% JavaScript 73.44%

rater's People

Contributors

auxiliary avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rater's Issues

iOS support

Hi,
is this script supported on iOS browser ?
I'm testing it on iPad (http://auxiliary.github.io/rater/) and if there are multiple rating elements on the same page, each click on one rating element resets the others to their default value.

is it normal ?

How to handle ajax response?

let options = {
      max_value: 5,
      step_size: 0.5,
      initial_value: pruc.initial_value,
      cursor: "pointer",
      readonly: false,
      ajax_method: "POST",
      url: pruc.ajax_url,
      additional_data: {
        action: "handle_rating",
        nonce: pruc.nonce,
        id: id,
  }
  $(".rating").rate(options); 
  Everything is alright. But how can I able to do something with ajax response. In jquey, we have a success function where we can get ajax response. But in this case we can not if I am not wrong.

select all previous elements

What i want is when i click on third element it must select all previous elements. such as first and second elment too .

Size?

Is it possible to modify the size of the stars? If yes, how? Thanks

How to make it RTL?

I want to use it with a RTL Direction website but it's not working properly. It's showing the rating properly in RTL but when mouse hover its work LTR.

Fontawesome symbols

Hi, how do I pass in fontawesome characters? I'm getting this error with the below code:

Cannot read property base of undefined

    $('.rating').rate({
      readonly: true,
      step_size: 0.5,
      symbols: {
        fontawesome_star: {
          base: '\uf005',
          hover: '\uf005',
          selected: '\uf005',
        },
     },
    });

Do not depend on jQuery

Depends on jQuery

What do you think about making the component independent of jQuery? Would be really nice to have it as standalone-independent component without need for any dependencies

How to set the size of the stars?

I have added the .js and it works principally...
But the stars are much to small...
What is the correct way set the size of the stars and the whole element?
I have tried to set some css but without success.
Note; I use flexlayout

Thanks for a feedback.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.