PageSourceSearch

https://www.bitss.org/wp-content/cache/wpo-minify/1787207696/assets/wpo-minify-footer-aecd0a02.min.js

js bitss.org collected 2026-10-01 11:26:43 UTC 3,408 bytes, 20 lines download raw bytes

1
2(function(){"use strict";if(typeof blueskyAsync==="undefined"){return}
3var ajaxUrl=blueskyAsync.ajaxUrl;var nonce=blueskyAsync.nonce;function loadElement(el){var type=el.getAttribute("data-bluesky-async");var paramsRaw=el.getAttribute("data-bluesky-params")||"{}";var action;var body;if(type==="posts"){action="bluesky_async_posts"}else if(type==="profile"){action="bluesky_async_profile"}else if(type==="auth"){action="bluesky_async_auth"}else{return}
4body=new FormData();body.append("action",action);body.append("nonce",nonce);if(type!=="auth"){body.append("params",paramsRaw)}else{var params=JSON.parse(paramsRaw);if(params.account_id){body.append("account_id",params.account_id)}}
5fetch(ajaxUrl,{method:"POST",credentials:"same-origin",body:body,}).then(function(response){return response.json()}).then(function(data){if(!data.success){showError(el,type);return}
6if(type==="auth"){handleAuth(el,data.data)}else{replaceWithServerHtml(el,data.data.html)}}).catch(function(){showError(el,type)})}
7function replaceWithServerHtml(el,html){if(!html)return;var range=document.createRange();range.selectNode(el);var fragment=range.createContextualFragment(html);el.parentNode.replaceChild(fragment,el)}
8function getAuthErrorMessage(error){if(!error||!error.code){return blueskyAsync.i18n.connectionFailed}
9switch(error.code){case "MissingCredentials":return blueskyAsync.i18n.missingCredentials;case "NetworkError":return(blueskyAsync.i18n.networkError+" "+(error.message||"network error")+".");case "RateLimitExceeded":var msg=blueskyAsync.i18n.rateLimitExceeded;if(error.ratelimit_reset){var resetDate=new Date(parseInt(error.ratelimit_reset,10)*1000);msg+=" "+blueskyAsync.i18n.rateLimitResetsAt+" "+resetDate.toLocaleTimeString()+"."}
10return msg;case "AuthFactorTokenRequired":return blueskyAsync.i18n.authFactorRequired;case "AccountTakedown":return blueskyAsync.i18n.accountTakedown;case "AuthenticationRequired":return blueskyAsync.i18n.invalidCredentials;default:var detail=error.code;if(error.message){detail+=" \u2014 "+error.message}
11if(error.status){detail+=" (HTTP "+error.status+")"}
12return blueskyAsync.i18n.connectionFallback+" "+detail}}
13function handleAuth(el,data){el.classList.remove("bluesky-async-placeholder");while(el.firstChild){el.removeChild(el.firstChild)}
14var p=document.createElement("p");if(data.authenticated){el.className="description bluesky-connection-check notice-success";p.textContent=blueskyAsync.i18n.connectionSuccess;p.appendChild(document.createElement("br"));var logoutUrl=el.getAttribute("data-bluesky-logout-url")||"#";var a=document.createElement("a");a.className="bluesky-logout-link";a.href=logoutUrl;a.textContent=blueskyAsync.i18n.logoutLink;p.appendChild(a)}else{el.className="description bluesky-connection-check notice-error";p.textContent=getAuthErrorMessage(data.error)}
15el.appendChild(p)}
16function showError(el,type){el.classList.remove("bluesky-async-placeholder");if(type==="auth"){el.className="description bluesky-connection-check notice-error";while(el.firstChild){el.removeChild(el.firstChild)}
17var p=document.createElement("p");p.textContent=blueskyAsync.i18n.connectionCheckFailed;el.appendChild(p)}else{el.textContent=blueskyAsync.i18n.contentLoadFailed}}
18document.addEventListener("DOMContentLoaded",function(){var elements=document.querySelectorAll("[data-bluesky-async]");for(var i=0;i<elements.length;i++){loadElement(elements[i])}})})();
19
20

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.