Biblical Weight Loss Secret Pharma
Doesn’t Want You to Know

thumbnail
<div class="container">
 <!-- Video and Overlay Container -->
 <div id="player-container">
 <!-- YouTube Video Player -->
 <div id="player"></div>

 <!-- Initial Overlay with Play Button -->
 <div id="overlay2">
 <button id="play-button" class="play-button">
 <img src="https://tryglutless.com/wp-content/uploads/2024/10/play-video-round.png" alt="Play">
 </button>
 </div>

 <!-- Main Overlay -->
 <div id="overlay">
 <button id="main-play-button" class="play-button">
 <img src="https://tryglutless.com/wp-content/uploads/2024/10/play-video-round.png" alt="Play">
 </button>
 </div>
 </div>
</div>

<!-- Load YouTube API asynchronously -->
<script src="https://www.youtube.com/iframe_api"></script>

<script>
 var player;
 var overlay = document.getElementById('overlay');
 var overlay2 = document.getElementById('overlay2');
 var mainPlayButton = document.getElementById('main-play-button');
 var playButton = document.getElementById('play-button');

 // Function to initialize the YouTube player
 function initializeYouTubePlayer() {
 // Only initialize the player if it hasn't been initialized already
 if (player) {
 player.destroy(); // Destroy any existing player instance
 }

 // Create the YouTube player when the API is ready
 player = new YT.Player('player', {
 videoId: 'xtOzt4tELEY', // Correct video ID from the working URL
 playerVars: {
 'autoplay': 1, // Start video playing
 'mute': 1, // Start the video muted
 'controls': 0, // Hide player controls
 'playsinline': 1, // Allow inline play on mobile
 'rel': 0, // Disable related videos at the end
 'modestbranding': 1, // Minimize YouTube logo
 'iv_load_policy': 3, // Disable annotations
 'fs': 1, // Allow fullscreen
 'showinfo': 0 // Hide video title and info
 },
 events: {
 'onReady': onPlayerReady,
 'onStateChange': onPlayerStateChange // Listen for player state changes
 }
 });
 }

 // Function to handle YouTube player ready state
 function onPlayerReady(event) {
 // Do not show overlay at the beginning
 }

 // Function to handle YouTube player state changes
 function onPlayerStateChange(event) {
 if (event.data === YT.PlayerState.PAUSED) {
 overlay.style.display = 'flex'; // Show main overlay when paused
 mainPlayButton.style.display = 'flex'; // Show main play button when paused
 } else if (event.data === YT.PlayerState.PLAYING) {
 overlay.style.backgroundColor = 'rgba(0, 0, 0, 0)'; // Make overlay transparent when playing
 mainPlayButton.style.display = 'none'; // Hide main play button when playing
 } else {
 overlay.style.display = 'flex'; // Show main overlay on other states (like buffering)
 mainPlayButton.style.display = 'flex'; // Show main play button when buffering
 }
 }

 // Play the video from the beginning and hide overlay2 on first click
 playButton.addEventListener('click', function() {
 player.seekTo(0); // Seek to the beginning of the video
 player.unMute(); // Unmute the video
 player.playVideo(); // Play the video
 overlay2.style.display = 'none'; // Hide the initial overlay
 overlay.style.display = 'flex'; // Show main overlay
 mainPlayButton.style.display = 'flex'; // Ensure main play button is shown initially
 });

 // Handle clicking the main overlay
 overlay.addEventListener('click', function() {
 if (player.getPlayerState() === YT.PlayerState.PLAYING) {
 player.pauseVideo(); // Pause the video
 overlay.style.backgroundColor = 'rgba(128, 128, 128, 0.5)'; // Show gray overlay when paused
 } else {
 player.playVideo(); // Play the video
 overlay.style.backgroundColor = 'rgba(0, 0, 0, 0)'; // Make overlay transparent when playing
 }
 });

 // Call the function to initialize the player after the page loads
 window.onload = function() {
 initializeYouTubePlayer();
 };
</script>
<style>
 
 /* Container */
 .container {
 width: 100%;
 max-width: 1200px;
 margin: 0 auto;
 padding: 5px;
 text-align: center;
 }

 /* Video Section */
 #player-container {
 position: relative;
 width: 100%;
 max-width: 1100px;
 height: 620px;
 margin: 0 auto;
 margin-bottom: 30px;
 border: 8px solid white;
 box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
 overflow: hidden;
 }

 /* YouTube Player Frame */
 #player {
 width: 100%;
 height: 100%;
 }

 /* Main Overlay */
 #overlay {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(128, 128, 128, 0.5); /* Gray overlay */
 display: none; /* Initially hidden */
 justify-content: center;
 align-items: center;
 z-index: 10;
 transition: background-color 0.3s ease;
 }

 /* Initial Overlay (overlay2) */
 #overlay2 {
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background-color: rgba(128, 128, 128, 0.7); /* Darker overlay for initial */
 display: flex; /* Initially visible */
 justify-content: center;
 align-items: center;
 z-index: 20;
 }

 /* Play Button */
 .play-button {
 border: none;
 background: transparent; /* No background */
 cursor: pointer;
 animation: pulse 1.5s infinite; /* Pulsing animation */
 width: 35%; /* Dynamic width based on video layout */
 max-width: 250px; /* Max width for large screens */
 height: auto; /* Adjust height to maintain aspect ratio */
 }

 @keyframes pulse {
 0% {
 transform: scale(1);
 }
 50% {
 transform: scale(1.1);
 }
 100% {
 transform: scale(1);
 }
 }

 /* Responsive Image */
 .play-button img {
 width: 100%; /* Full width of the button */
 height: auto; /* Maintain aspect ratio */
 }

 /* Media Queries for Responsiveness */
 @media (max-width: 768px) {
 /* For tablets and smaller devices */
 #player-container {
 height: 500px; /* Reduced height for smaller devices */
 }

 .play-button {
 width: 30%; /* Wider button for smaller screens */
 }

 /* Video Section */
 #player-container {
 
 border: 4px solid white;
 

 }
 }

 @media (max-width: 480px) {
 /* For mobile devices */
 #player-container {
 height: 300px; /* Further reduced height for mobile */
 }

 .play-button {
 width: 40%; /* Wider button for mobile screens */
 }

 #player-container {
 
 border: 2px solid white;


 }
 }
 </style>
IMPORTANT HEALTH UPDATE
May take up to 10 seconds to load. Make sure your sound is on

Select Your Discounted Bundle Below

Basic Bundle
30 Day Supply
2 Bottles
Total: $138
$69
/ Bottle
  • With small shipping fee

Buy Now 
Ultimate Discount Bundle
90 Day Supply
6 Bottles
Total: $294
$49
/ Bottle
  • FREE Shipping
  • FREE E-book
Buy Now 
Popular Bundle
60 Day Supply
4 Bottles
Total: $236
$59
/ Bottle
  • FREE Shipping
  • FREE E-book
Buy Now 
All payment is secured by 

Scientific References

The company is not endorsed by, sponsored by, or affiliated with any of these organizations
Show more Scientific References
+ Statements on this website have not been evaluated by the Food and Drug Administration.
Products are not intended to diagnose, treat, cure or prevent any disease.

Copyright © 2024 GlutLess | All Rights Reserved