-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
183 lines (163 loc) · 6.88 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Ultimate Frisbee - Home</title>
<link rel="stylesheet" href="CSS/hw1.css">
<link rel="icon" type="image/x-icon" href="CSS\Michigin.png">
</head>
<body>
<header>
<h1>Ulimate Frisbee</h1>
<nav>
<a href="index.html" class = "active">Home</a>
<a href="teams.html">Teams</a>
<a href="history.html">History</a>
<a href="http://www.usaultimate.org/index.html" target="_blank">USA Ultimate</a>
</nav>
</header>
<main>
<aside class = "left">
<a href="https://commons.wikimedia.org/wiki/File%3AUltimate_Frisbee%2C_Jul_2009_-_17.jpg"><img src="https://upload.wikimedia.org/wikipedia/commons/5/5d/Ultimate_Frisbee%2C_Jul_2009_-_19.jpg" alt="Creative Common Ultimate Photo" title="By Ed Yourdon [CC BY-SA 2.0 (http://creativecommons.org/licenses/by-sa/2.0)], via Wikimedia Commons"/> </a>
<a href="https://commons.wikimedia.org/wiki/File%3AUltimate_Frisbee_Colorado_Cup_2005.jpg"><img alt="Ultimate Frisbee Colorado Cup 2005" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Ultimate_Frisbee_Colorado_Cup_2005.jpg/512px-Ultimate_Frisbee_Colorado_Cup_2005.jpg"/></a>
<a href="https://www.flickr.com/photos/paradisecoastie/15409853738/" title="Ultimate Frisbee"><img src="https://farm4.staticflickr.com/3948/15409853738_7dbfbfbac7_k.jpg" alt="Ultimate Frisbee"></a>
</aside>
<section class = "right">
<h2>Watch your Head </h2>
<p>Ultimate Frisbee is a sport that I never played myself, but it's popularity is something hard to ignore in many Midwestern college towns. Students (and people who wish they were still students) spend the few briefs months of good weather, sprinting down fields, hurling frisbees, and yelling "Stack!!".</p>
<p>What I find much more entertaining is the large number of people who continue to play when the weather gets windy and the night sky darkens around oh....4:15pm. The sight of frisbees boomeranging in the wind is topped only by the knowledge that even when you can't seem, those same plastic discs of death are probably hurtling through the dark night sky at 8 or 9 o'clock in the evening.
</p>
<p>Ultimate Frisbee requires a great deal of stamina and dexterity. Not surprisingly, the <abbr title = "International Olympic Committee">IOC</abbr> officially recognized Ultimate as a sport in 2015. It can go up against other sports for inclusion in Olympic games.</p>
</section>
</main>
<!-------------------------------BUTTON LICENSE-------------------------->
<style>
.car-license-popup-button {
position: fixed;
top: 10%;
right: 20px;
height: 40px;
background: linear-gradient(240deg, #424242, #000000);
border: none;
border-radius: 20px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
cursor: pointer;
transition: top 0.3s ease-in-out;
font-size: 14px;
font-weight: bold;
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
padding: 0 15px;
color: rgb(255, 255, 255);
}
.car-license-popup-button.car-visible {
top: 20px;
}
.car-license-popup-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(10px);
justify-content: center;
align-items: center;
z-index: 1001;
}
.car-license-popup-content {
width: 55%;
padding: 20px;
background: #ffffff;
border-radius: 20px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
text-align: center;
max-width: 90%;
height: auto;
}
.car-license-popup-logo {
width: 100px;
height: auto;
margin-bottom: 20px;
border: none;
margin-top: auto;
}
.car-license-close-button {
width: 100px;
height: 40px;
margin-top: 20px;
padding: 10px 20px;
background: #3498db;
color: #ffffff;
border: none;
border-radius: 20px;
cursor: pointer;
transition: background 0.3s;
font-size: 14px;
}
.car-license-close-button:hover {
background: #2980b9;
}
.car-license-show-popup {
display: flex;
}
.car-license-popup-logo img
{
border: none;
}
</style>
<button id="carLicensePopupBtn" class="car-license-popup-button">License</button>
<div id="carLicensePopupOverlay" class="car-license-popup-overlay">
<div class="car-license-popup-content">
<img src="CSS\3D Black.png" alt="Company Logo" class="car-license-popup-logo" id="Li">
<h2>All rights reserved.</h2><br>
<p>This software is licensed under strict terms. Redistribution and use in source and binary forms, with or without modification, are strictly prohibited without express written permission from Chaudhary Abdul Rafay.</p><br>
<p>© 2024 AbdulRafay Chaudhry. </p>
<button id="carLicenseCloseBtn" class="car-license-close-button">Close</button>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const carLicensePopupBtn = document.getElementById("carLicensePopupBtn");
const carLicensePopupOverlay = document.getElementById("carLicensePopupOverlay");
const carLicenseCloseBtn = document.getElementById("carLicenseCloseBtn");
let carLicenseScrollTimer;
let carLicenseLastScrollTop = 0;
let carLicenseIsScrolling = false;
const carLicenseShowButton = () => {
carLicensePopupBtn.classList.add('car-visible');
};
const carLicenseHideButton = () => {
carLicensePopupBtn.classList.remove('car-visible');
};
window.addEventListener('scroll', () => {
let scrollTop = window.pageYOffset || document.documentElement.scrollTop;
if (scrollTop > carLicenseLastScrollTop && !carLicenseIsScrolling) {
carLicenseIsScrolling = true;
carLicenseShowButton();
}
carLicenseLastScrollTop = scrollTop;
clearTimeout(carLicenseScrollTimer);
carLicenseScrollTimer = setTimeout(() => {
carLicenseIsScrolling = false;
carLicenseHideButton();
}, 100);
});
carLicensePopupBtn.addEventListener("click", () => {
carLicensePopupOverlay.classList.add("car-license-show-popup");
});
carLicenseCloseBtn.addEventListener("click", () => {
carLicensePopupOverlay.classList.remove("car-license-show-popup");
});
carLicensePopupOverlay.addEventListener("click", (event) => {
if (event.target === carLicensePopupOverlay) {
carLicensePopupOverlay.classList.remove("car-license-show-popup");
}
});
});
</script>
</body>
</html>