-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.mustache
43 lines (38 loc) · 1.77 KB
/
index.mustache
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
<html>
<head>
<title>Language details of the Firefox repo</title>
<meta name="description" content="How much Rust in Firefox?" />
<meta name="date" content="{{meta_date}}" />
<meta property="og:title" content="Language details of the Firefox repo" />
<meta property="og:description" content="How much Rust in Firefox?" />
<meta property="og:url" content="https://4e6.github.io/firefox-lang-stats/" />
<meta property="og:image" content="rustacean-orig-noshadow.png" />
<link rel="shortcut icon" href="rustacean-orig-noshadow.ico" type="image/x-icon" />
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Language', 'LOC']
{{#lang}}
, ['{{name}}', {{loc}}]
{{/lang}}
]);
var options = {
title: 'Firefox languages in SLOC'
};
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
chart.draw(data, options);
}
</script>
</head>
<body>
<a href="https://github.com/4e6/firefox-lang-stats"><img style="position: absolute; top: 0; left: 0; border: 0; z-index:100;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_darkblue_121621.png" alt="Fork me on GitHub"></a>
<div style="margin-left: 150px">
<h2>How much Rust in Firefox?</h2>
<p><a href="https://github.com/mozilla/gecko-dev">mozilla/gecko-dev</a> repository statistics on {{title_date}}</p>
</div>
<div id="piechart" style="width: 900px; height: 500px;"></div>
</body>
</html>