PageSourceSearch

https://www.thinkphp.cn/asset/531.40cce2.js

js thinkphp.cn collected 2026-10-03 19:22:55 UTC 1,758 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_topthink_thinkphp_frontend=self.webpackChunk_topthink_thinkphp_frontend||[]).push([[531],{2531:(t,i,a)=>{a.r(i);a(7932)},7932:(t,i,a)=>{var e=a(5311),s=a.n(e);s().fn.rating=function(t){const i=s().extend(!0,{value:0,stars:5,emptyStar:"bi bi-star",halfStar:"bi bi-star-half",filledStar:"bi bi-star-fill",color:"#FFC107",readonly:!1},t||{});return s()(this).each((function(){s()(this).prop("rating")&&s()(this).empty();let t=i.value;const a=i.stars,e=i.readonly,n=i.onChange,r=()=>s()(this).find("i");s()(this).addClass("d-flex align-items-center").css({color:i.color}).prop("rating",!0),e||(s()(this).off("mousemove").on("mousemove",(function(t){if(r().index(t.target)>=0){s()(this).find("i").attr("class",i.emptyStar);let a=.5;s()(this).find("i").css({width:s()(this).find("i").outerWidth()}),t.offsetX>s()(t.target).outerWidth()/2&&(a=1);let e=r().index(t.target)+a;for(let t=0;t<r().length;t++)t+.5<e?s()(r()[t]).attr("class",i.filledStar):t<e&&s()(r()[t]).attr("class",i.halfStar)}})),s()(this).off("mouseout").on("mouseout",(function(){o()})),s()(this).off("click","i").on("click","i",(function(i){let a=.5;i.offsetX>s()(i.target).outerWidth()/2&&(a=1),t=r().index(i.target)+a,n&&n(t)})));for(let t=0;t<a;t++){let a=s()("<i></i>").addClass(i.emptyStar).appendTo(s()(this));if(e||a.css({cursor:"pointer"}),t>1e3)return}const o=()=>{s()(this).find("i").attr("class",i.emptyStar);for(let a=0;a<t;a++)a<t-.5?s()(r()[a]).attr("class",i.filledStar):s()(r()[a]).attr("class",i.halfStar)};t>0&&o()}))},s()((()=>{s()("[data-bs-rating]").each((function(){const t=s()(this).data("value")/2,i=s()(this).data("readonly"),a=s()(this).next('input[type="hidden"]');s()(this).rating({value:t,readonly:i,onChange(t){a.val(2*t)}})}))}))}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.