-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.ejs
114 lines (107 loc) · 7.43 KB
/
index.ejs
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
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>ShipRaider by @crackmyapi</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/shipraider.css"/>
</head>
<body >
<div class="container">
<div class="jumbotron">
<h1>Welcome to ShipRaider!</h1>
<p>I wrked well hard to get this cool stuff to u guyz, so pls show ur appreciation and send me bitcoin by clickin da button below.<br/>Enjoy, shipmates! @crackmyapi</p>
<p><a id="send-bitcoin-button" class="btn btn-<%= BOOTSTRAP_COLOR_CLASS %> btn-lg" href="#" role="button">Send Bitcoin to 3Nxwem9Z8Fc9BywxbnFip7f9v</a></p>
</div>
<form>
<div class="panel panel-<%= BOOTSTRAP_COLOR_CLASS %>">
<div class="panel-heading">CONFIGURATION FOR DEMO STAGE: <span id="demo-stage"><%= CURRENT_DEMO_STAGE_NAME %></span></div>
<div class="panel-body">
<div class="input-group">
<span class="input-group-addon" id="server-url">ShipFast API URL</span>
<input type="text" class="form-control" id="shipfast-api-url" aria-describedby="shipfast-api-url" value="<%= SHIPFAST_API_DEMO_STAGE_URL %>">
</div>
<div class="input-group">
<span class="input-group-addon" id="shipfast-api-key">ShipFast API Key</span>
<input type="text" class="form-control" id="shipfast-api-key-input" aria-describedby="shipfast-api-key" value="<%= API_KEY %>" readonly>
</div>
<div class="input-group">
<span class="input-group-addon" id="user-auth-token">User Auth Token</span>
<input type="text" class="form-control" id="user-auth-token-input" placeholder="stick ur auth token ere" aria-describedby="user-auth-token">
<span class="input-group-btn">
<button class="btn btn-<%= BOOTSTRAP_COLOR_CLASS %>" id="login-button" type="button">Login</button>
</span>
</div>
<div class="input-group">
<span class="input-group-addon" id="location-sweep-radius">Location Sweep Radius</span>
<input type="text" class="form-control" id="location-sweep-radius-input" placeholder="radius u wanna search 4 shipments" aria-describedby="location-sweep-radius" value="0.5">
</div>
<div class="input-group">
<span class="input-group-addon" id="location-sweep-step">Location Sweep Step</span>
<input type="text" class="form-control" id="location-sweep-step-input" aria-describedby="location-sweep-step" value="0.075">
</div>
<div class="input-group">
<span class="input-group-addon" id="location-latitude"><strong>Location Latitude</strong></span>
<input type="text" class="form-control" id="location-latitude-input" aria-describedby="location-latitude" value="<%= DRIVER_LATITUDE %>">
</div>
<div class="input-group">
<span class="input-group-addon" id="location-longitude"><strong>Location Longitude</strong></span>
<input type="text" class="form-control" id="location-longitude-input" aria-describedby="location-longitude" value="<%= DRIVER_LONGITUDE %>">
</div>
<div id="configuration-footer">
<button id="find-me" class="btn btn-default">Find my location <svg class="bi bi-geo-alt" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10zm0-7a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"/></svg></button>
<button id="search-shipments-button" type="submit" class="btn btn-<%= BOOTSTRAP_COLOR_CLASS %>">Search for Shipments! <span class="glyphicon glyphicon-search" aria-hidden="true"></span></button>
</div>
</div>
</div>
</form>
<div class="progress">
<div class="progress-bar progress-bar-striped active" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%">
<span id="progress-bar-text">0% Complete</span>
</div>
</div>
<div class="panel panel-<%= BOOTSTRAP_COLOR_CLASS %>">
<div class="panel-heading"><button id="refresh-shipments-button" type="submit" class="btn btn-<%= BOOTSTRAP_COLOR_CLASS %>">Results <span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></button></div>
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>ID</th>
<th>Description</th>
<th>Gratuity</th>
<th>Pickup From</th>
<th>Pickup Distance</th>
<th>Deliver To</th>
<th></th>
</tr>
</thead>
<tbody id="results-table-body">
</tbody>
</table>
</div>
</div>
</div>
</div>
</body>
<footer>
<script type="text/javascript">
const AUTH0_CLIENT_ID = "<%= AUTH0_CLIENT_ID %>";
const AUTH0_DOMAIN = "<%= AUTH0_DOMAIN %>";
const HMAC_SECRET = "<%= HMAC_SECRET %>";
const BOOTSTRAP_COLOR_CLASS = "<%= BOOTSTRAP_COLOR_CLASS %>";
const SHIPFAST_API_VERSION = "<%= SHIPFAST_API_VERSION %>";
const CURRENT_DEMO_STAGE = "<%= CURRENT_DEMO_STAGE %>";
const DEMO_STAGE_HMAC_STATIC_SECRET_PROTECTION = "<%= DEMO_STAGES.HMAC_STATIC_SECRET_PROTECTION %>";
const DEMO_STAGE_HMAC_DYNAMIC_SECRET_PROTECTION = "<%= DEMO_STAGES.HMAC_DYNAMIC_SECRET_PROTECTION %>";
</script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdn.auth0.com/js/auth0/8.10.1/auth0.min.js"></script>
<script type="text/javascript" src="https://cdn.auth0.com/js/lock/10.21.1/lock.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.9-1/crypto-js.min.js"></script>
<script type="text/javascript" src="js/geolocation.js"></script>
<script type="text/javascript" src="js/shipraider.js"></script>
</footer>
</html>