-
Notifications
You must be signed in to change notification settings - Fork 2
/
build-3.html
100 lines (71 loc) · 4.03 KB
/
build-3.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
<!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>Updating API Home Page</h1>
<p>The home page of your forked API is being personalized to know it exists within your Github account.</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');
var $Manifest = "";
var repo2 = github.getRepo($UserLogin, $repo);
repo2.read('gh-pages','index.html',function(err, data){
$IndexPage = data;
$IndexPage = $IndexPage.replace('simple-api',$UserLogin);
repo2.write('gh-pages','index.html', $IndexPage, 'Updating the index page.', function(err) {
});
});
redirectURL = "http://simple-api.github.io/central/build-4.html?repo=" + $repo + "&oAuth_Token=" + $oAuth_Token + "&account=" + $UserLogin;
setTimeout(callback(redirectURL), 5000);
</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>