-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
257 lines (222 loc) · 11.3 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!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.0">
<meta name="description" content="">
<meta name="author" content="">
<title>gitlapse</title>
<!-- Bootstrap core CSS
<link href="css/bootstrap.css" rel="stylesheet">
-->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link href="css/font-awesome.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/main.css" rel="stylesheet">
<link rel="stylesheet" href="css/tty-player.css">
<link rel="apple-touch-icon" sizes="57x57" href="img/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="img/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="img/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="img/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="img/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="img/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="img/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="img/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="img/apple-icon-180x180.png">
<link rel="icon" type="image/png" sizes="192x192" href="img/android-icon-192x192.png">
<link rel="icon" type="image/png" sizes="32x32" href="img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="img/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="img/favicon-16x16.png">
<link rel="manifest" href="img/manifest.json">
<meta name="msapplication-TileColor" content="#ffffff">
<meta name="msapplication-TileImage" content="img/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<script src="https://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="js/libs/chart.js"></script>
<script src="js/libs/term.js"></script>
<script src="js/libs/tty-player.js"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
<![endif]-->
</head>
<body class="container-fluid centered">
<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<!--
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
-->
<a herf="http://www.gitlapse.com"><img style= "height: 60px; width: auto;" src="img/logo.png"/>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog gitlapse-modal" role="document">
<div class="modal-content">
<!--
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Modal title</h4>
</div>
-->
<div class="modal-body container-fluid">
<span class="centered">
<tty-player controls loop src="data:application/x-ttyrec;base64,AAAAAAttCwCBAAAAG1sxbRtbN20lG1syN20bWzFtG1ttICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgDSANAAAAACNtCwAXAAAAG10yO2NocmlzQGR1b25leDogL3RtcAcAAAAAZDsMAC4AAAANG1ttG1syN20bWzI0bRtbSg0KG1swMTszMm0bWzQ1bS90bXAbWzAwbSQgG1tLAAAAAJk7DAACAAAAGz0DAAAAg4QBAAEAAABwAwAAAOSsAgADAAAACHBhAwAAAOI2BAABAAAAYwMAAADmNAcAAQAAAGEDAAAA6voIAAEAAAB1AwAAAFxvCgABAAAAcgMAAADNDQwAAQAAACADAAAARQAOAAEAAAAtBAAAAE4/AgABAAAAUwQAAACEZwUAAQAAAHMEAAAARmcHAAEAAAAgBAAAALt4CwABAAAAdAQAAACvtA0AAQAAAHQEAAAA29oOAAEAAAB5BQAAAGhKAgABAAAAcgUAAADOlwMAAQAAAGUFAAAAOiIGAAEAAABjBQAAAH5RCQAbAAAAGz4NDQobXTI7cGFjYXVyIC1TcyB0dHlyZWMHBwAAAOoECACKAwAAG1sxOzM1bWF1ci8bWzBtG1sxbXR0eXJlYyAbWzE7MzJtMS4wLjgtMhtbMG0gKDM0KQ0KICAgIEEgdHR5IHJlY29yZGVyIGFuZCBwbGF5ZXINChtbMTszNW1hdXIvG1swbRtbMW10ZXJtcmVjIBtbMTszMm0wLjE3LTEbWzBtICgxMSkNCiAgICBBIHNldCBvZiB0b29scyBmb3IgcmVjb3JkaW5nL3JlcGx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AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgDSANG10yO2NocmlzQGR1b25leDogL3RtcAcHAAAAx7wIADAAAAANG1ttG1syN20bWzI0bRtbSg0KG1swMTszMm0bWzQ1bS90bXAbWzAwbSQgG1tLGz0IAAAAnV8IAAMAAAANDQo="></tty-player>
</span>
<!--
<tty-player autoplay controls poster loop src="data:application/x-ttyrec;base64,DATA/lapses/a48ef87480c687bb698d5b44c9d85842ae7e3c63_b495a649e1219b0314116325b25b328a7e6dff7c"></tty-player>
<tty-player controls src="vim.ttyrec" poster=npt:16.54></tty-player>
<tty-player autoplay controls loop src=tty-screencast.ttyrec></tty-player>
-->
</div>
<!--
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
-->
</div>
</div>
</div>
</br>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.1/css/bootstrap-select.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.1/js/bootstrap-select.min.js"></script>
<!-- (Optional) Latest compiled and minified JavaScript translation files -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.1/js/i18n/defaults-*.min.js"></script>
<div class="container" style="width: 400px">
<div class="row">
<div class=".col-md-4 .col-md-offset-3">
<form>
<select class="form-control selectpicker">
<option>
<img src="img/github_logo.png">
github
</option>
<!--
<option data-icon="glyphicon-heart" data-subtext="private repos require oauth">Eye of Medusa</option>
-->
<option>gitlab</option>
</select>
</br>
</br>
</br>
<input type="text" class="form-control" placeholder="Repo Owner">
<!--
GET github.com/search/users
-->
</br>
<input type="text" class="form-control" placeholder="Repo Name">
<!--
GET github.com/users/:username/repos
-->
</br>
<!--
drop down shows branch\commit_sha\blob_name\blob_sha, user selects and the sha of the chosen blob gets inserted
-->
<input type="text" class="form-control" placeholder="Start Blob SHA">
</br>
<input type="text" class="form-control" placeholder="Finish Blob SHA">
</br>
<!-- Button trigger modal
<button id="generate_lapse" type="button" class="btn btn-success btn-lg btn-block">
-->
<button type="button" class="btn btn-success btn-lg btn-block" data-toggle="modal" data-target="#myModal">
Generate Gitlapse
<!--
(checks if lapse exists on the server and say "Watch Gitlapse")
-->
</button
</form>
</div>
</div>
</div>
<script>
// lapse.html?host=github&repo_owner=zotherstupidguy&repo_name=mushin
$("#generate_lapse").click(function( event ) {
console.log("submitted");
window.location.href = window.location.href + "?ID=" + someid ;
});
</script>
<script>
function getParameterByName(name, url) {
if (!url) {
url = window.location.href;
}
name = name.replace(/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)"),
results = regex.exec(url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
var host = getParameterByName('host'); // "github"
var owner = getParameterByName('repo_owner'); // "zotherstupidguy"
var reponame = getParameterByName('repo_name'); // "mushin"
var start_sha = getParameterByName('start_sha'); // ""
var finish_sha = getParameterByName('finish_sha'); // ""
console.log("host: " + host)
console.log("repo_owner: " + owner)
console.log("repo_name: " + reponame)
console.log("start_sha: " + start_sha)
console.log("finish_sha: " + finish_sha)
</script>
</br>
<div id="f-left">
<div class="container">
<div class="row">
<h4>
<p>
crafted with <i style= "color: red"class="fa fa-heart"></i> forever free for opensource. Study your favourite opensource projects with ease!
</p>
</h4>
</div>
<div class="row">
<h4>
<h6>
<div style="display: block!; overflow: hidden!;">
<p>
<div align="right">
</div>
</p>
<p>
<div align="left">
<a href='https://gitlapse.com'> © 2016 Gitlapse </a> .
<!--
<a href='https://gitlapse.com/sponsers'> Sponsers </a> .
<a href="https://gitlapse.com/opensource"> Opensource </a> .
<a href='https://gitlapse.com/docs'> API Docs </a> .
<a href='https://gitlapse.com/pricing'> Pricing </a> .
<a href='https://gitlapse.com/careers'> Careers </a> .
<a href='https://gitlapse.com/ecosystem'> Ecosystem </a> .
<a href='https://gitlapse.com/terms'> Terms </a> .
<a href='https://gitlapse.com/contact'> Contact </a>
-->
</div>
</p>
</div>
</h6>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/libs/bootstrap.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-72057069-1', 'auto');ga('send', 'pageview');
</script>
</body>
</html>