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)
[![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)
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)
at Krajee JQuery plugins.
> NOTE: Release v4.0 is a modified rewrite with various new enhancements and BC breaking features. It allows rendering richer markup for star symbols and offers theming support.
![Star Rating Screenshot](https://lh3.googleusercontent.com/puCbNL9LlBMty8DmaZxAq0yM8teuhM_hEvox-NuJ2x7xWedNhs8nwSk1Zo8FISFAsyt8=w1366-h768-rw-no)
## Features
- Convert any HTML input to a star rating control.
- The plugin automatically converts an input to a star rating control if you set its `class = rating`.
All options to the input can be passed as HTML5 `data` attributes.
- You can use the HTML 5 number input for polyfill and the plugin will automatically use the number attributes like `min`, `max`, and `step`.
However, number inputs have a problem with decimal values on the Chrome Browser. Read the Browser Support section in the documentation.
- Involves pure CSS3 styling of the stars. Say goodbye to image sprites or playing with image backgrounds. Offers clean scalable vector
icons for consistent display across devices. Optionally one can use the Unicode character set to override symbols.
- Use any of your favorite font icon frameworks to render your star symbols (for example you can easily use the icons from the FontAwesome library).
- Render and display fractional star ratings. Configure number of stars, min, max, step, and theoretically support any fractional rating.
- Uses Bootstrap 3.x styles & glyphs by default. But this can be overridden with plugin parameters and your own CSS styles.
- Support for RIGHT TO LEFT (RTL) input. Automatically changes star styling for RTL.
- Ability to clear values and options for the stars. Control where the clear button element can be shown.
- Reset star rating to the initial value when the form is reset.
- Ability to control and display caption of the selected stars. Each rated star can have its own caption. Control where the
caption element can be shown.
- Ability to size the rating control including the stars, caption, and clear button. Five prebuilt size templates are
available `xl`, `lg`, `md`, `sm`, and `xs`.
- Triggers JQuery events for advanced development. Events currently available are `rating.change`, `rating.clear`, `rating.reset`, `rating.refresh`, `rating.hover`, and `rating.hoverleave`.
- Disabled and readonly input star rating support.
- Change stars and caption on mouse hover (new feature since v3.0.0).
- Change stars and caption on slide and drag for mobile/touch devices (new feature since v3.1.0).
- Support for translations and locales.
### New features/changes since release v4.0
- **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)
- 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
- `<i class="glyphicon glyphicon-star"></i>`
- New property `emptyStar` - will allow one to set the markup for `emptyStar` - will default to
- `<i class="glyphicon glyphicon-star-empty"></i>`
- Exclusive support for SVG (and a prebuilt `krajee-svg` theme that contains two different ready to use SVG icons).
- Ability to easily set the widget as a "display only" rating via `displayOnly` property.
- New property `animate` to control animation of highlighted stars on hover or click.
> NOTE: Refer [change log](https://github.com/kartik-v/bootstrap-star-rating/blob/master/CHANGE.md) for details on plugin enhancements, fixes, and changes.
## Documentation and Demo
View the [plugin documentation](http://plugins.krajee.com/star-rating) and [plugin demos](http://plugins.krajee.com/star-rating/demo) at Krajee JQuery plugins.
## Pre-requisites
1. [Bootstrap 3.x](http://getbootstrap.com/)
2. Latest [JQuery](http://jquery.com/)
3. Most browsers supporting CSS3 & JQuery.
## Installation
### Using Bower
You can use the `bower` package manager to install. Run:
bower install bootstrap-star-rating
### Using Composer
You can use the `composer` package manager to install. Either run:
$ php composer.phar require kartik-v/bootstrap-star-rating "@dev"
or add:
"kartik-v/bootstrap-star-rating": "@dev"
to your composer.json file
> NOTE: You can use the [sass branch](https://github.com/kartik-v/bootstrap-star-rating/tree/sass) for installation using `bootstrap-sass` dependency.
The [master branch](https://github.com/kartik-v/bootstrap-star-rating/tree/master) can be used for installation using plain `bootstrap` dependency.
### Manual Install
You can also manually install the plugin easily to your project. Just download the source [ZIP](https://github.com/kartik-v/bootstrap-star-rating/zipball/master) or [TAR ball](https://github.com/kartik-v/bootstrap-star-rating/tarball/master) and extract the plugin assets (css and js folders) into your project.
## Usage
Step 1: Load the following assets in your header.
```html
<!-- default styles -->
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.css" rel="stylesheet">
<link href="path/to/css/star-rating.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="path/to/themes/krajee-svg/theme.css" media="all" rel="stylesheet" type="text/css" />
<!-- important mandatory libraries -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.js"></script>
<script src="path/to/js/star-rating.js" type="text/javascript"></script>
<!-- optionally if you need to use a theme, then include the theme JS file as mentioned below -->
<script src="path/to/themes/krajee-svg/theme.js"></script>
<!-- optionally if you need translation for your language then include locale file as mentioned below -->
<script src="path/to/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
the plugin to work with d
没有合适的资源?快使用搜索试试~ 我知道了~
RS:基于SpringBoot,Mahout的推荐系统
共164个文件
java:43个
js:29个
css:19个
5星 · 超过95%的资源 需积分: 45 11 下载量 55 浏览量
2021-05-17
20:56:38
上传
评论 3
收藏 18.66MB ZIP 举报
温馨提示
RS 基于SpringBoot,Mahout的推荐系统 src / main / python / spiderman中的文件是网络爬虫,用于获取movieLens中电影的摘要和图片。一万部电影可能要花费几个小时的时间。它使用来自的代理池文本数据都可以在sql / Dump20180509中找到,图片可以在我的云磁盘链接中找到: ://pan.baidu.com/s/1rcCQtQ7IgDoSyZN4djAP0w密码:h09q。 在sql / Dump20180509中运行文件以创建mysql表并将数据导入MySQL。 运行util / ImportMovies util / ImportRatings将数据从.csv导入mysql表 从下载mahout 0.13并导入到项目中 通过导入jars解决一些依赖性或BaiduNetdisk链接: ://pan.baidu.com/s/
资源详情
资源评论
资源推荐
收起资源包目录
RS:基于SpringBoot,Mahout的推荐系统 (164个子文件)
mvnw.cmd 5KB
bootstrap.css 143KB
bootstrap.min.css 118KB
font-awesome.css 32KB
font-awesome.min.css 27KB
bootstrap-theme.css 26KB
bootstrap-theme.min.css 23KB
theme.css 6KB
htmleaf-demo.css 6KB
theme.min.css 3KB
star-rating.css 3KB
login_page.css 3KB
star-rating.min.css 2KB
normalize.css 2KB
theme.css 346B
theme.css 339B
theme.min.css 319B
theme.min.css 317B
movie_detail.css 247B
index.css 100B
ratings.csv 2.23MB
movies.csv 439KB
links.csv 170KB
tags.csv 40KB
fontawesome-webfont.eot 69KB
glyphicons-halflings-regular.eot 20KB
icomoon.eot 2KB
loading.gif 847B
.gitignore 319B
sample.html 16KB
movie_detail.html 7KB
index.html 5KB
index.html 5KB
login.html 3KB
search_page.html 3KB
maven-wrapper.jar 46KB
RecommendServiceImpl.java 7KB
MovieDetailController.java 5KB
MyUserBasedRecommender.java 5KB
MyItemBasedRecommender.java 4KB
ImportMovies.java 3KB
ImportRatings.java 2KB
MovieDetail.java 2KB
CountTypesNum.java 2KB
LoginController.java 2KB
SearchController.java 2KB
UserController.java 2KB
PageInfo.java 2KB
MovieDetailServiceImpl.java 2KB
RatingServiceImpl.java 1KB
Movie.java 1KB
MyReloadFromJDBCDataModel.java 1KB
Rating.java 1KB
User.java 1KB
UserServiceImpl.java 1KB
PageMovie.java 1KB
ServerResponse.java 1KB
WebSecurityConfig.java 1024B
RankController.java 1017B
ApplicationConfig.java 981B
LoginInterceptor.java 861B
DBUtil.java 824B
MovieDetailDao.java 806B
RecommendController.java 734B
ChineseJudger.java 729B
MovieDetailService.java 583B
LogoutController.java 532B
StringUtil.java 405B
RatingDao.java 382B
RsApplication.java 380B
RatingService.java 371B
MyRecommender.java 351B
RsApplicationTests.java 327B
UserDao.java 298B
HomeController.java 279B
UserService.java 273B
RecommendService.java 259B
CalcIndex.java 166B
MyDataModel.java 158B
jquery.min.js 82KB
bootstrap.js 68KB
star-rating.js 25KB
star-rating.min.js 12KB
movie_detail.js 3KB
search_page.js 2KB
index.js 2KB
ru.js 1KB
ua.js 1KB
fa.js 1KB
ar.js 1KB
pt-BR.js 991B
es.js 985B
pl.js 981B
fr.js 979B
it.js 966B
ro.js 958B
de.js 957B
LANG.js 934B
zh.js 899B
ko.js 876B
共 164 条
- 1
- 2
简内特
- 粉丝: 29
- 资源: 4715
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1