Skip to main content

YouTube Thumbnail Downloader

You can make your own YouTube thumbnail downloader app and Display Admob ads to make money.
Use html code about YouTube Thumbnail Downloader app.


<html lang="en">

 <head>

  <meta charset="utf-8"/>

  <meta content="width=device-width, initial-scale=1.0" name="viewport"/>

  <title>

   YouTube Thumbnail Downloader

  </title>

  <script src="https://cdn.tailwindcss.com">

  </script>

  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet"/>

  <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&amp;display=swap" rel="stylesheet"/>

  <style>

   @keyframes fadeIn {

        from { opacity: 0; }

        to { opacity: 1; }

    }

    .fade-in {

        animation: fadeIn 1s ease-in-out;

    }

  </style>

  <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>

  <script>

   (adsbygoogle = window.adsbygoogle || []).push({

        google_ad_client: "ca-pub-3940256099942544",

        enable_page_level_ads: true

    });

  </script>

 </head>

 <body class="bg-gradient-to-r from-blue-500 to-purple-600 font-roboto min-h-screen flex items-center justify-center">

  <div class="container mx-auto p-4">

   <div class="max-w-xl mx-auto bg-white shadow-2xl rounded-lg p-6 transform transition duration-500 hover:scale-105">

    <h1 class="text-3xl font-bold text-center mb-6 text-gray-800">

     YouTube Thumbnail Downloader

    </h1>

    <div class="mb-6">

     <label class="block text-gray-700 font-medium mb-2" for="yt-url">

      YouTube Video URL

     </label>

     <input class="w-full px-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500" id="yt-url" placeholder="Enter YouTube video URL" type="text"/>

    </div>

    <div class="text-center">

     <button class="bg-blue-600 text-white px-6 py-3 rounded-lg hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 transform transition duration-300 hover:scale-110" id="fetch-thumbnail">

      Fetch Thumbnail

     </button>

    </div>

    <div class="mt-8 hidden fade-in" id="thumbnail-container">

     <h2 class="text-2xl font-semibold text-center mb-4 text-gray-800">

      Thumbnail Preview

     </h2>

     <div class="flex justify-center">

      <img alt="YouTube video thumbnail preview" class="rounded-lg shadow-lg" height="360" id="thumbnail" src="https://storage.googleapis.com/a1aa/image/afdpJ_jgUaWgUqxNBrVkycSqkJt-gIdjqqkICy6K0DI.jpg" width="480"/>

     </div>

     <div class="text-center mt-6">

      <a class="bg-green-500 text-white px-6 py-3 rounded-lg hover:bg-green-600 focus:outline-none focus:ring-2 focus:ring-green-500 transform transition duration-300 hover:scale-110" download="thumbnail.jpg" href="#" id="download-thumbnail">

       Download Thumbnail

      </a>

     </div>

    </div>

    <div class="mt-8">

     <ins class="adsbygoogle" data-ad-client="ca-pub-3940256099942544" data-ad-slot="1234567890" data-ad-format="auto" style="display:block"></ins>

     <script>

      (adsbygoogle = window.adsbygoogle || []).push({});

     </script>

    </div>

   </div>

  </div>

  <script>

   document.getElementById('fetch-thumbnail').addEventListener('click', function() {

            const url = document.getElementById('yt-url').value;

            let videoId = url.split('v=')[1];

            const ampersandPosition = videoId.indexOf('&');

            if(ampersandPosition !== -1) {

                videoId = videoId.substring(0, ampersandPosition);

            }

            const thumbnailUrl = `https://img.youtube.com/vi/${videoId}/maxresdefault.jpg`;

            document.getElementById('thumbnail').src = thumbnailUrl;

            document.getElementById('download-thumbnail').href = thumbnailUrl;

            document.getElementById('thumbnail-container').classList.remove('hidden');

        });


        // Load Interstitial Ad

        function loadInterstitialAd() {

            const interstitial = new google.ads.interstitial({

                adUnitId: 'ca-app-pub-3940256099942544/1033173712'

            });

            interstitial.load();

            interstitial.addEventListener('loaded', () => {

                interstitial.show();

            });

        }


        // Load Rewarded Ad

        function loadRewardedAd() {

            const rewarded = new google.ads.rewarded({

                adUnitId: 'ca-app-pub-3940256099942544/5224354917'

            });

            rewarded.load();

            rewarded.addEventListener('loaded', () => {

                rewarded.show();

            });

        }


        // Show Interstitial Ad on Fetch Thumbnail

        document.getElementById('fetch-thumbnail').addEventListener('click', loadInterstitialAd);


        // Show Rewarded Ad on Download Thumbnail

        document.getElementById('download-thumbnail').addEventListener('click', loadRewardedAd);

  </script>

 </body>

</html>

Comments

Post a Comment

Popular posts from this blog

Submit Your Website on all Search Engines to get Traffic on your website

  Submit Your Website on all Search Engines to get Traffic on your website In this article, I'm going to give you 63 Big Search engines to submit your website. after submit your website on these Search engines your website can Instantly start to get lots of traffic. you will have to submit your website on all search engines. if you will not submit your website on search engines then your website will not show in Search results.  yandex search engines like when someone will try to search your website on Google then your website will not show in search result. you will have to submit your website on Google Console. similarly I have collected all search Engines to submit your website and get free lots of traffic. read this full articles. 63+ Search Engines that I have collected to submit your website and get over 500K free traffic instantly Today..   Check out all these search engines -  1 -  ASR (Active Search Results ) 2 -  Google 3-  Amidalla 4 - ...

Earn Money From Google AdMob ( Make Money Online 2024 ) | PASSIVE INCOME 2024

Earn Passive Money From Google AdMob ( Make Money Online ) |  https://cpamarketingbeginners.blogspot.com/ Admob Earnings Earn Instantly Hundreds of dollars without doing hard work with Google AdMob. Google Ad Mob is a Google's Product. AdMob is A Just like AdSense. You can Earn Money From Your Website and YouTube Channel Using AdSense. But if you want to earn money from Your app and Game then you can Use AdMob.  Google Run Ads on Website, YouTube Channel, App and Game Application. when Someone Clicks on that ads then You can Earn money. You can Earn $1 - $5 only on one Click.  Earning depends on Traffic quality and Category. If you have made your website, YouTube Channel or App on Business category and If you are getting traffic from United states, United kingdom, Canada, Germany.... then you can earn high amount of money. In this article, I am going to share with you how you can earn money from admob. read this full article. Guys, First of all you will have to make game ...

Make $100 Online TODAY (EASY Method) [2024] | EARN MONEY

Would You like to earn $100 Per day? You should read this full articles. Because I am going to share with you best and trusted platform to earn your first and fast $100 today. Make $100 Online TODAY (EASY Method) [2024] | EARN MONEY You can see payments proof, All these people are cashing out their money every single day. You can earn up to $100 daily with this platform. This platform's name is shrtfly.com  . This is amazing platform. This platform is available worldwide so no matter what country you are in. You can use this platform to make money online. shrtfly platform have 1 Million Publishers. This platform show clean ads only. You can not get virus , Malware and adult type ads. It's a AdSense Compatible Platform.  How to earn $100 per day with shrtfly platform. You can Visit on these platform like mxplayer.in , YouTube.com, bilibili, Facebook or any social media platform and then copy URL Of that movies and reel. You can also copy website url. watch full tutorial ab...