-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html
151 lines (127 loc) · 5.65 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>YouTube Playlist Backup</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
<script src="js/main.js" type="module" defer></script>
</head>
<body>
<div class="container">
<div class="overlay"></div>
<div class="loader"></div>
<header class="logo">
<img class="logo__icon" src="icons/yt-logo.png" alt="YouTube logo">
<h1 class="logo__title">
YouTube
<span class="logo__subtitle">Playlist Backup</span>
</h1>
</header>
<nav class="menu">
<span class="menu__toggler"></span>
<button class="menu__btn active" id="create-btn">Create backup</button>
<button class="menu__btn" id="find-btn">Find missing</button>
</nav>
<div class="section-wrapper">
<section class="create section active" id="create">
<header class="section__header">
<h2 class="section__heading">Create playlist backup</h2>
<p class="section__desc">Export your YouTube playlist data to CSV file.</p>
</header>
<form class="create__form">
<input type="text" class="create__input-url" id="input-url" name="input-url" placeholder="https://www.youtube.com/playlist?list=PLabhy3yqJE_ZIP2uSYdal9a9ORZ6ZzW">
<label for="input-url" class="create__label-url label">
<img src="icons/info.svg" alt="">
<span>Enter the playlist URL copied from <a class="link" href="https://www.youtube.com/">YouTube</a></span>
</label>
<div class="create__checkbox-wrapper">
<input type="checkbox" class="checkbox" name="description" id="add-description">
<label for="add-description" class="label">Include video description</label>
</div>
<button class="create__btn btn" id="export-btn">Export</button>
</form>
</section>
<section class="export section" id="export">
<header class="section__header">
<h2 class="section__heading">Create playlist backup</h2>
<p class="section__desc">Export your YouTube playlist data to CSV file.</p>
</header>
<div class="export__content">
<div class="success">
<p class="success-text">Data exported successfully!</p>
</div>
<div class="export__info">
<div class="export__info-wrapper">
<p class="export__info-text">Title:</p>
<p class="export__info-bold" data-label="title"></p>
</div>
<div class="export__info-wrapper">
<p class="export__info-text">Author:</p>
<p class="export__info-bold" data-label="author"></p>
</div>
<div class="export__info-wrapper">
<p class="export__info-text">Videos:</p>
<p class="export__info-bold" data-label="videos"></p>
</div>
<div class="export__info-wrapper">
<p class="export__info-text">File size:</p>
<p class="export__info-bold" data-label="size"></p>
</div>
</div>
<a class="export__download-btn btn" id="download-btn">
<img src="icons/download.svg" alt="">
<p>Download</p>
</a>
</div>
</section>
<section class="find section" id="find">
<header class="section__header">
<h2 class="section__heading">Find missing videos</h2>
<p class="section__desc">Check what has been removed or added to the playlist since your backup.</p>
</header>
<form class="find__form">
<input type="file" class="find__input-file" id="input-file" name="input-file" accept=".csv">
<label for="input-file" class="find__label-file label">
<img src="icons/file.svg" alt="">
Choose your backup file
</label>
<button class="find__btn btn" id="check-btn">Check</button>
</form>
</section>
<section class="compare section" id="compare">
<header class="section__header">
<h2 class="section__heading">Find missing videos</h2>
<p class="section__desc">Check what has been removed or added to the playlist since your backup.</p>
</header>
<div class="compare__content">
<div class="success compare__success">
<p class="success-text">Comparing complete!</p>
</div>
<div class="compare__info">
<div class="compare__added">
<p class="compare__label">Added videos: <span class="success-text" id="added-counter">1</span></p>
<ul class="compare__list success-text" id="added-list">
</ul>
</div>
<div class="compare__removed">
<p class="compare__label">Removed videos: <span class="error-text" id="removed-counter">2</span></p>
<ul class="compare__list error-text" id="removed-list">
</ul>
</div>
</div>
<div class="compare__buttons">
<a class="compare__btn-update btn" id="update-btn">Update your backup</a>
<a class="compare__btn-download" id="download-changes-btn">Download changes</a>
</div>
</div>
</section>
</div>
<footer class="footer">
<p class="author"><a class="link" href="https://github.com/jolantahuba/YT-Backup">Github • Jolanta Huba</a></p>
</footer>
</div>
</body>
</html>