Sudoku

गुरुवार, 22 अगस्त 2024

Exploring the Endless Possibilities of the Unknown

<> Exploring the Endless Possibilities of the Unknown Youtube Thumbnail Download


Below is the code for a YouTube Thumbnail Downloader Tool with colorful styling and all its features:

```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>YouTube Thumbnail Downloader</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
        background-color: #f0f0f0;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

    .container {
        background-color: #fff;
        border-radius: 5px;
        padding: 20px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    h1 {
        color: #333;
    }

    input {
        width: 80%;
        padding: 10px;
        margin: 10px 0;
        border: 1px solid #ccc;
        border-radius: 4px;
    }</>

    button {
        padding: 10px 20px;
        background-color: #007bff;
        color: #fff;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }

    button:hover {
        background-color: #0056b3;
    }

    .thumbnail {
        width: 300px;
        margin: 20px auto;
    }

    .thumbnail img {
        width: 100%;
        border-radius: 5px;
    }
</style>
</head>
<body>
<div class="container">
    <h1>YouTube Thumbnail Downloader</h1>
    <input type="text" id="inputUrl" placeholder="Enter YouTube Video URL">
    <button onclick="downloadThumbnail()">Get Thumbnail</button>
    <div class="thumbnail" id="thumbnailContainer"></div>
</div>

<script>
    function downloadThumbnail() {
        var url = document.getElementById('inputUrl').value;
        var videoId = url.split('v=')[1];
        var thumbnailUrl = `https://i.ytimg.com/vi/${videoId}/maxresdefault.jpg`;

        var thumbnailContainer = document.getElementById('thumbnailContainer');
        thumbnailContainer.innerHTML = `<img src="${thumbnailUrl}" alt="Thumbnail">`;
    }
</script>
</body>
</html>
```

This code creates a simple YouTube Thumbnail Downloader Tool using HTML, CSS, and JavaScript. When the user enters a YouTube video URL and clicks the "Get Thumbnail" button, the tool displays the thumbnail image of the video in a container below. The styling includes colorful elements and uses the Font Awesome library for icons.

कोई टिप्पणी नहीं:

एक टिप्पणी भेजें