forked from MrSwitch/hello.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
98 lines (79 loc) · 2.58 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>hello.js testing</title>
<link rel="stylesheet" href="/adorn/adorn.css" />
<link rel="stylesheet" href="../assets/css-social-buttons/css/zocial.css"/>
<link rel="stylesheet" href="../assets/index.css"/>
<!-- IE7 support -->
<script src="../assets/json2/json2.js"></script>
<script src="../assets/knockout/dist/knockout.js"></script>
<script src="/adorn/adorn.js" async></script>
<!-- AUTHENTICATION -->
<script src="../src/hello.polyfill.js"></script>
<script src="../src/hello.js"></script>
<script src="../demos/client_ids.js"></script>
<script>
//
// hello.all.js
// Load all modules
function loadModule(a){
for(var i=0;i<a.length;i++){
document.write('<script src="../src/modules/'+a[i]+'"><\/script>');
}
}
loadModule([
'facebook.js',
'flickr.js',
'google.js',
'windows.js',
'dropbox.js',
'twitter.js',
'yahoo.js',
'instagram.js',
'joinme.js',
'linkedin.js',
'foursquare.js',
'github.js',
'soundcloud.js',
'joinme.js',
'vk.js'
]);
</script>
</head>
<body class="adorn-fullscreen">
<header>
<h1>hello.js endpoint tests</h1>
</header>
<blockquote>
<ol>
<li>Select the scope of the services you want to test
<li>Click the sign-in buttons along the top of the table, and give consent to the application
<li>Click the <button class="run"></button> to run a test
<li>Click on the <button class="response passed"></button> or <button class="response error"></button> response buttons to view the data
</ol>
</blockquote>
<h2>hello( x ).<b>login</b>( [ options ] [, callback] )</h2>
<div data-bind="template: { name: 'tests-template', data: { test : $root, filter:'login' } }"></div>
<h2>hello( x ).<b>logout</b>([ callback ])</h2>
<div data-bind="template: { name: 'tests-template', data: { test : $root, filter:'logout' } }"></div>
<h2>hello( x ).<b>getAuthResponse</b>()</h2>
<div data-bind="template: { name: 'tests-template', data: { test : $root, filter:'getAuthResponse' } }"></div>
<h2>hello( x ).<b>api</b>( path [, method ][, data ][, callback ] )</h2>
<div data-bind="template: { name: 'tests-template', data: { test : $root, filter:'api' } }"></div>
<!-- Tests -->
<script src="../assets/index.js"></script>
<script type="text/html" id="tests-template"></script>
<script type="text/javascript">
// Initiate the library
hello.init(CLIENT_IDS_ALL,{
redirect_uri: '../redirect.html',
oauth_proxy: OAUTH_PROXY_URL
});
getText('../assets/test_network.html', function(response){
document.getElementById('tests-template').text = response;
ko.applyBindings(model);
});
</script>
</body>
</html>