PageSourceSearch

https://railsware.com/blog/wp-content/themes/railsware/vendors/dist/js/blog-front-page.js?ver=0.0.52

js railsware.com collected 2026-09-24 22:02:45 UTC 1,947 bytes, 1 lines download raw bytes

1!function(e){"function"==typeof define&&define.amd?define("blogFrontPage",e):e()}(function(){"use strict";document.querySelector("body"),document.querySelector(".overlay"),document.querySelector(".sidebar");const e=()=>{const e=document.querySelectorAll(".article-card__link");Array.from(e).forEach(e=>{e.addEventListener("click",t=>{t.preventDefault();const o=e.dataset.url,a=e.dataset.urlTarget;o&&a&&window.open(o,a)})})};document.addEventListener("DOMContentLoaded",()=>{const t=document.querySelectorAll(".categories-list__item"),o=document.getElementById("articles-container");let a=1,n="";function c(){t.forEach(e=>e.classList.add("disabled")),axios.post(blogData.ajaxurl,new URLSearchParams({action:"filter_posts_by_category",category_name:n,paged:a})).then(t=>{o.innerHTML=t.data,i(),e()}).catch(e=>{console.error("Error loading posts:",e)}).finally(()=>{t.forEach(e=>e.classList.remove("disabled"))})}function r(e){t.forEach(e=>e.classList.remove("active")),e.classList.add("active")}function s(){const e=new URLSearchParams;n&&e.set("category",n),a>1&&e.set("paged",a);const t=`${window.location.pathname}?${e.toString()}`;window.history.pushState(null,"",t)}function i(){document.querySelectorAll(".paginations a").forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=document.querySelector(".categories-list"),o=new URL(e.target.href).searchParams.get("paged");a=o||1,c(),s();const n=t.getBoundingClientRect().top+window.scrollY+-120;window.scrollTo({top:n,behavior:"smooth"})})})}t.forEach(e=>{e.addEventListener("click",e=>{e.preventDefault();const t=e.target;n=t.dataset.category,a=1,t.classList.contains("active")||t.classList.contains("disabled")||(c(),s(),r(t))})}),function(){const t=new URLSearchParams(window.location.search),o=t.get("category"),s=t.get("paged");if(o||s){n=o,a=s?parseInt(s,10):1,c();const e=document.querySelector(`.categories-list__item[data-category="${n}"]`);e&&r(e)}else e(),i()}()})});

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.