-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsemantic_api.html
More file actions
113 lines (96 loc) · 4.07 KB
/
semantic_api.html
File metadata and controls
113 lines (96 loc) · 4.07 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Semantic API Data with Filters | Alcoholic Beverage Division - State of Iowa</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<style>
body {
font-family: 'Roboto', Arial, sans-serif;
background-color: #f8f9fa;
margin: 0;
padding: 0;
}
.container {
margin-top: 40px;
}
#output {
margin-top: 20px;
padding: 15px;
border: 1px solid #dee2e6;
border-radius: 5px;
background-color: #ffffff;
white-space: pre-wrap;
word-wrap: break-word;
max-height: 400px;
overflow-y: auto;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.form-control,
.form-select {
margin-bottom: 15px;
}
.btn-primary {
display: block;
width: 100%;
padding: 10px;
}
</style>
</head>
<body>
<div class="container">
<header class="text-center mb-4">
<h1 class="display-6">Semantic API Data Fetcher with Filters</h1>
<p class="text-muted">Alcoholic Beverage Division - State of Iowa</p>
</header>
<form id="filterForm">
<div class="row g-3">
<div class="col-md-6">
<label for="dateRange" class="form-label">Date Range</label>
<input type="text" id="dateRange" class="form-control" placeholder="e.g., last 6 months">
</div>
<div class="col-md-6">
<label for="granularity" class="form-label">Granularity</label>
<select id="granularity" class="form-select">
<option value="" selected>No Granularity</option>
<option value="day">Day</option>
<option value="week">Week</option>
<option value="month">Month</option>
<option value="year">Year</option>
</select>
</div>
<div class="col-md-4">
<label for="categoryName" class="form-label">Category Name</label>
<input type="text" id="categoryName" class="form-control" placeholder="e.g., Vodka">
</div>
<div class="col-md-4">
<label for="itemDescription" class="form-label">Item Description</label>
<input type="text" id="itemDescription" class="form-control" placeholder="e.g., Black Label">
</div>
<div class="col-md-4">
<label for="brandName" class="form-label">Brand Name</label>
<input type="text" id="brandName" class="form-control" placeholder="e.g., Smirnoff">
</div>
<div class="col-md-6">
<label for="vendorName" class="form-label">Vendor Name</label>
<input type="text" id="vendorName" class="form-control" placeholder="e.g., Diageo">
</div>
<div class="col-md-6">
<label for="storeName" class="form-label">Store Name</label>
<input type="text" id="storeName" class="form-control" placeholder="e.g., Hy-Vee">
</div>
<div class="col-12">
<button type="button" id="fetchDataButton" class="btn btn-primary">Fetch Data (or press Enter)</button>
</div>
</div>
</form>
<section class="mt-4">
<h4>JSON-formatted data from the Cube API:</h4>
<div id="output">Awaiting user input...</div>
</section>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<script src="src/cube_api.js"></script>
</body>
</html>