PageSourceSearch

https://classichits947.com/wp-content/plugins/wp-tabs-pro/src/Shar…/js/tab-shared-scripts.min.js?ver=3.3.2

js classichits947.com collected 2026-10-01 23:51:09 UTC 5,266 bytes, 1 lines download raw bytes

1!function($){"use strict";function wcp_add_youtube_api_script(){var youtubeScriptId="youtube-api",youtubeScript;if(null===document.getElementById("youtube-api")){var tag=document.createElement("script"),firstScript=document.getElementsByTagName("script")[0];tag.src="https://www.youtube.com/iframe_api",tag.id="youtube-api",firstScript.parentNode.insertBefore(tag,firstScript)}}var videos;function lazyLoad(element){var $element=$(element),$nestedElement=$element.find(".sp_tabs-lazy-load-video"),embedUrl=$nestedElement.data("embed"),autoplay=$nestedElement.data("autoplay"),videoLoop=$nestedElement.data("loop"),maxWidth=$nestedElement.data("width");if(embedUrl){maxWidth&&$nestedElement.css("maxWidth",maxWidth+"px");var isSelfHosted=embedUrl.match(/\.(mp4|webm|ogg)$/),isWistia=embedUrl.includes("wistia.com")||embedUrl.includes("wistia.net"),isYouTube=embedUrl.includes("youtube.com")||embedUrl.includes("youtu.be"),isVimeo=embedUrl.includes("vimeo.com"),isTikTok=embedUrl.includes("tiktok.com"),$iframe=$("<iframe>",{class:"sp_tabs-video-iframe",frameborder:0,allow:"autoplay; encrypted-media; fullscreen; picture-in-picture",allowfullscreen:!0,playsinline:!0});$element.on("click","button",(function(e){e.preventDefault(),loadVideo()}))}else console.error("No embed URL found");function buildVideoUrl(){if(isWistia){const url=new URL(embedUrl),params=new URLSearchParams(url.search);return params.set("autoplay","1"),params.set("muted",autoplay?"1":"0"),params.set("loop",videoLoop?"1":"0"),params.set("controlsVisibleOnLoad","false"),url.origin+url.pathname+"?"+params.toString()}if(isYouTube){let videoId="";return videoId=embedUrl.includes("youtube.com")?new URL(embedUrl).searchParams.get("v"):embedUrl.split("/").pop(),`https://www.youtube.com/embed/${videoId}?autoplay=${autoplay?1:0}&loop=${videoLoop?1:0}&mute=${autoplay?1:0}`}if(isVimeo){const match=embedUrl.match(/vimeo\.com\/(\d+)/),videoId=match?match[1]:"";return`https://player.vimeo.com/video/${videoId}?autoplay=${autoplay?1:0}&loop=${videoLoop?1:0}&muted=${autoplay?1:0}`}if(isTikTok){const videoIdMatch=embedUrl.match(/\/video\/(\d+)/),videoId=videoIdMatch?videoIdMatch[1]:null;return videoId?`\n                    <blockquote class="tiktok-embed" cite="${embedUrl}" data-video-id="${videoId}" style="max-width: ${maxWidth}px;">\n                        <section>Loading...</section>\n                    </blockquote>\n                    <script async src="https://www.tiktok.com/embed.js"><\/script>`:""}return isSelfHosted&&autoplay?`\n                    <video class="sp_tabs-video-iframe" playsinline ${autoplay?"autoplay":""} ${videoLoop?"loop":""} muted controls>\n                        <source src="${embedUrl}" type="video/${embedUrl.split(".").pop()}">\n                        Your browser does not support the video tag.\n                    </video>`:embedUrl}function loadVideo(){stopAllVideos($element);var videoEmbed=buildVideoUrl();if(isSelfHosted&&autoplay)$element.append(videoEmbed);else if(isTikTok)if($element.append(videoEmbed),$('script[src="https://www.tiktok.com/embed.js"]').length)"function"==typeof window.tiktok&&window.tiktok.init();else{const tikTokScript=document.createElement("script");tikTokScript.src="https://www.tiktok.com/embed.js",tikTokScript.async=!0,document.body.appendChild(tikTokScript)}else $iframe.attr("src",videoEmbed),$element.append($iframe);$element.find("img").addClass("fadeout"),$element.find("button").hide(),$element.addClass("video-active")}}wcp_add_youtube_api_script(),$(document).find(".wcp-self-hosted-video video").each((function(index,element){"autoplay"===$(element).attr("allow")&&element.play()}));var currentYTPlayer=null;function stopAllVideos(exceptElement=null){var $videoContainers;$(".sp_tabs-video-inline-mode").each((function(){var $container=$(this);exceptElement&&$container.is(exceptElement)||($container.removeClass("video-active").find("iframe:not(.sp_tabs-inline-video-youtube),video,.tiktok-embed").remove(),$container.find("img").removeClass("fadeout"),$container.find("button").show(),currentYTPlayer&&(currentYTPlayer.stopVideo(),currentYTPlayer.destroy(),currentYTPlayer=null))}))}function initVideoScripts(){var $videoContainers;$(".sp_tabs-video-iframe-wrapper").length&&($(".tabs-iframe-wrapper").each((function(){const $iframe=$(this).find(".sp_tabs-iframe.sp_tabs-lazy-load-video");$iframe.length&&lazyLoad(this)})),$(".sp_tabs-video-inline-mode").on("click","button",(function(e){e.preventDefault();const $button=$(this),ytPlayerContainer=$button.siblings(".sp_tabs-inline-video-youtube");if(!ytPlayerContainer.length)return;const videoId=ytPlayerContainer.data("embed"),videoLoop=ytPlayerContainer.data("loop")?1:0,videoAutoplay=ytPlayerContainer.data("autoplay")?1:0;videoAutoplay||stopAllVideos(ytPlayerContainer),"object"==typeof YT&&(currentYTPlayer=new YT.Player(ytPlayerContainer[0],{videoId:videoId,playerVars:{playlist:videoId,autoplay:1,loop:videoLoop,showinfo:0,rel:0,playsinline:1,mute:0,controls:1},events:{onReady:function(event){event.target.playVideo(),event.target.unMute()},onStateChange:function(event){event.data===YT.PlayerState.ENDED&&videoLoop&&event.target.seekTo(0)}}}))})))}initVideoScripts(),$(".wc-tabs").on("click","li a",(function(){stopAllVideos()}))}(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.