-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
85 lines (66 loc) · 3.65 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>On The Nose</title>
<!-- Load CSS libraries -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous"
/>
<link rel="stylesheet" href="css/style.css">
<!-- GOOGLE FONTS -->
<link href='https://fonts.googleapis.com/css?family=Roboto:400,100,300,500,400italic,300italic' rel='stylesheet' type='text/css'>
</head>
<body style="padding: 2vh">
<div class="container-fluid" >
<div class="row justify-content-center" style="height: 10vh;">
<div class="align-self-center">
<h1>ON THE NOSE</h1>
</div>
</div>
<div class="row" style="height: 70vh;margin:5vh 0 1vh 0 ">
<div class = "col justify-content-center" id = "bubble-vis">
</div>
</div>
<div class = "row justify-content-center" style="height: 4vh;margin:0 0 0vh 0 ">
<div class="btn-group btn-group-lg" id="aBtnGroup" role="group" aria-label="Basic example">
<button type="button" value="All" class="btn btn-secondary allButton active">Overview</button>
<button type="button" value="Records" class="btn btn-secondary recButton ">Record</button>
<button type="button" value="Year" class="btn btn-secondary yearButton ">Year</button>
<button type="button" value="Month" class="btn btn-secondary monthButton">Month</button>
<button type="button" value="Partners" class="btn btn-secondary partnerButton">Partners</button>
</div>
<!-- <div class="btn-lg">-->
<!-- <button type="button" id="labelToggle" class="btn btn-secondary labelToggle" value='on' onClick="toggleLabel()">Toggle Labels</button>-->
<!-- </div>-->
</div>
</div>
<!-- embedding JS libraries -->
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<!-- d3 -->
<script src="https://d3js.org/d3.v6.min.js"></script>
<script src="https://unpkg.com/d3-simple-slider"></script>
<script src="https://d3js.org/d3-scale-chromatic.v1.min.js"></script>
<!-- own js files -->
<script src="js/main.js"></script>
<script src="js/bubble_chart.js"></script>
<script>
// Get click event, assign button to var, and get values from that var
$('#aBtnGroup button').on('click', function() {
var thisBtn = $(this);
thisBtn.addClass('active').siblings().removeClass('active');
var btnText = thisBtn.text();
var btnValue = thisBtn.val();
updateSelectedGroup(thisBtn.val())
});
</script>
</body>
</html>