Use YouTube Thumbnail as Featured Image

// Hook into the save_post action to set the YouTube thumbnail as the featured image function set_youtube_thumbnail_as_featured_image($post_id) { // Check if the post type is ‘video’ to avoid running on other post types if (get_post_type($post_id) !== ‘video’) { return; }…Continue reading

RingBa: PHP Hide For Bots

//global $js_tag_id; //$js_tag_id = “CA365bab17031a47acab84c70a32d28015″; if (!defined(‘ABSPATH’)) exit; function is_search_engine_bot() { $userAgent = $_SERVER[‘HTTP_USER_AGENT’] ?? ”; if (stripos($userAgent, ‘google’) !== false || stripos($userAgent, ‘bing’) !== false || stripos($userAgent, ‘msn’) !== false || stripos($userAgent, ‘yandex’) !== false || stripos($userAgent, ‘baidu’) !==…Continue reading

(cloud) Jony – Scroll on mobile sticky section

document.addEventListener(‘DOMContentLoaded’, function() { const stBottom = document.getElementById(‘st-bottom’); const header = document.querySelector(‘header’); // Adjust the selector if needed const headerHeight = header ? header.offsetHeight : 100; // Fallback height let lastScrollY = window.scrollY; //this is a comment (2) window.addEventListener(‘scroll’, function() {…Continue reading

Save Stuff?

var element = document.getElementById(‘send1LumpTo0’); var element2 = document.getElementById(‘send2LumpTo0’); var element3 = document.getElementById(‘send3LumpTo0’); var two = document.getElementById(‘two’); var three = document.getElementById(‘three’); var four = document.getElementById(‘four’); var five = document.getElementById(‘five’); var six = document.getElementById(‘six’); var seven = document.getElementById(‘seven’); var eight = document.getElementById(‘eight’);…Continue reading

Warranty Product Google Sheet Scripts

const clientId = “913975986247-4v5j5nhs493nnnolshuq6lt5lr1n3mkq.apps.googleusercontent.com”; const clientSecrect = “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”; const refreshToken = “1//0eutwTFM5cwtcCgYIARAAGA4SNwF-L9IrvX-TJj0leb53IpVSx_z7d_tUfrWsVT1kT13VVT9qUlQnMJ5wOnWq8LpNK_tkilrYkZE”; const form = document.getElementById(“warranty-search-form”); const resultsContainer = document.getElementById(“warranty-result”); if(form) { form.addEventListener(“submit”, async (e) => { e.preventDefault(); if(grecaptcha.getResponse() !== “”){ resultsContainer.innerHTML = ‘ ‘; const searchInput = document.getElementById(“warranty-serial-input”); //…Continue reading

Warranty Result CSS

html { font-size: 62.5%; } @media screen and (max-width: 37.5em) { html { font-size: 50%; } } .g-recaptcha{ } .loader-container { display: flex; align-items: center; justify-content: center; } .loader { display: block; width: 48px; height: 48px; border-radius: 50%; position: relative;…Continue reading