-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
147 lines (147 loc) · 7.54 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Triple - Offers</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<!-- Font Awesome -->
<link
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
rel="stylesheet"
/>
<!-- Google Fonts -->
<link
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
rel="stylesheet"
/>
<!-- MDB -->
<link
href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/6.0.1/mdb.min.css"
rel="stylesheet"
/>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="apple-touch-icon" sizes="76x76" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="mask-icon" href="safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
</head>
<body onload="getCategories()">
<div class="container-fluid">
<div class="row" id="title_row" style="min-width: 80%; margin-right: auto; margin-left: auto;
padding-top: 20px; padding-bottom: 10px; max-width: 980px;">
<div>
<button class="btn-sm btn-secondary" style="background-color: white; border: 0px;" id="triplemenu-button" data-bs-toggle="collapse"
data-bs-target="#triplemenu" aria-expanded="false" aria-controls="collapseFilters">
<img src="assets/images/triple_logo.svg" class="img-fluid"
style="max-height: 40px; display: block; object-fit: fill;"
loading="lazy" alt="triple logo">
</button>
</div>
<div class="collapse" id="triplemenu" style="background-color: whitesmoke;">
<div style="margin-top: 10px; margin-bottom: 10px;">
<!--<div style="margin-top: 5px; margin-bottom: 5px;"><button type="button" class="btn btn-secondary btn-sm" onclick="getUserOffersPreferences()">My Offers Preferences</button></div>-->
<div style="margin-top: 5px; margin-bottom: 5px;"><button type="button" class="btn btn-warning btn-sm" onclick="calculateUserRecommendations()">Update My Offers Recommendations</button></div>
<div style="margin-top: 5px; margin-bottom: 5px;"><button type="button" class="btn btn-danger btn-sm" onclick="resetUserPreferences()">Reset My Offers Preferences</button></div>
</div>
</div>
</div>
<div class="row" id="search_bar_row" style="min-width: 80%; margin-right: auto; margin-left: auto;
padding-top: 10px; padding-bottom: 10px; max-width: 980px;">
<div class="input-group">
<div class="form-outline">
<input type="search" id="searchbar" class="form-control"/>
<label class="form-label" for="searchbar">Search</label>
</div>
<button type="button" class="btn btn-primary" onclick="get_user_location()">
<i class="fas fa-search"></i>
</button>
</div>
</div>
<div class="row" id="results_row" style="min-width: 80%; margin-right: auto; margin-left: auto;
padding-top: 10px; padding-bottom: 10px; max-width: 980px;">
<div class="form-inline" style="margin-bottom: 10px;">
<button class="btn-sm btn-secondary" id="filter-button" data-bs-toggle="collapse"
data-bs-target="#search-filters" aria-expanded="false" aria-controls="collapseFilters">
<i class="fas fa-filter"></i>
</button>
<label for="filter-button" style="margin-left: 20px;">Results</label>
</div>
<div class="collapse" id="search-filters" style="background-color: whitesmoke;">
<div class="input-group input-group-sm mb-3" style="margin-top: 10px; margin-bottom: 10px;">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="inperson-switch" checked>
<label class="form-check-label" for="inperson-switch" style="font-size: 0.800em;">In-Person
Only</label>
</div>
</div>
<div id="categories_radio_buttons">
<label class="form-label" style="margin-top: 10px; font-size: 0.875em;" id="categegoy-filters">Categories</label>
<div class="form-check" id="all-category-filters">
<input class="form-check-input" type="radio" name="flexRadioDefault" id="all-category-radio" checked/>
<label class="form-check-label" for="all-category-radio" style="font-size: 0.800em;"> All </label>
</div>
</div>
<table style="width: 100%;">
<tr>
<td style="float: right;">
<button class="btn-sm btn-secondary" id="apply-filter-button" data-bs-toggle="collapse"
data-bs-target="#search-filters" aria-expanded="false" aria-controls="collapseFilters"
style="margin-bottom: 5px;" onclick="getOffersWithCategories()">
<i class="far fa-arrow-alt-circle-right"></i>
</button>
</td>
</tr>
</table>
</div>
<div id="results_cards">
<!-- Here come the result cards -->
</div>
<div>
<table style="width: 100%;">
<tr style="text-align: center;">
<td id="more-offer-cell">
<button type="button" class="btn btn-info btn-sm" style="margin-top: 10px;" id="more-offers-button" onclick="getMoreOffers()">More Offers</button>
</td>
</tr>
</table>
</div>
</div>
<!-- Offer Details Modal -->
<div class="modal fade" id="detailsModal" tabindex="-1" aria-labelledby="detailsModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel" style="font-size: 0.900em;">Offer Details</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"
onclick="eraseModal()"></button>
</div>
<div class="modal-body" id="detailsModalBody">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal" onclick="eraseModal()">
Close
</button>
</div>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4"
crossorigin="anonymous">
</script>
<!-- MDB -->
<script
type="text/javascript"
src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/6.0.1/mdb.min.js"
></script>
<script
type="text/javascript"
src="assets/js/get-offers.js"
></script>
</body>
</html>