/**
* Minified by jsDelivr using Terser v5.13.1.
* Original file: /npm/hexo-filter-fcircle@0.0.8/assets/js/fcircle.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
function loadStatistical(e){var a=document.getElementById("fcircleContainer"),t=`\n
\n
\n 最近更新时间: ${e.last_updated_time} \n
\n
\n
\n 活跃友链数 \n ${(e.active_num/e.friends_num*100).toFixed(2)}% \n ${e.active_num}/${e.friends_num} \n
\n
\n 失联友链数 \n ${(e.error_num/e.friends_num*100).toFixed(2)}% \n ${e.error_num}/${e.friends_num} \n
\n
\n 当前库存 \n ${(e.article_num/Math.ceil(e.article_num/100)).toFixed(2)}% \n ${e.article_num}/${100*Math.ceil(Number(e.article_num)/100)} \n
\n
\n
\n created \n \n Toggle \n \n updated \n
\n
\n`;a&&(a.insertAdjacentHTML("beforebegin",t),a.insertAdjacentHTML("afterend",'\n\n \n
\n \n \n
\n ${r.author}\n
\n
\n \n
\n ${r.title}\n \n
\n 发表于 ${r.created} \n 更新于 ${r.updated} \n
\n
\n \n`;s&&s.insertAdjacentHTML("beforeend",l)}}function initFriendCircle(){var e=document.getElementById("fcircleContainer"),a=JSON.parse(localStorage.getItem("statisticalList")),t=JSON.parse(localStorage.getItem("fdatalist"));e&&a&&t&&(loadStatistical(a),document.getElementById("switchRankMode").checked?loadArticleItem(JSON.parse(localStorage.getItem("updatedList")),0,t.initnumber):loadArticleItem(JSON.parse(localStorage.getItem("createdList")),0,t.initnumber))}function loadMoreArticle(){var e=document.getElementsByClassName("fArticleItem").length,a=document.getElementById("switchRankMode"),t=JSON.parse(localStorage.getItem("fdatalist"));a&&t&&(a.checked?loadArticleItem(JSON.parse(localStorage.getItem("updatedList")),e,e+t.stepnumber):loadArticleItem(JSON.parse(localStorage.getItem("createdList")),e,e+t.stepnumber));window.scrollBy(0,180)}function checkRankMode(){document.getElementById("fcircleContainer").innerHTML="";var e=document.getElementById("switchRankMode"),a=JSON.parse(localStorage.getItem("fdatalist"));e&&a&&(e.checked?loadArticleItem(JSON.parse(localStorage.getItem("updatedList")),0,a.initnumber):loadArticleItem(JSON.parse(localStorage.getItem("createdList")),0,a.initnumber))}initFriendCircle();
//# sourceMappingURL=/sm/cef82841b62e0be3883891ad9defcb83acf997de3dd301b51073034bc385b874.map