-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
158 lines (150 loc) · 8.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other
head content must come *after* these tags -->
<title>Analytics Dashboard</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="bootstrap/css/bootstrap-theme.min.css">
<style>
h2 { text-align: center; font-size: 19pt; background-color: rgba(49,37,152,0.8);
color: #fff; border-radius: 1pt 1pt 1pt 1pt; padding: 14px; }
.container-fluid { padding: 0px; }
.navbar, .navbar-default { padding: 5pt; background-color: rgba(49,37,152,0.8) !important; color: #fff !important; font-size: 12pt; }
.navbar-default li:hover { background-color: red !important; font-weight: bold; }
.navbar, .navbar-default li a { color: #000 !important; }
.navbar-default .navbar-brand { color: #fff; font-size: 15pt; }
.navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { color: #fff; }
div[id^="chart_div"] > div > div { margin: auto; }
.footer { background-color: rgba(49,37,152,0.8); min-height: 200px; color: #fff !important; }
.footer ul a { color: #fff !important; }
.selected { background-color: aliceblue; font-weight: bold; }
pre { white-space: pre-wrap; }
</style>
<!--Load the AJAX API-->
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script src="https://www.google.com/jsapi"></script>
<script>
// Load the Visualization API and the corechart package.
google.charts.load("current", {"packages":["corechart"]});
google.charts.setOnLoadCallback(drawChartAll);
function drawChartAll() {
// Create the data table.
var data = new google.visualization.DataTable();
data.addColumn("string", "Schema count");
data.addColumn("number", "Values");
data.addRows([[".html", 2], ["folders", 6], [".css", 4], [".map", 4], [".js", 4], [".woff", 1], [".eot", 1], [".woff2", 1], [".ttf", 1], [".svg", 1], [".txt", 3], [".iml", 1], [".md", 1], [".xsd", 10], [".rb", 1]]);
// Set chart options
var options = {"title": "Branch gh-pages count of files grouped by file type",
is3D: true,
"pieSliceText": "value",
"width": 400,
"height": 330,
"titleTextStyle": { "color": "black" } };
// Instantiate and draw our chart, passing in some options.
var chart = new google.visualization.PieChart(document.getElementById("chart_div_all"));
chart.draw(data, options);
}
google.charts.setOnLoadCallback(draw_chart_histogram);
function draw_chart_histogram(){
var data = google.visualization.arrayToDataTable([["Date", "Amount"], ["2021-03-05", 2], ["2018-02-16", 2], ["2018-01-10", 1], ["2018-01-08", 1], ["2018-01-04", 1], ["2018-01-02", 1], ["2017-11-01", 1], ["2017-09-01", 1], ["2017-04-27", 1], ["2017-04-26", 1], ["2017-04-24", 1], ["2017-04-23", 1], ["2017-04-20", 1], ["2017-04-19", 1], ["2017-04-17", 6], ["2017-04-16", 2], ["2017-04-11", 1], ["2017-03-29", 6], ["2017-03-24", 2], ["2017-03-22", 1], ["2017-02-11", 2], ["2017-01-27", 1], ["2017-01-24", 4], ["2016-12-25", 1], ["2016-12-24", 1], ["2016-12-22", 5], ["2016-12-20", 1], ["2016-12-19", 4], ["2016-12-18", 1], ["2016-11-09", 2], ["2016-11-08", 14], ["2016-11-07", 4]]);
var options = {
title: "Histogram of commits by amount",
legend: { position: "top", maxLines: 2 },
};
var chart = new google.visualization.Histogram(document.getElementById("chart_div_hist"));
chart.draw(data, options);
}
</script>
</head>
<body>
<!-- Static navbar -->
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#" id="head1">Analytics Dashboard</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li><a href="index.html">Home</a></li>
<li><a href="index1.html">Charts</a></li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<h2>Featured Statistics</h2>
<pre>
<code>
github.com/AlDanial/cloc v 1.88 T=0.14 s (197.3 files/s, 91497.8 lines/s)
-------------------------------------------------------------------------------
Language files blank comment code
-------------------------------------------------------------------------------
CSS 4 7 24 7326
JavaScript 4 582 205 1614
HTML 2 157 16 1165
XSD 10 73 40 1029
Ruby 1 5 32 316
SVG 1 0 0 288
XML 5 0 0 77
Markdown 1 10 0 18
-------------------------------------------------------------------------------
SUM: 28 834 317 11833
-------------------------------------------------------------------------------
</code>
</pre>
<div class="row">
<div class="col-sm-6 col-md-4 col-lg-3" id="chart_div_all"></div>
<div class="col-sm-6 col-md-4 col-lg-3" id="chart_div_hist" style="width: 600px; height: 400px;"></div>
</div>
</div>
<footer class="footer">
<div class="container">
<ul class="list-unstyled">
<li>
<a class="github-button" href="https://github.com/jbampton" data-size="large" data-show-count="true" aria-label="Follow @jbampton on GitHub">Follow @jbampton</a>
</li>
<li>
<a class="github-button" href="https://github.com/jbampton/dashboard" data-icon="octicon-star" data-size="large" data-show-count="true" aria-label="Star jbampton/dashboard on GitHub">Star</a>
</li>
<li><a href="#head1">Back to top</a></li>
<li><a href="index.html">Home</a></li>
<li><a href="index1.html">Charts</a></li>
<li class="nuchecker"><a href="#" rel="noopener">Valid HTML</a></li>
</ul>
</div>
</footer>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="bootstrap/js/jquery.min.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="bootstrap/js/bootstrap.min.js"></script>
<script>
$(document).ready(function () {
"use strict";
var last = $(location).attr("href").split("/").pop().split(".")[0].replace(/index/, "");
var tab = 1;
if (last !== "") {
tab = parseInt(last) + 1;
}
$(".navbar-nav li:nth-child(" + tab + ")").addClass("selected");
tab--;
if (tab === 0) {
tab = "";
}
$(".nuchecker a").attr("href", "https://validator.w3.org/nu/?doc=https%3A%2F%2Fslurpcode.github.io%2Fdashboard%2Findex" + tab + ".html");
});
</script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</body>
</html>