-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
87 lines (86 loc) · 2.8 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<link href="style/stylesheet.css" rel="stylesheet">
<script src="https://apis.google.com/js/api.js"></script>
<script>
function start() {
// 2. Initialize the JavaScript client library.
gapi.client.init({
'apiKey': 'AIzaSyBWEpEzEihaTiHTHIFs3muFn5y0lGIsa3A',
// Your API key will be automatically added to the Discovery Document URLs.
'discoveryDocs': ['https://people.googleapis.com/$discovery/rest'],
// clientId and scope are optional if auth is not required.
'clientId': '1073710662346-01dgchjc4e8c967tbeur8hk439gb4bqg.apps.googleusercontent.com',
'scope': 'profile',
}).then(function() {
// 3. Initialize and make the API request.
return gapi.client.people.people.get({
'resourceName': 'people/me',
'requestMask.includeField': 'person.names'
});
}).then(function(response) {
console.log(response.result);
}, function(reason) {
console.log('Error: ' + reason.result.error.message);
});
};
// 1. Load the JavaScript client library.
gapi.load('client', start);
</script>
</head>
<body>
<header>
<h1>rinrin24のリポ置き場</h1>
<nav>
<ul>
<li><a href="/">トップページ</a></li>
<li><a href="/repos.html">リポジトリ一覧</a></li>
<li><a href="/licence.html">ライセンス</a></li>
</ul>
</nav>
</header>
<main>
<h1>トップページ</h1>
<article>
<p>ここは rinrin24 のリポジトリ置き場です。</p>
<p>リポジトリ一覧はこちらに -> <a href="/repos.html">リポジトリ一覧</a></p>
<p>ライセンスについてはこちらに -> <a href="/licence.html">ライセンス</a></p>
</article>
</main>
<div id="results"></div>
<!--
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/jquery.xdomainajax.js"></script>
<h1>サンプル - 別ドメインの外部URLからidやclassなど特定の箇所を抜き出しサイトに表示する方法</h1>
<div id="container"></div>
<div id="header"></div>
<div id="stock"></div>
<script type="text/javascript">
$(function() {
$.ajax({
url: 'http://www.scenicbyway.jp/sv/jp/?graph',
type: 'GET',
success: function(data) {
$('#container').html(data.responseText);
$table = $('table', $('#container'));
$('#header').html($table.parent().prev().html());
$('#stock').html($table.parent().html());
}
});
});
</script>
-->
<!--
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="js/jquery.xdomainajax.js"></script>
<script type="text/javascript">
uri = 'https://www.yahoo.co.jp/';
$.get(uri, function(data){
alert(data.responseText);
});
</script>
-->
</body>
</html>