-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
85 lines (68 loc) · 2.81 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
<!DOCTYPE html>
<html>
<head>
<title>Culture Craft</title>
<link rel="stylesheet" href="index.css"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Dancing+Script&family=Dosis:wght@600&family=Golos+Text&family=Montserrat:wght@300&family=Open+Sans:ital,wght@1,500&family=Raleway:wght@200;300&display=swap" rel="stylesheet">
</head>
<body>
<p style="background-image: url('./background.png');"></p>
<audio id="startSound">
<source src="./sound.mp3" type="audio/mpeg">
</audio>
<audio id="endSound">
<source src="./sound.mp3" type="audio/mpeg">
</audio>
<div class="main" id="Main">
<!-- <img src="logochhota.png" alt="alternatetext" class="vit-image">
<img class="qr1" id="qr1" src="qrcode.jpg">
<img class="qr2" id="qr2" src="qrcode.jpg"> -->
<!-- <img src="ac-logo.svg" alt="alternatetext" class="logo-image"> -->
<img src="backgrounds.png" alt="alternatetext" class="sprint-image">
<!-- <div class="front-container">
</div> -->
<div id="Text">
<div id="StartsIn">
<div class="st-in">Starting In</div>
<div id="Startcountdown" class="CD"></div>
</div>
<div id="EndsIn">
<div id="st-out" class="st-out">Time Remaining </div>
<div id="Endcountdown" class="CD"></div>
</div>
</div>
<div class="input" id="inp">
<input type="text" placeholder="Enter End Time (00:00:00 - format)" id="dateinp" required>
<button id="btn">Set Time</button>
</div>
<!-- <input type="button" id="trigger"></input> -->
<input type="button" id="trigger">
</div>
<script>
//alert("here1")
console.log("running")
const resizeOps = () => {
document.documentElement.style.setProperty("--vh", window.innerHeight * 0.01 + "px");
};
resizeOps();
window.addEventListener("resize", resizeOps);
// const qrCode = document.querySelector(".qr1");
//const qrCode1=document.getElementById("qr1");
//const qrCode2=document.getElementById("qr2");
//const qrCode3=document.getElementById("qr3");
//const qrCode4=document.getElementById("qr4");
//const startTime1 = new Date("2023-05-16T09:09:26:00"); // Replace with the actual start time of your event
const startTime1=new Date("Jul 29, 2023, 18:47:00");
if (Date.now() >= startTime1.getTime()) {
//alert("The event has already started. Please contact the event organizers for more details.");
//qrCode.classList.remove("hidden");
qrCode1.style.visibility="visible";
qrCode2.style.visibility="visible";
}
</script>
<script src="index.js"></script>
</body>
</html>