forked from techgaun/active-forks
-
Notifications
You must be signed in to change notification settings - Fork 13
/
index.html
126 lines (113 loc) · 6.48 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
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<title>Active GitHub Forks</title>
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.19/css/jquery.dataTables.min.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js" integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/datatables/1.10.19/js/jquery.dataTables.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js"></script>
<style>
body {
padding-top: 2rem;
padding-bottom: 2rem;
}
.black {
color: #292b2c;
}
.popover {
max-width: 60% !important;
}
.quota {
font-size: 13px;
}
.options-button:after {
font-family: "FontAwesome";
content: "\f105";
float: right;
margin-left: 5px;
width: 8px;
}
.options-button.options-button--expanded:after {
content: "\f107";
}
.original-repo td {
font-weight: bold;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-12 col-lg-12">
<div class="card">
<div class="card-header text-center">
<h3>
<a href="https://github.com/lukaszmn/active-forks" class="black">
<i class="fa fa-github-alt pull-left" aria-hidden="true"></i>
</a>
Active GitHub Forks
</h3>
</div>
<div class="card-block">
<div class="form-group">
<form id="form" role="form">
<div class="input-group">
<input id="q" name="q" class="form-control" type="text" placeholder="techgaun/active-forks">
<span class="input-group-btn">
<button id="find" onClick="fetchData()" type="button" class="btn btn-primary">
<i id="spinner" class="fa fa-spinner fa-pulse fa-fw d-none"></i>
<span class="find-label">Find</span>
</button>
</span>
</div>
<div class="input-group mt-2">
<input id="token" name="token" class="form-control" type="text" placeholder="Auth Token">
<span class="input-group-btn">
<a href="https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line" class="btn btn-success" target="_blank">
Info
</a>
<a class="btn btn-primary options-button" data-toggle="collapse" href="#options" role="button" aria-expanded="false" aria-controls="options">
Options
</a>
</span>
<span class="quota ml-3">
</span>
</div>
<div class="options collapse mt-2 px-3" id="options">
<div class="card bg-light card-body">
<div class="form-inline">
<label for="maxRecords">Max records:</label>
<input id="maxRecords" name="maxRecords" class="form-control ml-3 mr-5" type="number" min="10">
<label>Assume same commits if:</label>
<input id="sameSize" name="sameSize" class="form-check-input ml-3" type="checkbox">
<label for="sameSize" class="form-check-label">Same Size</label>
<input id="samePushDate" name="samePushDate" class="form-check-input ml-3" type="checkbox">
<label for="samePushDate" class="form-check-label">Same Push Date</label>
</div>
</div>
</div>
<div class="progress mt-2">
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width: 0%;">
0 / 0
</div>
</div>
</form>
</div>
<div id="data-body"></div>
<table id="forkTable" class="display" width="100%"></table>
</div>
<div id="footer" class="card-footer text-muted"></div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js/main.js"></script>
</body>