-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (53 loc) · 2.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1.0"> -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title>Our Wedding</title>
<link rel="stylesheet" type="text/css" href="styles.css">
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAejoSPyEpKsJAomFdfGmQB-kPZ4hEGYbU&callback=initMap" async defer></script>
</head>
<body>
<script>
function checkScreenSize() {
var screenWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
// Define the maximum screen size for a typical smartphone
var maxMobileSize = 768; // Adjust this value based on your requirements
if (screenWidth > maxMobileSize) {
document.styleSheets[0].insertRule(`
@font-face {
font-family: 'Fortune';
src: url('Fortune.otf') format('opentype');
}
`, 0);
} else {
// Insert your alternative code here if the screen size is smaller than the specified maximum
// For example: document.styleSheets[0].insertRule(`body { font-family: 'FallbackFont', sans-serif; }`, 0);
}
}
window.onload = checkScreenSize;
</script>
<div class="background-image left-image">
<!-- Your left background image goes here -->
</div>
<div class="background-image center-image">
<!-- Your center background image goes here -->
</div>
<div class="background-image right-image">
<!-- Your right background image goes here -->
</div>
<div class="content">
<h1 class="title">Myumee & Sanjid 's</h1>
<h2 class="title">Nikkah Ceremony</h2>
<h3 class="section">December 18th, 2023</h3>
<!-- <h3 class="date">September 15th, 2024</h3> -->
<div id="countdown"></div>
<p class="info">Hope to see you all here <a class="map-link" href="https://www.google.com/maps/place/Secret+Garden+Event+Spaces/@23.8326814,90.461227,17z/data=!4m15!1m8!3m7!1s0x3755c9a66f348681:0x5d89aaebf66e840a!2sSecret+Garden+Event+Spaces!8m2!3d23.8326814!4d90.4638019!10e1!16s%2Fg%2F11h942147s!3m5!1s0x3755c9a66f348681:0x5d89aaebf66e840a!8m2!3d23.8326814!4d90.4638019!16s%2Fg%2F11h942147s?entry=ttu" target="_blank">
<img class="map-icon" src="locationPin.png">
</a></p>
</div>
<div id="map"></div>
<script src="wedsite.js"></script>
</body>
</html>