PageSourceSearch

https://thepharmacologist.org/wp-content/themes/stax/assets/js/plyr-init.min.js?ver=1.2.2

js thepharmacologist.org collected 2026-09-29 15:07:40 UTC 4,649 bytes, 1 lines download raw bytes

1!function(i){function l(){var s=new IntersectionObserver(function(e,o){e.forEach(function(e){if(e.isIntersecting){for(var o in e.target.children){o=e.target.children[o];"string"==typeof o.tagName&&"SOURCE"===o.tagName&&(o.src=o.dataset.src)}e.target.load();var n={controls:["play-large","play","progress","mute","volume","fullscreen"],ratio:"16:9"};i(e.target).hasClass("plyr-no-action")&&(n.controls=[],n.clickToPlay=!1),new Plyr(e.target,n),e.target.classList.add("lazy-video-loaded"),s.unobserve(e.target)}})});i(".lazy-video").each(function(e,o){s.observe(o)})}function r(){var a=i(".video-plyr-alone"),e=(a.length&&a.each(function(){if(i(this).hasClass("lazy-video-loaded"))return!1;var e={controls:["play-large","play","progress","mute","volume","fullscreen"],ratio:"16:9"},o=(i(this).hasClass("plyr-no-action")&&(e.controls=[],e.clickToPlay=!1),new Plyr(this,e)),n=i(this),s=!1,l=i(this).closest(".svq-panel"),r=i(this).closest(".svq-article");l.length&&l.hasClass("svq-panel--title-over")&&(s=!0),o.on("ready",function(){l.length?l.find(".svq-progressive__placeholder-video").addClass("video-is-loaded"):r.length&&r.find(".svq-progressive__placeholder-video").addClass("video-is-loaded"),o.on("play",function(){a.each(function(e,o){i(o).is(n)||i(o)[0].plyr.pause()}),i(".audio-plyr-alone").each(function(e,o){i(o)[0].plyr.pause()}),l.length?(s&&l.find(".entry-header").fadeOut(),l.find(".svq-progressive__placeholder-video").addClass("svq-overlay-off"),i("body").addClass("video-is-playing")):r.length&&(r.find(".svq-progressive__placeholder-video").addClass("svq-overlay-off"),i("body").addClass("video-is-playing"))}),o.on("pause",function(){l.length?(s&&l.find(".entry-header").fadeIn(),l.find(".svq-progressive__placeholder-video").removeClass("svq-overlay-off"),i("body").removeClass("video-is-playing")):r.length&&(r.find(".svq-progressive__placeholder-video").removeClass("svq-overlay-off"),i("body").removeClass("video-is-playing"))}),o.on("ended",function(){l.length?(s&&l.find(".entry-header").fadeIn(),l.find(".svq-progressive__placeholder-video").removeClass("svq-overlay-off"),i("body").removeClass("video-is-playing"),o.fullscreen.exit()):r.length&&(r.find(".svq-progressive__placeholder-video").removeClass("svq-overlay-off"),i("body").removeClass("video-is-playing"),o.fullscreen.exit())}),o.on("enterfullscreen",function(){i(this).addClass("enter-full-screen"),o.play()}),o.on("exitfullscreen",function(){i(this).removeClass("enter-full-screen")})})}),document.querySelectorAll(".video-plyr-alone")),n=new IntersectionObserver(function(e,o){i.each(e,function(e,o){o.isIntersecting||i(o.target)[0].plyr.pause()})},{root:null,rootMargin:"0px"});i.each(e,function(e,o){n.observe(o)})}function a(){var o=i(".audio-plyr-alone");o.length&&o.each(function(){var e=new Plyr(this,{controls:["play","progress","current-time"]}),n=i(this);e.on("ready",function(){e.on("play",function(){o.each(function(e,o){i(o).is(n)||i(o)[0].plyr.pause()}),i(".video-plyr-alone").each(function(e,o){i(o)[0].plyr.pause()})})})})}i(document).ready(function(){var o,e,n,s;l(),r(),a(),(o=i(".video-plyr-block")).length&&o.each(function(){var e=new Plyr(this,{controls:["play-large","play","progress","mute","volume","fullscreen"]}),n=i(this);e.on("ready",function(){n.parent().addClass("video-is-loaded"),e.on("play",function(){i(this).parent(".svq-progressive__placeholder-video").addClass("svq-overlay-off"),i("body").addClass("video-is-playing"),o.each(function(e,o){i(o).is(n)||i(o)[0].plyr.pause()}),i(".audio-plyr-block").each(function(e,o){i(o)[0].plyr.pause()})}),e.on("pause",function(){i(this).parent(".svq-progressive__placeholder-video").removeClass("svq-overlay-off"),i("body").removeClass("video-is-playing")}),e.on("ended",function(){i(this).parent(".svq-progressive__placeholder-video").removeClass("svq-overlay-off"),i("body").removeClass("video-is-playing"),e.fullscreen.exit()}),e.on("enterfullscreen",function(){e.play(),i(this).addClass("enter-full-screen")}),e.on("exitfullscreen",function(){i(this).removeClass("enter-full-screen")})})}),e=document.querySelectorAll(".video-plyr-block"),n=new IntersectionObserver(function(e,o){i.each(e,function(e,o){o.isIntersecting||i(o.target).trigger("pause")})},{root:null,rootMargin:"0px"}),i.each(e,function(e,o){n.observe(o)}),(s=i(".audio-plyr-block")).length&&s.each(function(){var e=new Plyr(this,{controls:["play","progress","current-time"]}),n=i(this);e.on("ready",function(){e.on("play",function(){s.each(function(e,o){i(o).is(n)||i(o)[0].plyr.pause()}),i(".video-plyr-block").each(function(e,o){i(o)[0].plyr.pause()})})})}),i(window).on("reveal",function(){l(),r(),a()})})}(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.