-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprize.html
76 lines (56 loc) · 2.2 KB
/
prize.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
<!--
There's no place like ~
Author: Saloni Goel, 2020
-->
<html>
<head>
<title>Happy Birthday!</title>
<!-- css -->
<link rel="stylesheet" type="text/css" href="data/bingo.css">
<!-- priza data -->
<script src="data/prize.txt"></script>
<!-- Font & Website logo -->
<link href='https://fonts.googleapis.com/css?family=Playfair+Display' rel='stylesheet'>
<link href='https://fonts.googleapis.com/css?family=DM+Mono' rel='stylesheet'>
<link rel="icon" href="https://img.icons8.com/flat_round/64/000000/whale--v1.png">
</head>
<body>
<h1>Happy Birthday!</h1>
<noscript>
<div class="error">
<strong>Problem:</strong>
<p><em>
You do not have JavaScript enabled. JavaScript must be enabled for this application to work.
</em></p>
</div>
</noscript>
<iframe id="drive" src="" width="640" height="480" style="display: none; margin:auto;"></iframe>
<br><br>
<iframe id="youtube" src="" width="640" height="480" style="display: none; margin:auto;"></iframe>
<br><br>
<iframe id="google-image" src="" width="640" height="480" frameBorder="0" style="display: none; margin:auto;"></iframe>
<br><br>
<h2>
<a href="" id="link" style="display: none;"></a>
</h2>
<script>
if (hyperlink) {
document.getElementById("link").style.display = "block";
document.getElementById("link").href = hyperlink;
if (hyperlink_text) document.getElementById("link").innerHTML = hyperlink_text;
}
if (google_drive_media_hash) {
document.getElementById("drive").style.display = "block";
document.getElementById("drive").src = "https://drive.google.com/file/d/" + google_drive_media_hash + "/preview";
}
if (youtube_video_hash) {
document.getElementById("youtube").style.display = "block";
document.getElementById("youtube").src = "https://www.youtube.com/embed/" + youtube_video_hash;
}
if (google_image_link) {
document.getElementById("google-image").style.display = "block";
document.getElementById("google-image").src = google_image_link;
}
</script>
</body>
</html>