-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathactivity.html
45 lines (42 loc) · 1.34 KB
/
activity.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
<html>
<head>
<link rel="stylesheet" href="base.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/octicons/2.0.2/octicons.min.css">
<link rel="stylesheet" href="github-activity-0.1.4.min.css">
<script src="https://code.jquery.com/jquery-1.11.0.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mustache.js/0.7.2/mustache.min.js"></script>
<script type="text/javascript" src="github-activity-0.1.4.min.js"></script>
<script>
function updateFeed(username) {
GitHubActivity.feed({ username: username, selector: '#feed' });
}
$(document).ready(function() {
updateFeed('Doadin');
$('#update').click(function() { updateFeed($("#username").val()); });
$("#username").keypress(function(e) {
if (e.which === 13) {
updateFeed($("#username").val());
}
});
});
</script>
<style>
#feed {
width: 500px;
height: 600px;
margin: 30px 0;
}
</style>
</head>
<body>
<div class="topnav">
<a href="/index.html">Home</a></a>
<a href="https://github.com/doadin">My Github Page</a>
<a class="active" href="/activity.html">My Github Activity</a>
</div>
<h1><i class="fa fa-github"></i> GitHub Activity Stream</h1>
<input type="hidden" id="username" value="Doadin" />
<button id="update">Update</button>
<div id="feed"></div>
</body>
</html>