PageSourceSearch

https://smiletutor.sg/wp-content/themes/smiletutor/assets/js/global.js?ver=1.0

js smiletutor.sg collected 2026-10-01 06:43:51 UTC 2,960 bytes, 1 lines download raw bytes

1!function(e){var t,n,o,a,s,i,d,r=e("body"),l=r.find(".custom-header"),c=l.find(".site-branding"),m=r.find(".navigation-top"),h=m.find(".wrap"),u=m.find(".menu-item"),f=m.find(".menu-toggle"),g=r.find(".menu-scroll-down"),b=r.find("#secondary"),w=r.find(".entry-content"),p=r.find(".format-quote blockquote"),v=r.hasClass("twentyseventeen-front-page")||r.hasClass("home blog"),y="site-navigation-fixed",C=0;function T(){t=m.height(),n=m.outerHeight(),o=2*parseFloat(h.css("padding-top")),a=2*u.outerHeight(),s=t<=o+a}function k(){"none"===f.css("display")&&(s?(i=v&&(r.hasClass("has-header-image")||r.hasClass("has-header-video"))?l.innerHeight()-n:l.innerHeight(),e(window).scrollTop()>=i?m.addClass(y):m.removeClass(y)):m.removeClass(y))}function x(){"none"===f.css("display")?v?c.css("margin-bottom",n):l.css("margin-bottom",n):(l.css("margin-bottom","0"),c.css("margin-bottom","0"))}function q(){var e=document.createElement("div");try{return!(!("backgroundAttachment"in e.style)||/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream)&&(e.style.backgroundAttachment="fixed","fixed"===e.style.backgroundAttachment)}catch(e){return!1}}e("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex], [contenteditable]",".site-content-contain").filter(":visible").focus(function(){if(m.hasClass("site-navigation-fixed")){var t=e(window).scrollTop(),n=m.height(),o=e(this).length ? e(this).offset().top : 0,a=o-t;e("#wpadminbar").length&&(a-=e("#wpadminbar").height()),a<n&&e(window).scrollTo(o-(n+50),0)}}),e(document).ready(function(){var t;m.length&&(T(),k()),g.length&&(e("body").hasClass("admin-bar")&&(C-=32),e("body").hasClass("blog")&&(C-=30),m.length||(n=0),g.click(function(t){t.preventDefault(),e(window).scrollTo("#primary",{duration:600,offset:{top:C-n}})})),x(),e(twentyseventeenScreenReaderText.quote).prependTo(p),!0==((t=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===("undefined"!=typeof SVGRect&&t.firstChild&&t.firstChild.namespaceURI))&&(document.documentElement.className=document.documentElement.className.replace(/(\s*)no-svg(\s*)/,"$1svg$2")),!0===q()&&(document.documentElement.className+=" background-fixed")}),m.length&&(e(window).on("scroll",function(){k(),x()}),e(window).resize(function(){T(),setTimeout(k,500)})),e(window).resize(function(){clearTimeout(d),d=setTimeout(function(){var t,n,o;t="blockquote.alignleft, blockquote.alignright",!r.hasClass("has-sidebar")||r.hasClass("search")||r.hasClass("single-attachment")||r.hasClass("error404")||r.hasClass("twentyseventeen-front-page")||(n=b.offset(),o=(b.length ? n.top : 0)+(b.height()+28),w.find(t).each(function(){var t=e(this);t.offset().top>o?t.addClass("below-entry-meta"):t.removeClass("below-entry-meta")}))},300),setTimeout(x,1e3)}),e(document).on("wp-custom-header-video-loaded",function(){r.addClass("has-header-video")})}(jQuery);

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.