You-Tube-Tool 1.0

by velo_ninja

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>YouTube API Example</title>
  <!-- Include the fetch polyfill -->
  <script src="https://unpkg.com/[email protected]/dist/fetch.umd.js"></script>
  <style>
    /* Style for the main container */
    #mainDiv {
      width: 80%;
      height: 1000px;
      margin: 20px auto;
      display: flex;
      border: 2px solid grey;
      border-radius: 10px;
      background-color: lightgrey;
      box-shadow: 0 0 10px rgba(50, 10, 20, 0.3);
      overflow: hidden;
      position: relative;
    }

    /* Style for the video container */
    #videoContainer {
      width: 600px;
      height: 90%;
      overflow-y: auto;
      border-radius: 0 10px 10px 0;
      box-shadow: 0 0 10px rgba(50, 10, 20, 0.3);
      background: linear-gradient(to bottom, #f9f9f9, #fff);
      padding: 10px;
    }

    /* Style for the video links */
    .videoLink {
      text-decoration: none;
      color: #333;
      transition: color 0.3s;
    }

    .videoLink:hover {
      color: #007BFF;
    }

    /* Style for each video entry */
    .videoEntry {
      margin-bottom: 20px;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }

    /* Style for the thumbnail image */
    .thumbnail {
      max-width: 100%;
      height: auto;
    }

    /* Style for video details */
    .videoDetails {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    /* Style for the title and ID */
    .title {
      font-weight: bold;
    }

    .videoId {
      color: #888;
    }
    
    button {
      position: absolute;
      bottom: 10px; /* Adjust the value as needed */
      left: 50%;
      transform: translateX(-150%);
      padding: 10px;
      font-size: 16px;
    }
  </style>
</head>
<body>

  <div id="mainDiv">
    <div...

JavaScript

//AIzaSyC-D9kO7XOMLu_O9fZcl5RCPHg_uv8oGnM