-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
120 lines (112 loc) · 3.25 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>GitHub Repo License Checker</title>
<LINK REL=StyleSheet HREF="style.css" TYPE="text/css">
<script type="text/javascript" src="analytics.js"></script>
</head>
<body>
<div class="importantstuff">
<h1>License Checker</h1>
<div id="instructions">
<p>Enter a GitHub username or organization name in the box below
and click the button! If you hit a rate limit error, get a token
<a href="https://github.com/settings/tokens">here</a> and put it in the token
box. A repo is considered "licensed" if it has a file whose name starts with
"LICENSE" or "COPYING" (any case) at the top level; sorry for any false
negatives.</p>
</div>
<form id="ghform">
<div id="enlarge">
<label for="ghuser">User or Organization: </label>
<input type="text" id="ghuser"/>
</div>
<br><br>
<label for="ghtoken">
<a href="https://github.com/settings/tokens/new">
Github API Token</a> (<i>optional</i>):
</label>
<input type="password" id="ghtoken"/> |
<label for="hideforks">Hide forks?</label>
<input type="checkbox" checked="true" id="hideforks"/>
<br>
<button type="submit">Stalk Repos</button>
<br>
</form>
<table id="results" style="display:none;">
<tr id="licenseheaders">
<th>
Please add LICENSE or COPYING files to:
</th>
<th>
Thank you for licensing:
</th>
</tr>
<tr id="licenseresults">
<td>
<ul id="lackslicense">
</ul>
</td>
<td>
<ul id="haslicense">
</ul>
</td>
</tr>
<tr id="readmeheaders">
<th>
Please add README files to:
</th>
<th>
Thank you for having a README in:
</th>
</tr>
<tr id="readmeresults">
<td >
<ul id="lacksreadme">
</ul>
</td>
<td>
<ul id="hasreadme">
</ul>
</td>
</tr>
<tr id="contribheaders">
<th>
It might be nice to add CONTRIBUTING files to:
</th>
<th>
Thank you for having CONTRIBUTING instructions in:
</th>
</tr>
<tr id="contribresults">
<td >
<ul id="lackscontrib">
</ul>
</td>
<td>
<ul id="hascontrib">
</ul>
</td>
</tr>
</table>
</div>
<div class="footer">
<ul id="messages">
</ul>
</div>
</table>
<div class="staydown" align=center>
<p> License checker by <a href="http://edunham.net/">edunham</a> , distributed
under the <a
href="https://github.com/edunham/pleaselicense/blob/master/LICENSE"> MIT
License</a>. The source is <a
href="https://github.com/edunham/pleaselicense"> on GitHub</a>, pull requests
welcome. GitHub has a neat blog related to this topic <a
href="https://github.com/blog/1964-open-source-license-usage-on-github-com">here</a>.
This page uses Google Analytics to track which usernames have been searched,
so that pretty graphs can be made later.</p> </div>
<script type="text/javascript" src="gh.js"></script>
</body>
</html>