-
Notifications
You must be signed in to change notification settings - Fork 18
/
index.html
104 lines (92 loc) · 4.5 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>Tabs or Spaces</title>
<meta name="description" content="Top Github repos have been analysed to understand which whitespace types are most common in different programming languages">
<meta name="author" content="Uku Pattak">
<link rel="shortcut icon" href="web/fav.png" type="image/png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/pure/0.6.0/pure-min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="web/index.css">
</head>
<body>
<header>
<div class="pure-g">
<div class="pure-u-1-3">
<h1 class="tabs">\t</h1>
</div>
<div class="pure-u-1-3"></div>
<div class="pure-u-1-3">
<h1 class="spaces">\s</h1>
</div>
<div class="pure-u-1-3 long-title">
<h2>Tabs</h2>
</div>
<div class="pure-u-1-3 vs">
<h2>or</h2>
</div>
<div class="pure-u-1-3 long-title">
<h2>Spaces</h2>
</div>
</div>
<h3>The Top Starred repositories in Github have been analysed to understand which are the most common whitespace types in different programming languages.</h3>
</header>
<main>
<section id="charts">
<div class="loading" v-bind:class="{ 'hide': languages}">
<i class="fa fa-refresh fa-spin"></i>
</div>
<div class="chart" v-for="language in languages | orderBy 'name'" v-bind:class="{ 'show': languages}">
<h2>
<a href="https://github.com/search?l={{ encodeURIComponent(language.name) }}&q=stars%3A%3E1&s=stars&type=Repositories" target="_blank">
{{ language.name }}
</a>
</h2>
<h3>
Analysed <span class="amount">{{ language.analysedReposAmount }}</span> repositories
</h3>
<canvas id="{{ language.name }}Chart" width="300" height="300"></canvas>
</div>
</section>
<section class="legend">
<div class="tab-1">
<i class="fa fa-circle"></i> Tabs
</div>
<div class="spaces-2">
<i class="fa fa-circle"></i> 2 Spaces
</div>
<div class="spaces-3">
<i class="fa fa-circle"></i> 3 Spaces
</div>
<div class="spaces-4">
<i class="fa fa-circle"></i> 4 Spaces
</div>
<div class="spaces-8">
<i class="fa fa-circle"></i> 8 Spaces
</div>
<iframe src="https://ghbtns.com/github-btn.html?user=ukupat&repo=tabs-or-spaces&type=star&count=true&" frameborder="0" scrolling="0" width="100px" height="30px"></iframe>
</section>
</main>
<footer>
<iframe src="https://ghbtns.com/github-btn.html?user=ukupat&repo=tabs-or-spaces&type=star&count=true&size=large" frameborder="0" scrolling="0" width="140px" height="30px"></iframe>
<a href="https://github.com/ukupat/tabs-or-spaces/issues/new" target="_blank">Require an analysis for a new language</a>
<a href="https://github.com/ukupat" target="_blank">Check out the author</a>
<a href="https://github.com/ukupat/tabs-or-spaces" target="_blank">Review the source code</a>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.11/vue.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue-resource/0.1.17/vue-resource.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js"></script>
<script src="web/index.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-71688406-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>