Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kartik-v/bootstrap-star-rating
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.0.7
Choose a base ref
...
head repository: kartik-v/bootstrap-star-rating
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 17 commits
  • 49 files changed
  • 5 contributors

Commits on May 20, 2021

  1. Copy the full SHA
    aa22130 View commit details
  2. Updates to release v4.0.9

    kartik-v committed May 20, 2021
    Copy the full SHA
    1b4e93e View commit details

Commits on May 21, 2021

  1. Copy the full SHA
    b1e2f7c View commit details

Commits on May 25, 2021

  1. Update star-rating.js

    mousenter -> mouseenter
    camerontucker authored May 25, 2021
    Copy the full SHA
    4c852fb View commit details
  2. Update star-rating.min.js

    mousenter -> mouseenter
    camerontucker authored May 25, 2021
    Copy the full SHA
    fd1a7d8 View commit details
  3. Merge pull request #213 from RegentCollege/master

    mousenter -> mouseenter
    kartik-v authored May 25, 2021
    Copy the full SHA
    40dab25 View commit details

Commits on Jul 25, 2021

  1. Updates to release v4.1.0

    kartik-v committed Jul 25, 2021
    Copy the full SHA
    5b53222 View commit details

Commits on Sep 10, 2021

  1. Update README

    kartik-v committed Sep 10, 2021
    Copy the full SHA
    2496834 View commit details

Commits on Sep 11, 2021

  1. Copy the full SHA
    a06ddc6 View commit details

Commits on Sep 20, 2021

  1. Updates to release v4.1.2

    kartik-v committed Sep 20, 2021
    Copy the full SHA
    c301efe View commit details

Commits on Sep 27, 2021

  1. Copy the full SHA
    1b7cf6c View commit details

Commits on Jan 20, 2022

  1. Added translation

    Added translation to pt-BR for the "starTitles" property
    douglaspasqualin authored Jan 20, 2022
    Copy the full SHA
    969fb9a View commit details

Commits on Apr 2, 2022

  1. Add locales Bahasa Indonesia (id)

    user committed Apr 2, 2022
    Copy the full SHA
    13fb434 View commit details

Commits on Apr 3, 2022

  1. Merge pull request #218 from douglaspasqualin/master

    Update Brazilian Translations
    kartik-v authored Apr 3, 2022
    Copy the full SHA
    caa0877 View commit details
  2. Merge pull request #219 from jockerz/master

    Add locales Bahasa Indonesia (id)
    kartik-v authored Apr 3, 2022
    1
    Copy the full SHA
    46c21f5 View commit details

Commits on Mar 21, 2023

  1. Update pl.js

    Change polish translation to more accurate.
    symbwell authored Mar 21, 2023
    Copy the full SHA
    5f92490 View commit details

Commits on Mar 22, 2023

  1. Merge pull request #225 from symbwell/patch-1

    Update Polish Translations
    kartik-v authored Mar 22, 2023
    Copy the full SHA
    6f8575f View commit details
Showing with 1,082 additions and 468 deletions.
  1. +39 −0 CHANGE.md
  2. +25 −20 README.md
  3. +34 −34 bower.json
  4. +24 −24 composer.json
  5. +50 −4 css/star-rating.css
  6. +3 −2 css/star-rating.min.css
  7. +37 −27 examples/{sample.html → bs3.html}
  8. +136 −123 examples/{index.html → bs5.html}
  9. +19 −5 js/locales/LANG.js
  10. +20 −5 js/locales/ar.js
  11. +18 −4 js/locales/bn.js
  12. +18 −4 js/locales/de.js
  13. +18 −4 js/locales/es.js
  14. +20 −5 js/locales/fa.js
  15. +18 −4 js/locales/fr.js
  16. +18 −4 js/locales/gr.js
  17. +45 −0 js/locales/id.js
  18. +19 −5 js/locales/it.js
  19. +19 −6 js/locales/kk.js
  20. +20 −6 js/locales/ko.js
  21. +19 −5 js/locales/nl.js
  22. +20 −6 js/locales/pl.js
  23. +26 −5 js/locales/pt-BR.js
  24. +19 −5 js/locales/ro.js
  25. +19 −6 js/locales/ru.js
  26. +26 −5 js/locales/tr.js
  27. +19 −6 js/locales/ua.js
  28. +18 −5 js/locales/zh.js
  29. +31 −37 js/star-rating.js
  30. +2 −2 js/star-rating.min.js
  31. +38 −38 package.json
  32. +9 −3 themes/krajee-fa/theme.css
  33. +20 −5 themes/krajee-fa/theme.js
  34. +11 −4 themes/krajee-fa/theme.min.css
  35. +10 −4 themes/krajee-fa/theme.min.js
  36. +9 −3 themes/krajee-fas/theme.css
  37. +21 −6 themes/krajee-fas/theme.js
  38. +11 −4 themes/krajee-fas/theme.min.css
  39. +12 −5 themes/krajee-fas/theme.min.js
  40. +30 −0 themes/krajee-gly/theme.js
  41. +14 −0 themes/krajee-gly/theme.min.js
  42. +9 −3 themes/krajee-svg/theme.css
  43. +20 −5 themes/krajee-svg/theme.js
  44. +10 −3 themes/krajee-svg/theme.min.css
  45. +10 −3 themes/krajee-svg/theme.min.js
  46. +8 −2 themes/krajee-uni/theme.css
  47. +20 −5 themes/krajee-uni/theme.js
  48. +10 −3 themes/krajee-uni/theme.min.css
  49. +11 −4 themes/krajee-uni/theme.min.js
39 changes: 39 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
Change Log: `bootstrap-star-rating`
===================================

## Version 4.1.3

**Date:** _under development_

- (bug #216): Correct `rating-input` CSS class position.

## Version 4.1.2

**Date:** 20-Sep-2021

- Simplify NPM module handling.

## Version 4.1.1

**Date:** 11-Sep-2021

- (enh #215): Correct NPM module handling.

## Version 4.1.0

**Date:** 25-Jul-2021

- (bug #213): Correct `mousenter` event to `mouseenter`.
- (enh #212): Enhance caption badge styles.
- (enh #211): Correct keyboard arrow keys behavior for RTL oriented inputs.
- (enh #210): Revamp themes - set default theme to Krajee SVG.

## Version 4.0.9

**Date:** 21-May-2021

- Correct `minThreshold` default value.

## Version 4.0.8

**Date:** 21-May-2021

- (enh #209): Enhancements to support BS 5.x (and 4.x/3.x).

## Version 4.0.7

**Date:** 20-May-2021
45 changes: 25 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
<h1 align="center">
<a href="http://plugins.krajee.com" title="Krajee Plugins" target="_blank">
<a href="https://plugins.krajee.com" title="Krajee Plugins" target="_blank">
<img src="https://kartik-v.github.io/bootstrap-fileinput-samples/samples/krajee-logo-b.png" alt="Krajee Logo"/>
</a>
<br>
bootstrap-star-rating
<hr>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DTP3NZQ6G2AYU"
title="Donate via Paypal" target="_blank">
<img src="https://kartik-v.github.io/bootstrap-fileinput-samples/samples/donate.png" alt="Donate"/>
</a>
title="Donate via Paypal" target="_blank"><img src="https://kartik-v.github.io/bootstrap-fileinput-samples/samples/donate.png" height="60" alt="Donate"/></a>
&nbsp; &nbsp; &nbsp;
<a href="https://www.buymeacoffee.com/kartikv" title="Buy me a coffee" ><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" height="60" alt="kartikv" /></a>
</h1>

[![Financial Contributors on Open Collective](https://opencollective.com/bootstrap-star-rating/all/badge.svg?label=financial+contributors)](https://opencollective.com/bootstrap-star-rating) [![Bower version](https://badge.fury.io/bo/bootstrap-star-rating.svg)](http://badge.fury.io/bo/bootstrap-star-rating)
[![Stable Version](https://poser.pugx.org/kartik-v/bootstrap-star-rating/v/stable)](https://packagist.org/packages/kartik-v/bootstrap-star-rating)
[![Unstable Version](https://poser.pugx.org/kartik-v/bootstrap-star-rating/v/unstable)](https://packagist.org/packages/kartik-v/bootstrap-star-rating)
<div align="center">

[![Financial Contributors on Open Collective](https://opencollective.com/bootstrap-star-rating/all/badge.svg?label=financial+contributors)](https://opencollective.com/bootstrap-star-rating)
[![Bower version](https://badge.fury.io/bo/bootstrap-star-rating.svg)](http://badge.fury.io/bo/bootstrap-star-rating)
[![Latest Stable Version](https://poser.pugx.org/kartik-v/bootstrap-star-rating/v/stable)](https://packagist.org/packages/kartik-v/bootstrap-star-rating)
[![License](https://poser.pugx.org/kartik-v/bootstrap-star-rating/license)](https://packagist.org/packages/kartik-v/bootstrap-star-rating)
[![Packagist Downloads](https://poser.pugx.org/kartik-v/bootstrap-star-rating/downloads)](https://packagist.org/packages/kartik-v/bootstrap-star-rating)
[![Monthly Downloads](https://poser.pugx.org/kartik-v/bootstrap-star-rating/d/monthly)](https://packagist.org/packages/kartik-v/bootstrap-star-rating)

</div>

A simple yet powerful JQuery star rating plugin for Bootstrap which supports advanced features like fractional star fill and RTL input support.
Developed with a focus on utlizing pure CSS-3 styling to render the control. The plugin uses Bootstrap markup and styling by default, but it
can be overridden with any other CSS markup. View the [documentation](http://plugins.krajee.com/star-rating) or a [complete demo](http://plugins.krajee.com/star-rating/demo)
@@ -57,10 +61,11 @@ at Krajee JQuery plugins.
- **BC Breaking Change**: The `symbol`, `glyphicon`, `ratingClass` properties have been removed. The functionality is replaced with the `theme` property (and can also be complemented or implemented separately using the `containerClass` property).
- New property `theme` will assign a CSS class with the `rating-<theme-name>` to the rating container.
- Themes included
- The default (blank) theme (for displaying bootstrap glyphicons)
- `krajee-svg` (for displaying svg icons)
- `krajee-uni` (for displaying unicode symbols as stars)
- `krajee-fa` (for displaying font awesome icons)
- `krajee-svg` (for displaying svg icons) - default theme since v4.1.0
- `krajee-uni` (for displaying Krajee unicode symbols as stars)
- `krajee-fas` (for displaying font awesome 5.x icons)
- `krajee-fa` (for displaying font awesome 4.x icons)
- `krajee-gly` (for displaying bootstrap 3.x glyphicons)
- Add ability to override and add one's own themes
- Stars now have a better padding and spacing that can be configured via CSS and themes
- New property `filledStar` - will allow one to set the markup for `filledStar` - will default to
@@ -114,21 +119,21 @@ Step 1: Load the following assets in your header.

```html
<!-- default styles -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css">
<link href="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-star-rating@4.0.7/css/star-rating.min.css" media="all" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.1/dist/css/bootstrap.min.css">
<link href="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-star-rating@4.1.2/css/star-rating.min.css" media="all" rel="stylesheet" type="text/css" />

<!-- optionally if you need to use a theme, then include the theme CSS file as mentioned below -->
<link href="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-star-rating@4.0.7/themes/krajee-svg/theme.css" media="all" rel="stylesheet" type="text/css" />
<!-- with v4.1.0 Krajee SVG theme is used as default (and must be loaded as below) - include any of the other theme CSS files as mentioned below (and change the theme property of the plugin) -->
<link href="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-star-rating@4.1.2/themes/krajee-svg/theme.css" media="all" rel="stylesheet" type="text/css" />

<!-- important mandatory libraries -->
<script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-star-rating@4.0.7/js/star-rating.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-star-rating@4.1.2/js/star-rating.min.js" type="text/javascript"></script>

<!-- optionally if you need to use a theme, then include the theme JS file as mentioned below -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-star-rating@4.0.7/themes/krajee-svg/theme.js"></script>
<!-- with v4.1.0 Krajee SVG theme is used as default (and must be loaded as below) - include any of the other theme JS files as mentioned below (and change the theme property of the plugin) -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-star-rating@4.1.2/themes/krajee-svg/theme.js"></script>

<!-- optionally if you need translation for your language then include locale file as mentioned below (replace LANG.js with your own locale file) -->
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-star-rating@4.0.7/js/locales/LANG.js"></script>
<script src="https://cdn.jsdelivr.net/gh/kartik-v/bootstrap-star-rating@4.1.2/js/locales/LANG.js"></script>
```

If you noticed, you need to load the `jquery.min.js` and `bootstrap.min.css` in addition to the `star-rating.min.css` and `star-rating.min.js` for
68 changes: 34 additions & 34 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"name": "bootstrap-star-rating",
"version": "4.0.7",
"homepage": "https://github.com/kartik-v/bootstrap-star-rating",
"authors": [
"Kartik Visweswaran <kartikv2@gmail.com>"
],
"description": "A simple yet powerful JQuery star rating plugin for Bootstrap.",
"main": [
"./css/star-rating.css",
"./js/star-rating.js"
],
"keywords": [
"bootstrap",
"star",
"rating",
"font",
"awesome",
"glyphicon",
"svg"
],
"dependencies": {
"jquery": ">= 1.9.0",
"bootstrap": ">= 3.0.0"
},
"ignore": [
"**/.*",
"node_modules",
"composer.json",
"examples",
"bower_components",
"test",
"tests"
],
"license": "BSD-3-Clause"
"name": "bootstrap-star-rating",
"version": "4.1.3",
"homepage": "https://github.com/kartik-v/bootstrap-star-rating",
"authors": [
"Kartik Visweswaran <kartikv2@gmail.com>"
],
"description": "A simple yet powerful JQuery star rating plugin for Bootstrap.",
"main": [
"./css/star-rating.min.css",
"./js/star-rating.min.js"
],
"keywords": [
"bootstrap",
"star",
"rating",
"font",
"awesome",
"glyphicon",
"svg"
],
"dependencies": {
"jquery": ">= 1.9.0",
"bootstrap": ">= 3.0.0"
},
"ignore": [
"**/.*",
"node_modules",
"composer.json",
"examples",
"bower_components",
"test",
"tests"
],
"license": "BSD-3-Clause"
}
48 changes: 24 additions & 24 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "kartik-v/bootstrap-star-rating",
"description": "A simple yet powerful JQuery star rating plugin for Bootstrap.",
"keywords": [
"bootstrap",
"star",
"rating",
"font",
"awesome",
"glyphicon",
"svg"
],
"homepage": "https://github.com/kartik-v/bootstrap-star-rating",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Kartik Visweswaran",
"email": "kartikv2@gmail.com",
"homepage": "http://www.krajee.com/"
}
],
"extra": {
"branch-alias": {
"dev-master": "4.0.x-dev"
}
"name": "kartik-v/bootstrap-star-rating",
"description": "A simple yet powerful JQuery star rating plugin for Bootstrap.",
"keywords": [
"bootstrap",
"star",
"rating",
"font",
"awesome",
"glyphicon",
"svg"
],
"homepage": "https://github.com/kartik-v/bootstrap-star-rating",
"license": "BSD-3-Clause",
"authors": [
{
"name": "Kartik Visweswaran",
"email": "kartikv2@gmail.com",
"homepage": "http://www.krajee.com/"
}
],
"extra": {
"branch-alias": {
"dev-master": "4.1.x-dev"
}
}
}
54 changes: 50 additions & 4 deletions css/star-rating.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* bootstrap-star-rating v4.0.7
* bootstrap-star-rating v4.1.3
* http://plugins.krajee.com/star-rating
*
* Author: Kartik Visweswaran
@@ -34,18 +34,21 @@
}

.rating-input {
display: absolute;
position: absolute;
cursor: pointer;
width: 100%;
height: 1px;
bottom: 0;
left: 0;
font-size: 1px;
border: none;
background: none;
opacity: 0;
padding: 0;
margin: 0;
outline: none;
pointer-events: none;
border: none;
box-shadow: none;
background: none;
}

.rating-container.is-display-only .rating-stars {
@@ -203,3 +206,46 @@
.rating-xs .caption {
font-size: 12px;
}

/**
* Caption
*/
.caption-badge {
font-family: Arial, Helvetica, sans-serif;
display: inline-block;
padding: .35em .65em;
font-size: .75em;
font-weight: 700;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25rem;
}

.caption-secondary {
background-color: #6c757d;
}

.caption-danger {
background-color: #dc3545;
}

.caption-warning {
background-color: #ffc107;
color: #212529;
}

.caption-info {
background-color: #0dcaf0;
color: #212529;
}

.caption-primary {
background-color: #0d6efd;
}

.caption-success {
background-color: #198754;
}
5 changes: 3 additions & 2 deletions css/star-rating.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading