-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
12 changed files
with
390 additions
and
68 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,33 +3,63 @@ | |
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>History</title> | ||
<title>Video</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'> | ||
<link rel="shortcut icon" href="./assests/favicon.ico" type="image/x-icon"> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet"> | ||
</head> | ||
|
||
<body> | ||
<a href="./index.html">Home</a> | ||
<div id="iframe-container"></div> | ||
<header> | ||
<a href="index.html"> | ||
<div class="logo"> | ||
<img src="./assests/ytLogo.png" alt=""> | ||
</div> | ||
</a> | ||
<div class="search"> | ||
<input type="text" id="search-text" placeholder="Search"> | ||
<button onclick="handleSearch()"><i class='bx bx-search' style='color:#ffffff'></i></button> | ||
</div> | ||
<div class="user-profile"><span>User</span></div> | ||
</header> | ||
|
||
<aside class="menu"> | ||
<nav> | ||
<a href="index.html"><img src="./assests/home.png" alt="">Home</a> | ||
<a href= | ||
"#"><img src="./assests/subs.png" alt="">Subscriptions</a> | ||
<a href="history.html"><img src="./assests/history.png" alt="">History</a> | ||
<a href="#"><img src="./assests/playlist.png" alt="">Playlists</a> | ||
</nav> | ||
</aside> | ||
|
||
<main id="iframe-container"></main> | ||
|
||
<script> | ||
const historyArray = JSON.parse(localStorage.getItem('yt_history')).reverse(); | ||
const root = document.getElementById('iframe-container'); | ||
const historyText = localStorage.getItem("yt_history") | ||
const historyArray = JSON.parse(historyText).reverse(); | ||
|
||
const root = document.getElementById('iframe-container'); | ||
historyArray.forEach((videoId) => { | ||
const newCard = document.createElement('div'); | ||
newCard.innerHTML=` | ||
newCard.innerHTML = ` | ||
<iframe | ||
<iframe width="448" | ||
height="252" | ||
width="320" | ||
height="180" | ||
src="https://www.youtube.com/embed/${videoId}" | ||
title="YouTube video player" | ||
frameborder="0" allow="accelerometer; | ||
autoplay; clipboard-write; encrypted-media; | ||
gyroscope; picture-in-picture; web-share" | ||
frameborder="0" | ||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" | ||
referrerpolicy="strict-origin-when-cross-origin" | ||
allowfullscreen> | ||
allowfullscreen > | ||
</iframe> | ||
`; | ||
root.appendChild(newCard); | ||
}); | ||
root.appendChild(newCard) | ||
}) | ||
</script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,21 +3,39 @@ | |
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Document</title> | ||
<title>YouTube</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<link href='https://unpkg.com/[email protected]/css/boxicons.min.css' rel='stylesheet'> | ||
<link rel="shortcut icon" href="./assests/favicon.ico" type="image/x-icon"> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<header> | ||
<input type="text" id="search-text" onChange="handleSearch(event)" placeholder="Search"> | ||
<button>Search</button> | ||
<a href="index.html"> | ||
<div class="logo"> | ||
<img src="./assests/ytLogo.png" alt=""> | ||
</div> | ||
</a> | ||
<div class="search"> | ||
<input type="text" id="search-text" placeholder="Search"> | ||
<button onclick="handleSearch()"><i class='bx bx-search' style='color:#ffffff'></i></button> | ||
</div> | ||
<div class="user-profile"><span>User</span></div> | ||
</header> | ||
|
||
<aside> | ||
<a href="history.html">History</a> | ||
<aside class="menu"> | ||
<nav> | ||
<a href="index.html"><img src="./assests/home.png" alt="">Home</a> | ||
<a href="#"><img src="./assests/subs.png" alt="">Subscriptions</a> | ||
<a href="history.html"><img src="./assests/history.png" alt="">History</a> | ||
<a href="#"><img src="./assests/playlist.png" alt="">Playlists</a> | ||
</nav> | ||
</aside> | ||
<main> | ||
<!-- <div class="card"></div> --> | ||
</main> | ||
|
||
<main id="home-video-container"></main> | ||
|
||
<script src="script.js"></script> | ||
</body> | ||
</html> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.