/*=========================================================================================
	File Name: rating.js
	Description: ratings
	----------------------------------------------------------------------------------------
	Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTML Template
	Author: PIXINVENT
	Author URL: http://www.themeforest.net/user/pixinvent
==========================================================================================*/
$(document).ready(function(){

	$.fn.raty.defaults.path = '../../../app-assets/images/raty/';

	// Default
	$('#default-star-rating').raty();

	// Default Score
	$('#score-rating').raty({
		score: 3
	});

	// Number of stars
	$('#no-of-stars').raty({
		number: 10
	});

	// Maximum number of stars
	$('#max-number-stars').raty({
		numberMax : 5,
		number    : 100
	});

	// Read Only
	$('#read-only-stars').raty({
		readOnly: true,
		score: 3
	});

	// No Rated Message
	$('#no-rated-msg').raty({
		half: true
	});

	// Cancel Star
	$('#cancel-star').raty({
		cancel: true
	});

	// Space
	$('#space-star').raty({
		space: false
	});

	// Single
	$('#single-star').raty({
		single: true
	});

	// Half Star
	$('#half-star').raty({
		half     : true,
	});

	// Star Half
	$('#star-half').raty({
		half     : true,
		starHalf : 'star-half-mono.png'
	});

	// Round Enabled
	$('#round-enabled').raty({
		score: 3.26
	});

	// Round Disabled
	$('#round-disabled').raty({
		halfShow : false,
		score    : 3.26
	});

	// Custom Icon
	$('#custom-icon-star').raty({
		starOff : 'heart.png',
		starOn  : 'like.png'
	});

	// Icon Range
	$('#icon-range').raty({
		iconRange: [
			{ range: 1, on: 'me-lightning2 font-large-1', off: 'me-cloud2 font-large-1' },
			{ range: 2, on: 'me-rainy2 font-large-1', off: 'me-cloud2 font-large-1' },
			{ range: 3, on: 'me-lightning3 font-large-1', off: 'me-cloud2 font-large-1' },
			{ range: 4, on: 'me-snowy3 font-large-1', off: 'me-cloud2 font-large-1' },
			{ range: 5, on: 'me-rainy4 font-large-1', off: 'me-cloud2 font-large-1' }
		],
		starType : 'i'
	});

});