PageSourceSearch

https://www.nesabamedia.com/apps/wp-content/plugins/yet-another-st…/includes/js/yasr-globals.js?ver=3.1.9

js nesabamedia.com collected 2026-09-24 21:38:00 UTC 3,247 bytes, 1 lines download raw bytes

1window.yasrTrueFalseStringConvertion=function(e){return null!=e&&""!==e||(e=!1),"true"!==e&&"1"!==e||(e=!0),"false"!==e&&"0"!==e||(e=!1),e},window.yasrValidJson=function(e){try{const t=JSON.parse(e);if(t&&"object"==typeof t)return t}catch(e){console.error("Not a valid Json Element"),console.log(e)}return!1},window.raterJs=function(e){let t=!0;if(void 0===e.element||null===e.element)return void console.info("missing rating element");if(null!==e.element&&e.element.classList.contains("yasr-star-rating"))return;if(void 0!==e.showToolTip&&(t=!!e.showToolTip),void 0!==e.step&&(e.step<=0||e.step>1))throw new Error("step must be a number between 0 and 1");let r,i,a=e.starSize||16,n=e.step||1,o=e.onHover,s=e.onLeave,l=yasrTrueFalseStringConvertion(yasrWindowVar.isRtl),u=e.element;u.classList.add("yasr-star-rating");let d=document.createElement("div");d.classList.add("yasr-star-value"),d.style.backgroundSize=a+"px",u.appendChild(d),u.style.width=5*a+"px",u.style.height=a+"px",u.style.backgroundSize=a+"px";let c,f,v,y=e.rateCallback,m=!!e.readOnly,g=!1,p=e.isBusyText;if(c=void 0!==e.disableText?e.disableText:"{rating}/{maxRating}",m||(u.style.cursor="pointer"),v=void 0!==e.ratingText?e.ratingText:"{rating}/{maxRating}",e.rating)T(e.rating);else{var b=u.dataset.rating;b&&T(+b)}function w(e){if(!0===m||!0===g)return;let i;if(!0===l){let t=this.getBoundingClientRect(),r=e.pageX-t.left,a=u.offsetWidth;i=(a-r)/(a/100)}else i=e.offsetX/u.offsetWidth*100;if(i<101){if(1===n)f=Math.ceil(i/100*5);else{let e=i/100*5;for(let t=0;;t+=n)if(t>=e){f=t;break}}if(f>5&&(f=5),u.querySelector(".yasr-star-value").style.width=f/5*100+"%",t){let e=v.replace("{rating}",f);e=e.replace("{maxRating}",5),u.setAttribute("data-title",e)}"function"==typeof o&&o(f,r)}}function h(e){void 0!==r?(u.querySelector(".yasr-star-value").style.width=r/5*100+"%",u.setAttribute("data-rating",r)):(u.querySelector(".yasr-star-value").style.width="0%",u.removeAttribute("data-rating")),"function"==typeof s&&s(f,r)}function x(e){!0!==m&&!0!==g&&(void 0===y&&!1===typeof y||(g=!0,i=f,void 0===p?u.removeAttribute("data-title"):u.setAttribute("data-title",p),y.call(this,i,(function(){!1===m&&u.removeAttribute("data-title"),g=!1}))))}function S(){if(m=!0,t&&c){let e=c.replace("{rating}",r);e=e.replace("{maxRating}",5),u.setAttribute("data-title",e)}else u.removeAttribute("data-title")}function T(e){if(-1===e&&(e=void 0),"number"!=typeof e&&void 0!==e)throw new Error("Value must be a number or undefined.");e<0&&(e=0),e>5&&(e=5),r=e,u.querySelector(".yasr-star-value").style.width=e/5*100+"%",u.setAttribute("data-rating",e)}void 0===r&&(u.querySelector(".yasr-star-value").style.width="0px"),m&&S(),u.addEventListener("mousemove",w),u.addEventListener("mouseleave",h);let E={setRating:T,getRating:function(){return r},disable:S,enable:function(){m=!1,u.removeAttribute("data-title")},dispose:function(){u.removeEventListener("mousemove",w),u.removeEventListener("mouseleave",h),u.removeEventListener("click",x)}};return u.addEventListener("click",x.bind(E)),E},window.yasrSetRaterValue=function(e,t,r=!1,i=.1,a=!0,n=!1,o=!1){let s;s=r||document.getElementById(t),e=parseInt(e),raterJs({starSize:e,showToolTip:!1,element:s,step:i,readOnly:a,rating:n,rateCallback:o})};

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.