-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
247 lines (214 loc) · 7.91 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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
git mv README.md docs/<!DOCTYPE html>
<html lang="en">
<head>
<title>askTestudo</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<title>Centered GIF</title>
<style>
body {
position: relative;
display: flex;
justify-content: center;
background-image: url('public/md-flag-1920.webp');
background-size: cover;
background-repeat: no-repeat;
align-items: center;
height: 100vh;
margin: 0;
}
img {
position: absolute;
top: 0;
left: 50%;
transform: translateX(-50%);
max-width: 50%;
max-height: 50%;
}
#iframeContainer {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
display: flex;
justify-content: center;
align-items: center;
width: 30%; /* Adjust the width as needed */
height: 60vh; /* Adjust the height as needed */
border-radius: 15px; /* Add border-radius for rounded corners */
overflow: hidden; /* Hide content that exceeds rounded corners */
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3); /* Add box-shadow for a subtle elevation effect */
background-color: #fff; /* Set a background color */
cursor: move; /* Set cursor to indicate draggable */
transition: background-color 0.3s; /* Smooth transition for background-color change */
}
#iframeContainer:hover {
background-color: #e0e0e0; /* Change background color on hover */
}
#titleBox {
position: absolute;
top: 10px;
left: 20px;
font-size: 36px;
color: red;
font-family: "Poppins", sans-serif;
font-weight: 300;
font-style: normal;
overflow: hidden; /* Ensure the text doesn't overflow */
white-space: nowrap; /* Prevent line breaks */
padding: 10px; /* Add padding to create a bubble around the text */
background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
border-radius: 15px; /* Add rounded corners */
border-right: 3px solid white; /* Create a border for the typing effect */
animation: typing 5s steps(40, end) 1.5s forwards, blink-caret 4s step-end 15s infinite;
}
.fa-container {
position: fixed;
bottom: 20px;
right: 20px;
display: flex;
flex-direction: row;
align-items: flex-end;
}
.fa-box {
margin-right: 10px;
}
.fa {
padding: 20px;
font-size: 30px;
width: 30px;
text-align: center;
text-decoration: none;
border-radius: 50%;
}
.fa:hover {
opacity: 0.7;
}
.fa-facebook {
background-color: #3b5998;
}
.fa-twitter {
background-color: #1da1f2;
}
.fa-linkedin {
background-color: #0077b5;
}
.fa-instagram {
background-color: #c22498;
}
.fa-youtube-play {
background-color: #f40833;
}
#audioContainer {
position: fixed;
top: 20px;
right: 20px;
display: flex;
align-items: center;
}
#audio {
display: none; /* Initially hide the audio player */
}
.audio-button {
padding: 10px;
margin-left: 5px;
height: 75px;
width: 150px;
cursor: pointer;
background-color: rgb(218, 172, 4);
color: #fff;
border: none;
border-radius: 5px;
font-family: "Poppins", sans-serif;
font-size: 20px;
font-weight: 500;
}
@keyframes typing {
0% {
width: 0;
}
8% {
width: 8%;
}
16% {
width: 16%;
}
}
@keyframes blink-caret {
from,
to {
border-color: transparent;
}
5% {
border-color: white;
}
10% {
border-color: transparent;
}
}
/* Add custom styles for the countdown */
.custom-countdown {
font-size: 16px; /* Adjust the font size as needed */
padding: 5px 10px; /* Adjust the padding as needed */
}
</style>
</head>
<body>
<img src="public/testudo-gif-2.gif" alt="Centered GIF">
<div id="titleBox">askTestudo™</div>
<div id="animated-face"></div>
<div id="iframeContainer" draggable="true" ondragstart="drag(event)">
<iframe src="https://web.powerva.microsoft.com/environments/Default-c85487db-d5f3-45e1-9158-876d58525ccf/bots/crb0b_askTestudoDygo-b/webchat?__version__=2" frameborder="100" style="width: 100%; height: 100%;"></iframe>
</div>
<div class="fa-container">
<div class="fa-box"> <a href="https://www.facebook.com/UnivofMaryland" class="fa fa-facebook" target="_blank"></a>
</div>
<div class="fa-box"> <a href="https://twitter.com/UofMaryland" class="fa fa-twitter" target="_blank"></a> </div>
<div class="fa-box"> <a href="https://www.linkedin.com/school/university-of-maryland/mycompany/verification/"
class="fa fa-linkedin" target="_blank"></a> </div>
<div class="fa-box"> <a href="https://www.instagram.com/univofmaryland/" class="fa fa-instagram"
target="_blank"></a> </div>
<div class="fa-box"> <a href="https://www.youtube.com/@UofMaryland" class="fa fa-youtube-play" target="_blank"></a>
</div>
</div>
<div id="audioContainer">
<audio id="audio" controls>
<source src="public/MarylandVictorySong.mov" type="audio/mp3">
</audio>
<button id="audioButton" class="audio-button" onclick="toggleAudio()">Roll Terps!</button>
</div>
<script>
// Initialize the audio element with the source
const audio = new Audio('public/MarylandVictorySong.mov');
function drag(ev) {
ev.dataTransfer.setData("text/plain", ""); // Necessary for Firefox
}
document.addEventListener("dragover", function (event) {
event.preventDefault();
});
document.addEventListener("drop", function (event) {
event.preventDefault();
var data = event.dataTransfer.getData("text/plain");
var iframe = document.getElementById("iframeContainer");
var offsetX = event.clientX - iframe.offsetWidth / 10000;
var offsetY = event.clientY - iframe.offsetHeight / 10000;
iframe.style.left = offsetX + "px";
iframe.style.top = offsetY + "px";
});
function toggleAudio() {
var audioButton = document.getElementById("audioButton");
if (audio.paused) {
audio.play();
audioButton.textContent = "Unroll Terps";
} else {
audio.pause();
audioButton.textContent = "Roll Terps!";
}
}
</script>
</body>
</html>