⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.101
Server IP:
157.245.101.34
Server:
Linux skvinfotech-website 5.4.0-131-generic #147-Ubuntu SMP Fri Oct 14 17:07:22 UTC 2022 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
skvinfotech.com
/
public
/
assets
/
_js
/
pages
/
View File Name :
be_comp_rating.js
/* * Document : be_comp_rating.js * Author : pixelcave * Description: Custom JS code used in Rating Page */ // jQuery Raty, for more examples you can check out https://github.com/wbotelhos/raty class pageCompRating { /* * Init demo rating functionality * */ static initRating() { // Set Default options jQuery.fn.raty.defaults.starType = 'i'; jQuery.fn.raty.defaults.hints = ['Just Bad!', 'Almost There!', 'It’s ok!', 'That’s nice!', 'Incredible!']; // Init Raty on .js-rating class jQuery('.js-rating').each((index, element) => { let el = jQuery(element); el.raty({ score: el.data('score') || 0, number: el.data('number') || 5, cancel: el.data('cancel') || false, target: el.data('target') || false, targetScore: el.data('target-score') || false, precision: el.data('precision') || false, cancelOff: el.data('cancel-off') || 'fa fa-fw fa-times-circle text-danger', cancelOn: el.data('cancel-on') || 'fa fa-fw fa-times-circle', starHalf: el.data('star-half') || 'fa fa-fw fa-star-half text-warning', starOff: el.data('star-off') || 'fa fa-fw fa-star text-muted', starOn: el.data('star-on') || 'fa fa-fw fa-star text-warning', click: function(score, evt) { // Here you could add your logic on rating click // console.log('ID: ' + this.id + "\nscore: " + score + "\nevent: " + evt); } }); }); } /* * Init functionality * */ static init() { this.initRating(); } } // Initialize when page loads jQuery(() => { pageCompRating.init(); });