Coder Social home page Coder Social logo

iovergaard / raty-fa Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wbotelhos/raty

63.0 63.0 29.0 1.11 MB

jQuery Raty FA - A Star Rating Plugin with Font Awesome

Home Page: http://jacob87.github.io/raty-fa/

JavaScript 83.09% CSS 2.74% HTML 14.17%

raty-fa's People

Contributors

aprimadi avatar danielfariati avatar dentarg avatar eblanshey avatar eriwen avatar eskimoblood avatar fsouza avatar gabrielbenz avatar havvg avatar hpgihan avatar iovergaard avatar jacob87 avatar janapol avatar lulalala avatar marcmascort avatar muratguzel avatar olegki avatar rmbl avatar wbotelhos 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

raty-fa's Issues

feature dynamic scoreName

Hey Jacob, thanks for this great plugin.
i want to ask if there's already feature like this? Because i just forked this repo, and make little change.

_createScore: function() {
      var scoreName = this.opt.scoreName;
      if (typeof scoreName === 'function'){
        scoreName = this.opt.scoreName();
      }
      return $('<input />', { type: 'hidden', name: scoreName }).appendTo(this);

i hope this maybe help someone. thank you

Font awesome 5

This plugin is compatible with Font Awesome 4, not with 5.
Here's what you need to change in jquery.raty-fa.js to make ik Font Awesome 5 compatible:

  $.fn.raty.defaults = {
    cancel        : false,
    cancelHint    : 'Cancel this rating!',
    cancelOff     : 'fas fa-fw fa-minus-square',
    cancelOn      : 'fas fa-fw fa-check-square',
    cancelPlace   : 'left',
    click         : undefined,
    half          : false,
    halfShow      : true,
    hints         : ['bad', 'poor', 'regular', 'good', 'gorgeous'],
    iconRange     : undefined,
    mouseout      : undefined,
    mouseover     : undefined,
    noRatedMsg    : 'Not rated yet!',
    number        : 5,
    numberMax     : 20,
    precision     : false,
    readOnly      : false,
    round         : { down: .25, full: .6, up: .76 },
    score         : undefined,
    scoreName     : 'score',
    single        : false,
    size          : null,
    space         : true,
    starHalf      : 'fas fa-fw fa-star-half-alt',
    starOff       : 'far fa-fw fa-star',
    starOn        : 'fas fa-fw fa-star',
    target        : undefined,
    targetFormat  : '{score}',
    targetKeep    : false,
    targetText    : '',
    targetType    : 'hint',
    width         : false
  };

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.