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

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 ...

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 - ...

CrakRevenue Tutorials for Beginners ( Earn Money Online in 2024 )

Best and High paying Crakrevenue Affiliate Network. (CrakRevenue Tutorials for Beginners) In this article, I'm going to share with you best crakrevenue earning methods. it's for completely beginners. You can start making money from today. i will also share with you my crakrevenue earnings . Read this full articles.  (CrakRevenue Tutorials for Beginners) First of all you will have to create account on crakrevenue affiliate network. after that you can promote high paying cpa offers. Crakrevenue cpa offers you can promote Jerkmate cpa offers. when someone will click on this Jerkmate cpa offer and sign up after that they will verify their email address then you will earn $7.50 per sign up. as you can see in the Image. this offer is DOI. That means Sign up + Confirm Email address. suppose if it will be SOI Offers then you just need to generate only Sign up. when someone will just sign up then you can earn. (CrakRevenue Tutorials for Beginners) Next step you will have to create ...