Jaipur
contact@vetsofficial.com
Follow Us On :
Categories
BVSc &AH
ICAR Vet Science
ICAR Ani Science
RPSC VO
UPSC Vet Optional
Other State PSC VO Exam
Home
About Us
Courses
BVSc &AH
ICAR Vet Science
ICAR Ani Science
RPSC VO
UPSC Vet Optional
Other State PSC VO Exam
Blog
Contact
0
ICAR Ani Science
VETS OFFICIAL
>
ICAR Ani Science
Physiology
Livestock Production & Management
Animal Genetics & Breeding
Web Design
LPT Meat
LPT Dairy
Veterinary Extension
jQuery(document).ready(function ($) { $('.like-counter').each(function () { let counter = $(this); let numRolls = counter.find('.number-roll'); let numHeight = counter.find('.number-roll li').height(); numRolls.on('changeData', function () { let number = $(this).data('val'); let offset = number * numHeight * -1; $(this).css("transform", "translateY(" + offset + "px)"); }); counter.on('click', function () { let total = ''; numRolls.each(function () { total += $(this).data('val'); }); let newTotal = parseInt(total) + 1; if (newTotal > 999) newTotal = 0; let digits = newTotal.toString().padStart(3, '0').split(''); numRolls.each(function (i) { $(this).data('val', digits[i]).trigger('changeData'); }); }); numRolls.each(function () { let randVal = Math.floor(Math.random() * 10); $(this).data('val', randVal).trigger('changeData'); }); }); });
WhatsApp us