| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- /******/ (function() { // webpackBootstrap
- var __webpack_exports__ = {};
- /*!*******************************************!*\
- !*** ./resources/js/pages/rating-init.js ***!
- \*******************************************/
- /*
- Template Name: Skote - Admin & Dashboard Template
- Author: Themesbrand
- Website: https://themesbrand.com/
- Contact: themesbrand@gmail.com
- File: Rating Js File
- */
- $(function () {
- $('input.check').on('change', function () {
- alert('Rating: ' + $(this).val());
- });
- $('.rating-tooltip').rating({
- extendSymbol: function extendSymbol(rate) {
- $(this).tooltip({
- container: 'body',
- placement: 'bottom',
- title: 'Rate ' + rate
- });
- }
- });
- $('.rating-tooltip-manual').rating({
- extendSymbol: function extendSymbol() {
- var _title;
- $(this).tooltip({
- container: 'body',
- placement: 'bottom',
- trigger: 'manual',
- title: function title() {
- return _title;
- }
- });
- $(this).on('rating.rateenter', function (e, rate) {
- _title = rate;
- $(this).tooltip('show');
- }).on('rating.rateleave', function () {
- $(this).tooltip('hide');
- });
- }
- });
- $('.rating').each(function () {
- $('<span class="badge bg-info"></span>').text($(this).val() || '').insertAfter(this);
- });
- $('.rating').on('change', function () {
- $(this).next('.badge').text($(this).val());
- });
- });
- /******/ })()
- ;
|