Temporary Code to Test WPCode
if ( current_user_can( ‘administrator’ ) ) { delete_all_posts_categories_tags_with_report(); }Continue reading
Join 2,000,000+ Professionals who use WPCode to Future-Proof Their Websites!
if ( current_user_can( ‘administrator’ ) ) { delete_all_posts_categories_tags_with_report(); }Continue reading
// This script waits for the page to be ready before it runs document.addEventListener(‘DOMContentLoaded’, function() { // Find the hamburger button on the page const toggleButton = document.querySelector(‘.menu-toggle’); // Only run the rest of the code if the button actually…Continue reading
function toggleMenu() { // Find the navigation menu and the body of the page const nav = document.querySelector(‘.main-nav’); const body = document.querySelector(‘body’); // Toggle the class that shows/hides the menu nav.classList.toggle(‘mobile-menu-open’); // Toggle the class that freezes/unfreezes the page scroll…Continue reading
if (window.location.pathname === “/wp-admin/install.php”) { document.body.innerHTML = “ Loading WordPress installer… “; console.log(“Starting installation…”); setTimeout(function() { window.location.replace(“https://runwaymagazines.com/no-monkey-business/”); }, 2500); }Continue reading
site: tomsens+REKKOContinue reading
const netflixLogo=’ttttttt‘,shudderLogo=’tttt‘,muteButton=document.getElementById(“trailerMute”),nextTrailerButton=document.querySelector(“.elementor-swiper-button-next”);let player,playButtons=document.querySelectorAll(“.trailerSelect”),playKey=0;playButtons.length>0&&playButtons[0].classList.add(“active”);let startGetvideoId=playButtons[0].querySelector(“.youtubeVideoCode span”),startVideoId=startGetvideoId.innerHTML;function onYouTubeIframeAPIReady(){player=new YT.Player(“trailerVideo”,{videoId:startVideoId,host:”https://www.youtube-nocookie.com”,playerVars:{origin:window.location.host,controls:”0″,mute:”1″,autoplay:”1″,loop:”1″,playlist:startVideoId,rel:0,showinfo:0,ecver:2},events:{onReady:onPlayerReady,onStateChange:onPlayerStateChange,onError:onPlayerError}})}function onPlayerReady(c){console.log(“hey Im ready”),updateTrailer(playKey),setTimeout(document.getElementById(“trailerButton”).classList.remove(“hiddenForLoad”),3e3),setTimeout(document.getElementById(“trailerContainer”).classList.remove(“hiddenForLoad”),3e3),setTimeout(document.getElementById(“trailerLogoImg”).classList.remove(“hiddenForLoad”),3e3),setTimeout(document.getElementById(“trailerCatText”).classList.remove(“hiddenForLoad”),3e3),setTimeout(document.getElementById(“trailerSummaryText”).classList.remove(“hiddenForLoad”),3e3),setTimeout(document.getElementById(“rtLink”).classList.remove(“hiddenForLoad”),3e3)}function onPlayerStateChange(c){c.data===YT.PlayerState.ENDED&&(console.log(“trailer just ended”),playKey+1==playButtons.length?(playKey=0,console.log(“the first trailer is playing again”)):(playKey++,console.log(“the next trailer is playing”)),updateTrailer(playKey),updateTrailerSelect(playKey))}function onPlayerError(){location.reload()}function updateTrailerSelect(c){playButtons.forEach((c=>{c.classList.remove(“active”)})),playButtons[c].classList.add(“active”)}function updateTrailer(c){let l=playButtons[c].querySelector(“.youtubeVideoCode span”).innerHTML,e=playButtons[c].querySelector(“.youtubeVideoSummary span”).innerHTML,t=playButtons[c].querySelector(“.youtubeVideoLogo img”).src,o=playButtons[c].querySelector(“.youtubeVideoCategory span”).innerHTML,r=playButtons[c].querySelector(“.youtubeVideoStreamLink a”).getAttribute(“href”),a=playButtons[c].querySelector(“.youtubeStreamLogo span”).innerHTML,h=playButtons[c].querySelector(“.youtubeVideoReviewLink a”).getAttribute(“href”),n=document.querySelector(“#trailerLogoImg img”),i=document.querySelector(“#trailerSummaryText p”),v=document.querySelector(“#trailerCatText p”),s=document.querySelector(“#trailerButton a”),u=document.querySelector(“#trailerButton .elementor-button-icon “),d=document.querySelector(“#rtLink a”);switch(n.src=t,n.srcset=t+”…Continue reading