PageSourceSearch

https://www.toi.org/themes/Atlas/assets/dist/js/subpage.js?v=20261002010139

js toi.org collected 2026-10-02 06:02:12 UTC 3,851 bytes, 2 lines download raw bytes

1function formLabels(){$('input:not([type="radio"]):not([type="checkbox"]), textarea, select').focus(function(){$(this).parent("div").addClass("focused")}),$('input:not([type="radio"]):not([type="checkbox"]), textarea, select').blur(function(){""===$(this).val()&&$(this).parent("div").removeClass("focused")}),$('input[type="file"]').each(function(){$(this).next("label").after('<span class="file"></span>'),$(this).on("change",function(){var e=$(this).val(),t=e.split("\\"),t=t[t.length-1],a=$(this).closest("div").find(".file");0!==e.length&&a.text(t)})}),$(".content-section").each(function(){0==$(this).text().trim().length&&$(this).hide()}),$(window).on("load",function(){1024<$(window).width()&&1<=$(".subpage .alerts").length&&(console.log("Alerts is present."),setTimeout(function(){$(".alerts").height(function(e,t){$(".header").css("min-height",t+222),console.log("Added "+t+"px min-height to banner")}),$(".alerts .close").click(function(){$(".header, .nav-level1").removeAttr("style")})},100))})}function pageLoad(){formLabels()}jQuery(document).ready(function(s){var e;s("img").each(function(){var e=s(this),t=s(this).attr("src"),a=s(this).attr("alt"),n=t.split("/").reverse()[0].replace(/\.[^/.]+$/,"");0!==e.parent("a").length?""!==a&&void 0!==a||e.attr("alt","image "+n):""!==a&&void 0!==a||e.attr("alt",""),s(this).hasClass("retina")&&s(this).attr("srcset",t+" 2x").show()}),s("main").responsivevideos(),s("main").tabs({dropdown:!0,desktop:1025,animated:!0}),formLabels(),s('[itemprop="telephone"]').each(function(){var e=s(this).text().replace(/(\d{3})(\d{3})(\d{4})/,"$1-$2-$3");s(this).wrapInner('<a href="tel:'+e+'"></a>')}),e=s.Deferred(),s(":not(.accordion-alt-item) + .accordion-alt-item, * > .accordion-alt-item:first-of-type").each(function(){s(this).nextUntil(":not(.accordion-alt-item)").addBack().wrapAll('<div class="accordions-alt-list active" />')}),e.done((e=s.Deferred(),s(".accordions-alt-list .accordion-alt-item .description").each(function(){s(this).append('<a class="read-more" tabindex="0">View More <span class="fa fa-caret-down"></span></a>')}),s(".accordion-alt-item .read-more").click(function(){var e=s(this).closest(".accordion-alt-item"),t=s(this).closest(".accordion-alt-item .read-more");e.hasClass("expanded")?(e.removeClass("expanded"),t.html('View More <span class="fa fa-caret-down"></span>')):(e.addClass("expanded"),t.html('View Less <span class="fa fa-caret-up"></span>'))}),s(".accordion-alt-item .read-more").on("keypress",function(e){var t;13===e.which&&(e=s(this).closest(".accordion-alt-item"),t=s(this).closest(".accordion-alt-item .read-more"),e.hasClass("expanded")?(e.removeClass("expanded"),t.html('View More <span class="fa fa-caret-down"></span>')):(e.addClass("expanded"),t.html('View Less <span class="fa fa-caret-up"></span>')))}),e)),0<!s(".subnavigation ul").length&&s(".subnavigation").remove(),s(".breadcrumbs-container ul li").length<=1&&s(".breadcrumbs-container").remove(),s(".pager .page").length<=1&&s(".page").remove(),s(".subnavigation span.more").on("click",function(){s(".subnavigation").toggleClass("active")}),s(".subnavigation span.more").on("keypress",function(e){13===e.which&&(s(".subnavigation").toggleClass("active"),s(".subnavigation ul li a:last").on("focusout",function(){s(".subnavigation.active").removeClass("active")}))}),s(document).ready(function(){s(".sp-banner-wrapper h1").html(s(".news-detail-headline").html()),s(".news-detail-headline").remove()}),s(document).ready(function(){s(".sp-banner-wrapper h1").html(s(".event-details-title span").html()),s(".event-details-title span").remove()}),s(".store__categories-title").click(function(){s(".store__categories").toggleClass("active")}),s(".store__categories-title").on("keypress",function(e){13===e.which&&s(".store__categories").toggleClass("active")})});
2//# sourceMappingURL=subpage.js.map

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.