Вход Регистрация
Файл: CloudBox-main/CloudBox/admin_assets/js/bootstrap-rating-input.min.js
Строк: 104
<?php
!function (a) {
    
a.fn.rating = function () {
        function 
b(bc) {
            var 
a(b).find("[data-value=" "]");
            
d.removeClass("glyphicon-star-empty").addClass("glyphicon-star"), d.prevAll("[data-value]").removeClass("glyphicon-star-empty").addClass("glyphicon-star"), d.nextAll("[data-value]").removeClass("glyphicon-star").addClass("glyphicon-star-empty")
        }

        function 
c(b) {
            var 
a(b);
            
c.find("[data-value]").removeClass("glyphicon-star").addClass("glyphicon-star-empty")
        }

        function 
d(ab) {
            
a.val(b).trigger("change"), === a.data("empty-value") ? a.siblings(".rating-clear").hide() : a.siblings(".rating-clear").show()
        }

        var 
e;
        for (
this.length 1>= 0e--) {
            var 
fga(this[e]), h.data("max") || 5h.data("min") || 0h.data("clearable") || null"";
            for (
j>= gg++)+= ['<span class="glyphicon glyphicon-star-empty" data-value="'g'"></span>'].join("");
            
&& (+= [' <a class="rating-clear" style="display:none;" href="javascript:void">''<span class="glyphicon glyphicon-remove"></span> 'k"</a>"].join(""));
            var 
h.clone(!0).attr("type""hidden").data("max"i).data("min"j);
            
= ['<div class="rating-input">'l"</div>"].join(""), h.replaceWith(a(f).append(m))
        }
        
a(".rating-input").on("mouseenter""[data-value]",function () {
            var 
a(this);
            
b(c.closest(".rating-input"), c.data("value"))
        }).
on("mouseleave""[data-value]",function () {
            var 
a(this), d.siblings("input"), e.val(), e.data("min"), e.data("max");
            
>= && >= b(d.closest(".rating-input"), f) : c(d.closest(".rating-input"))
        }).
on("click""[data-value]",function (b) {
            var 
a(this), c.data("value"), c.siblings("input");
            return 
d(fe), b.preventDefault(), !1
        
}).on("click"".rating-clear",function (b) {
            var 
a(this), e.siblings("input");
            return 
d(ff.data("empty-value")), c(e.closest(".rating-input")), b.preventDefault(), !1
        
}).each(function () {
            var 
a(this).find("input"), d.val(), d.data("min"), d.data("max");
            
"" !== && +>= && >= +? (b(thise), a(this).find(".rating-clear").show()) : (d.val(d.data("empty-value")), c(this))
        })
    }, 
a(function () {
        
a("input.rating[type=number]").length && a("input.rating[type=number]").rating()
    })
}(
jQuery);
?>
Онлайн: 1
Реклама