-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
179 lines (169 loc) · 7.79 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Horizontal Navbar Example</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div class="container-fluid"> <!-- Main Container-->
<!-- Navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark rounded" style="margin-bottom: 10px;">
<div class="container-fluid">
<a class="navbar-brand" href="#">UKJOBS Analyser</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link active" href="#">Job Search</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Raw Data</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Pricing</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
</li>
</ul>
</div>
</div>
</nav> <!-- $Navbar -->
<!-- Search bar -->
<div class="row" style="margin-bottom: 10px;">
<div class="col">
<div class="card">
<div class="card-body" style="padding-bottom: 4px; padding-top: 4px;">
<form action="/submit" method="get">
<div class="row">
<div class="mb-3 col" >
<label for="Name" class="form-label">Name</label>
<input type="text" class="form-control" id="Name" aria-describedby="emailHelp" name="Name">
<div id="emailHelp" class="form-text">We'll never share your email with anyone else.</div>
</div>
<div class="mb-3 col" >
<label for="FamilyName" class="form-label">Fammily Name</label>
<input type="text" class="form-control" id="FamilyName" aria-describedby="emailHelp" name="FName">
<div id="emailHelp" class="form-text">We'll never share your email with anyone else.</div>
</div>
</div>
<div class="row">
<div class="mb-3 col" >
<label for="Location" class="form-label">Location</label>
<input type="text" class="form-control" id="Location" aria-describedby="emailHelp" name="Location">
<div id="emailHelp" class="form-text">We'll never share your email with anyone else.</div>
</div>
<div class="mb-3 col" >
<label for="EmailAddress" class="form-label">Email address</label>
<input type="email" class="form-control" id="EmailAddress" aria-describedby="emailHelp" name="Email">
<div id="emailHelp" class="form-text">We'll never share your email with anyone else.</div>
</div>
</div>
<div class="row">
<div class="mb-3 form-check col" style="margin-left: 10px;">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Check me out</label>
</div>
<div class="mb-3 form-check col" style="margin-left: 10px;">
<input type="checkbox" class="form-check-input" id="exampleCheck1">
<label class="form-check-label" for="exampleCheck1">Check me out</label>
</div>
</div>
<button type="submit" class="btn btn-primary">Submit</button>
</form>
</div>
</div>
</div>
</div> <!-- $Search bar -->
<!-- Chart Aria -->
<div class="row" style="margin-bottom: 10px;">
<div class="col">
<div class="card">
<div class="card-body row" style="padding-bottom: 4px; padding-top: 4px;">
<div class="card col" style="margin-right: 2px;">
<div class="card-body">
<h1>Chart 1:</h1>
<canvas id="myChart" width="400" height="200"></canvas>
</div>
</div>
<div class="card col" style="margin-left: 2px;">
<div class="card-body">
<h1>Chart 2:</h1>
<canvas id="barChart" width="400" height="200"></canvas>
</div>
</div>
</div>
</div>
</div>
</div> <!-- $Chart Aria -->
</div> <!-- $Main Container-->
<!-- Line Chart -->
<script>
// Sample data for the chart
var data = {
labels: ['January', 'February', 'March', 'April', 'May'],
datasets: [{
label: 'Sample Data',
data: [12, 19, 3, 5, 2],
borderColor: 'rgba(75, 192, 192, 1)',
borderWidth: 1,
fill: false
}]
};
// Chart configuration
var options = {
scales: {
y: {
beginAtZero: true
}
}
};
// Get the canvas element and create the chart
var ctx = document.getElementById('myChart').getContext('2d');
var myChart = new Chart(ctx, {
type: 'line',
data: data,
options: options
});
</script>
<!-- Bar Chart -->
<script>
// Generating random data for the bar chart
var labels = ['Category 1', 'Category 2', 'Category 3', 'Category 4', 'Category 5'];
var data = labels.map(function() {
return Math.floor(Math.random() * 50) + 10; // Random values between 10 and 60
});
// Bar chart configuration
var barData = {
labels: labels,
datasets: [{
label: 'Random Data',
data: data,
backgroundColor: 'rgba(75, 192, 192, 0.6)',
borderColor: 'rgba(75, 192, 192, 1)',
borderWidth: 1
}]
};
var barOptions = {
scales: {
y: {
beginAtZero: true
}
}
};
// Get the canvas element and create the bar chart
var barCtx = document.getElementById('barChart').getContext('2d');
var myBarChart = new Chart(barCtx, {
type: 'bar',
data: barData,
options: barOptions
});
</script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>