-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
91 lines (91 loc) · 4.71 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GEO Track App</title>
<link rel="icon" type="image/x-icon" href="https://pubnubdevelopers.github.io/Geolocation-Demo/images/favicon.ico">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
<link href='https://fonts.googleapis.com/css?family=Poppins' rel='stylesheet'>
<script src="https://cdn.pubnub.com/sdk/javascript/pubnub.7.2.3.min.js"></script>
</head>
<body>
<div class="container">
<!--<h1>GEO Track App - Real-time Locating Service</h1>-->
<br>
<div class="row">
<div class="col" >
<span class="custom-bubble">
<span id="active-label">0</span> active user(s)
</span>
</div>
<div class="col" style="text-align: right;">
<span id="geo-channel-id">GEO-Channel ID</span><span id="channel-label" class="custom-bubble">XXXXX</span>
</div>
</div>
<br>
<div class="row justify-content-center">
<div id="map-canvas-div" class="col-lg-9">
<div id="map-canvas" style="width:100%;height:100%"></div>
</div>
<div id="location-details-div" class="col-lg-3">
<div id="location-header-div">
<img id="location-header-image" src="images/openai.png">
<h4 id="location-header">Learn more about your location powered by PubNub and ChatGPT</h4>
</div>
<textarea id="location-details-text" class="form-control" rows="17" readonly>Waiting for location updates...</textarea>
</div>
</div>
<br>
<div class="row justify-content-start">
<div class="col-auto">
<button type="button" class="btn btn-create-new" id="newsession">Create new session</button>
</div>
<div class="col-auto my-2 my-sm-0 px-sm-0">
<button type="button" class="btn btn-invite " id="newinvite">Email invite link</button>
<button type="button" class="btn btn-invite mx-2" id="newinvitelink">Copy invite link</button>
</div>
</div>
<br>
<div class="row">
<div class="col">
<h3>Settings</h3>
<div class="form-check form-switch mb-2">
<input class="form-check-input" type="checkbox" id="locationshareswitch">
<label class="form-check-label" for="locationshareswitch">Don't Update My Location</label>
</div>
<div class="form-check form-switch mb-2">
<input class="form-check-input" type="checkbox" id="fitviewswitch" checked>
<label class="form-check-label" for="fitviewswitch">Auto Fit View</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" id="plotnewswitch">
<label class="form-check-label" for="plotnewswitch">Plot New Paths</label>
</div>
<br>
</div>
<div class="col-lg-8 col-md-6">
<h3>User details</h3>
<span class="user-details-label">Username</span>
<div class="mb-3 input-group">
<input type="text" class="form-control" placeholder="Enter a new username" id="input-changeusername">
<div class="input-group-append">
<button class="btn btn-outline-secondary user-details-button" type="button" id="button-changeusername">Update</button>
</div>
</div>
<span class="user-details-label">Greeting message</span>
<div class="mb-3 input-group">
<input type="text" class="form-control" placeholder="Enter a new greeting" id="input-greet">
<div class="input-group-append">
<button class="btn btn-outline-secondary user-details-button" type="button" id="send-greet">Update</button>
</div>
</div>
</div>
</div>
</div>
<script src="js/app.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY_HERE&callback=initialize&libraries=geometry"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body>
</html>