-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathr1.html
97 lines (64 loc) · 2.9 KB
/
r1.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
<!doctype html>
<html lang=en >
<head>
<meta charset=utf-8 >
<title>GubGub R1</title>
<meta name=viewport content='width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no' >
<meta name=description content='Search and explore GitHub users and see what they have been up to in full detail.' >
<meta name=keywords content='Jaanga,Theo Armour,GitHub API,CSS,HTML,JavaScript,GitHub,FOSS' >
<meta name=date content='2016-10-26' >
<link rel='shortcut icon' href=favicon.ico type='image/x-icon'/ >
</head>
<body>
<script src=https://cdnjs.cloudflare.com/ajax/libs/showdown/1.4.3/showdown.min.js ></script>
<!--
<script src=./0-cor-core/core-r1.js ></script>
<script src=./1-api-authentication/api-authentication-r1.js ></script>
<script src=./2-sel-select/sel-select-r1.js ></script>
<script src=./dat-data/dat-data-r1.js ></script>
<script src=./user-events-big/user-events-big-r1.js ></script>
<script src=./eus-events-user/eus-events-user-r1.js ></script>
<script src=./usr-users/users-r1.js ></script>
-->
<script src=https://jaanga.github.io/gubgub/0-cor-core/core-r1.js ></script>
<script src=https://jaanga.github.io/gubgub/1-api-authentication/api-authentication-r1.js ></script>
<script src=https://jaanga.github.io/gubgub/2-sel-select/sel-select-r1.js ></script>
<script src=https://jaanga.github.io/gubgub/dat-data/dat-data-r1.js ></script>
<script src=https://jaanga.github.io/gubgub/user-events-big/user-events-big-r1.js ></script>
<script src=https://jaanga.github.io/gubgub/eus-events-user/eus-events-user-r1.js ></script>
<script src=https://jaanga.github.io/gubgub/usr-users/users-r1.js ></script>
<script>
COR.readMeText = 'This is the default version of <a href=https://jaanga.github.io/gubgub/ >GubGub</a>.';
init();
function init() {
COR.initThreeColumns();
// COR.css.innerHTML += '.DATbuttonLeft { display: none; }'; // uncomment to hide left column User Data buttons
COR.menu.innerHTML =
COR.getMenuDetailsHeader() +
API.getMenuDetailsAPIAccessToken() +
SEL.getMenuDetailsSelectGroup() +
SEL.getMenuDetailsSelectUser() +
DAT.getMenuDetailsUserData() +
COR.getMenuDetailsAbout() +
COR.getMenuFooter() +
b;
window.addEventListener( 'hashchange', COR.onHashChange, false );
if ( location.hash.match( '.md' ) ) { COR.onHashChange(); return; }
if ( location.hash.match( 'token=' ) ) { API.onEventAPIKeyUpdate(); }
// SELselGroup.value = 'listFavorites'; // uncomment to have selected user appear as default
SEL.setUserDetails();
API.getRateLimits();
}
// gets called by SEL.setUserDetails...
SEL.getUserDetails = function( user ) {
console.clear();
location.hash = user.toLowerCase();
document.title = user + ' ~ ' + COR.documentTitle;
DAT.getUserData( user ); // left column update
EUS.requestGitHubAPIUserEvents( user ); // middle and right columns update
window.scrollTo( 0, 0 );
COR.updates.scrollTop = 0;
};
</script>
</body>
</html>