File indexing completed on 2024-12-22 05:33:16
0001 // run js code after html page loaded 0002 $(document).ready(function() { 0003 0004 0005 0006 $('.modalButton').click(function() { 0007 var myhref = $(this).attr('href'); 0008 var mytarget = $(this).attr('target'); 0009 $.get(mytarget, function(data) { 0010 $(myhref).html(data); 0011 } 0012 );}); 0013 0014 0015 $(".static-rating").jRating({ 0016 isDisabled : true, 0017 length : 10, 0018 decimalLength : 0, 0019 rateMax : 100 0020 }); 0021 0022 $(".dynamic-rating").jRating({ 0023 isDisabled : false, 0024 length : 10, 0025 decimalLength : 0, 0026 rateMax : 100, 0027 onSuccess : function(){ alert('Success : your rate has been saved!'); }, 0028 onError : function(){ alert('Error : some error occured registering your vote, try again!'); } 0029 }); 0030 0031 });