-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconnect.html
More file actions
54 lines (44 loc) · 1.59 KB
/
Copy pathconnect.html
File metadata and controls
54 lines (44 loc) · 1.59 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>replit</title>
<link href="connect.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="Connect-NY-200">
<div id="itinerary-display"></div>
<p>Scan to join Discord group. Once you join, navigate to the correct channel to begin connecting.</p>
</div>
<div class="qr-container">
<img src="qrcode.png" alt="QR" class="centered-image-qr">
</div>
<div class="button-container">
<div class="button">
<button class="return-button" onclick="goBack()">Go back<br>(extend both arms out)</button>
</div>
<div class="exit-button">
<button onclick="location.href='index.html'">Exit<br>(raise both arms up)</button>
</div>
</div>
<script>
// Function to get URL parameter value
function getParameterByName(name) {
const urlParams = new URLSearchParams(window.location.search);
return urlParams.get(name);
}
// Get the value of the 'button' parameter from the URL
const cityName = getParameterByName('cityName');
const budgetAmount = getParameterByName('budgetAmount');
// Display the value
document.getElementById('itinerary-display').innerText = 'Connect with others going to ' + cityName + ' with a budget of ' + budgetAmount + '!';
// Function to go back
function goBack() {
// Navigate back to anotherfile.html
window.location.href = 'budget.html?cityName=' + cityName + '&budgetAmount=' + budgetAmount;
}
</script>
</body>
<script src="connect.js"></script>
</html>