ÿØÿà JFIF ` ` ÿþ
Server : Apache System : Linux ruga7-004.fmcity.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : tkt_travelbus ( 1137) PHP Version : 7.0.0p1 Disable Function : mysql_pconnect Directory : /tkt_travelbus/www/js/ |
Upload File : |
/*별점 : .star-input*/ /*출처 : http://codepen.io/naradesign/pen/zxPbOw*/ var starRating = function(){ var $star = $(".star-input"), $result = $star.find("output>b"); $(document) .on("focusin", ".star-input>.input", function(){ $(this).addClass("focus"); }) .on("focusout", ".star-input>.input", function(){ var $this = $(this); setTimeout(function(){ if($this.find(":focus").length === 0){ $this.removeClass("focus"); } }, 100); }) .on("change", ".star-input :radio", function(){ $result.text($(this).next().text()); }) .on("mouseover", ".star-input label", function(){ $result.text($(this).text()); }) .on("mouseleave", ".star-input>.input", function(){ var $checked = $star.find(":checked"); if($checked.length === 0){ $result.text("0"); } else { $result.text($checked.next().text()); } }); }; starRating();