-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (52 loc) · 2.51 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="description" content="A processor that takes a YouTube video link and turns it into a snippet of embed code" />
<meta name="author" content="Xander Dukes" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>APR Announcements Embed Processor</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<script src="main.js"></script>
</head>
<body>
<main class="fluid-container position-relative min-vh-100">
<header class="pt-5 px-5 text-center">
<h1>APR Morning Announcements Embed Processor</h1>
<hr class="border border-primary border-2 opacity-50">
</header>
<section class="fluid-container mt-4 mx-5">
<p>Paste a YouTube video link here:</p>
<form onsubmit="GenerateEmbed(); return false;">
<input type="text" id="videoLink">
<input type="submit" value="Submit">
</form>
<p>Please note that only YouTube links work!</p>
</section>
<div>
<section class="fluid-container mt-2 mx-5" id="partOne" style="display:none;">
<h2>Embed Test</h2>
<div id="embeddedVideo"></div>
<p>Please confirm that the embedded video above works before copying the code:</p>
<form onsubmit="DisplayCode(); return false;">
<input type="submit" value="Confirm">
</form>
</section>
<section class="fluid-container my-4 mx-5" id="partTwo" style="display:none;">
<h2>Generated Code</h2>
<article class="container ms-0 me-auto position-relative border p-3 rounded text-wrap clearfix" style="width:auto;max-width:1024px;">
<span class="d-inline" id="codeDisplay"></span>
<form class="d-inline float-end" onsubmit="CopyEmbed(); return false;">
<input type="submit" value="Copy">
</form>
</article>
</section>
</div>
</main>
<footer class="fluid-container position-relative bottom-0 w-100 p-4 text-center">
<hr class="border border-primary border-1 opacity-25 w-75 mx-auto">
<p class="m-0 p-1">Built by Xander Dukes</p>
<a class="m-0 p-1" href="https://github.com/xander2005/APR-Embed-Processor" target="_blank">View source on GitHub</a>
</footer>
</body>
</html>