forked from vasili4/central
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-5.html
107 lines (80 loc) · 4.52 KB
/
build-5.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
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
<link href='https://fonts.googleapis.com/css?family=Chivo:900' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
<script src="http://code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script src="javascripts/oauth.js" type="text/javascript"></script>
<script src="javascripts/mustache.js" type="text/javascript"></script>
<script src="javascripts/utilities.js" type="text/javascript"></script>
<script src="javascripts/tabletop.js" type="text/javascript"></script>
<script src="javascripts/underscore-min.js" type="text/javascript"></script>
<script src="javascripts/base64.js" type="text/javascript"></script>
<script src="javascripts/github.js" type="text/javascript"></script>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<title>Simple API</title>
</head>
<body>
<div id="container">
<div class="inner">
<header>
<h1><a href="index.html">Simple API</a></h1>
<h2>This is a simple API. <a href="about.html">Learn more...</a></h2>
</header>
<section id="main_content">
<h1>Completing Setup</h1>
<p>The API setup is complete, and you will not be taken to your custom setup API repository.</p>
<p align="center"><img src="https://s3.amazonaws.com/kinlane-productions/loading.gif" id="loading" width="150" /></p>
<script type="text/javascript">
function callback(url){
return function(){
location.href=url;
}
}
$UserLogin = getUrlVar('account');
$oAuth_Token = getUrlVar('oAuth_Token');
$repo = getUrlVar('repo');
$cleanrepo = $repo.replace("api-","");
var github = new Github({
token: $oAuth_Token,
auth: "oauth"
});
var repo = github.getRepo('simple-api', 'central');
//$("#displayMe").append("connecting to " + $UserLogin + " account.<br />");
// Run core update
$.getJSON("http://api.gsa.apievangelist.com/utility/updateuser/?user="+$UserLogin,
function(data) {
var response = data.response;
//$("#displayMe").append(response + "<br />");
});
$.getJSON("http://api.gsa.apievangelist.com/utility/updateuserapis/?user="+$UserLogin,
function(data) {
var response = data.response;
// $("#displayMe").append(response + "<br />");
});
$.getJSON("http://api.gsa.apievangelist.com/utility/updateindex/?user="+$UserLogin,
function(data) {
var response = data.response;
//$("#displayMe").append(response + "<br />");
});
redirectURL = "http://" + $UserLogin + ".github.io/" + $repo;
setTimeout(callback(redirectURL), 2000);
</script>
<div id="displayMe"></div>
</section>
<footer>
Simple-api is maintained by <a href="https://github.com/simple-api">simple-api</a><br>
This page was generated by <a href="http://pages.github.com">GitHub Pages</a>. Tactile theme by <a href="https://twitter.com/jasonlong">Jason Long</a>.
</footer>
</div>
</div>
</body>
</html>