forked from algorithmiaio/sample-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
96 lines (91 loc) · 3.66 KB
/
index.html
File metadata and controls
96 lines (91 loc) · 3.66 KB
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
<html>
<head>
<title>GitHub Recommender - Algorithmia</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,300,400,600,700" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="public/images/favicon-bw.png" type="image/png">
<link rel="stylesheet" href="public/css/font-awesome/css/font-awesome.min.css" type="text/css">
<link rel="stylesheet" media="screen" href="public/css/bootstrap3.min.css">
<link rel="stylesheet" media="screen" href="public/css/algo.min.css">
<script src="public/js/algorithmia.js"></script>
<style>
a {
/* blog colors */
color: #430FA2;
}
input.input {
border: 1px solid #ddd;
margin-right: 6px;
margin-left: 6px;
vertical-align: baseline;
}
.slash {
color: #444;
font-size: 26px;
line-height: 24px;
vertical-align: middle;
}
</style>
</head>
<body>
<div class="well">
<header>GitHub Repository Recommender</header>
<p>
Enter a public git repository, and this tool will use collaborative filtering recommendation algorithms to suggest related repositories.
</p>
<div class="form-group">
<label>Choose one of our example URLs, or enter your own</label>
<br>
<select id="urlDD" onchange="updateDropdown()" style="max-width: 352px; width: 95%;">
<option disabled>Select an example repository...</option>
<option value="/apache/spark">Apache Spark</option>
<option value="/rails/rails">Ruby on Rails</option>
<option value="/defunkt/dotjs">dotjs (chrome extension)</option>
<option value="/ipython/ipython">IPython</option>
<option value="/codahale/bcrypt-ruby">BCrypt Ruby</option>
<option value="/jekyll/jekyll">Jekyll</option>
<!-- <option value="/puppetslabs/puppet">Puppet</option> -->
<option value="/jshint/jshint">JSHint</option>
<option value="/scikit-learn/scikit-learn">scikit-learn</option>
<option value="/harthur/brain">harthur/brain</option>
<option value="/twbs/bootstrap">Bootstrap</option>
<option value="/rust-lang/rust">Rust</option>
</select>
</div>
<table style="padding-top: 15px;">
<tr>
<td>
<label>GitHub User Name</label>
</td>
<td>
<label>GitHub Repository Name</label>
</td>
</tr>
<tr>
<td>
<span class="slash">/</span><input class="input" style="max-width: 180px; width: 95%;" id="username" placeholder="username">
</td>
<td>
<span class="slash">/</span><input class="input" style="max-width: 180px; width: 95%;" id="reponame" placeholder="repository_name">
</td>
</tr>
</table>
<div class="form-group" style="margin-top: 15px;">
<button class="btn btn-primary" onclick="analyze()">Generate Recommendations</button>
<span class="aspinner hidden" id="algo-spinner" style="position: relative; top: 8px; left: 5px;"></span>
<span id="demo-status"></span>
</div>
</div>
<div style="padding-left: 8px;">
<h3 id="input"></h3>
<div>
<label style="display: block;">Tags</label>
<span id="inputTags" style="position: relative; top: -4px; margin-left: 10px;"></span>
</div>
<div>
<label style="display: block; margin-top: 8px;">Recommended Repositories</label>
<ul id="output" style="padding-left: 10px; margin-top: 4px; list-style: none;"></ul>
</div>
</div>
<script src="public/js/main.js" type="text/javascript"></script>
</body>
</html>