-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (84 loc) · 2 KB
/
index.html
File metadata and controls
89 lines (84 loc) · 2 KB
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
<html lang="ja">
<header>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>aws S3</title>
<script src="node_modules/angular/angular.min.js"></script>
<script type="text/javascript">
<!--
var contents = [{
title: "1. 基本",
dir: "1.Basics",
files: [1, 2, 3, 4, 5]
}, {
title: "2. モジュール",
dir: "2.Modules",
files: [1, 2, 3, 4, 5, 6, 7]
}, {
title: "3. イベントハンドラ",
dir: "3.EventHandlers",
files: [1, 2, 3]
}, {
title: "4. 表示・非表示系",
dir: "4.ConditionalDisplay",
files: [1, 2, 3, 4]
}, {
title: "5. コレクション",
dir: "5.Collections",
files: [1, 2, 3]
}, {
title: "6. サーバコール(S3ではPHP動かんすわ)",
dir: "6.ServerCalls",
files: [1, 2, 3]
}];
-->
</script>
<style type="text/css">
<!--
a {
padding: 10;
}
span {
background: lightgray;
padding: 5;
font-size: 9;
}
-->
</style>
</header>
<body>
<p>
Amazon Web Service S3(Amazon Simple Storage Service)のテストです。<br>
試しにAngularJSのお勉強コードぶっこんでみました。<br>
</p>
<p>
aws-cli でローカルディレクトリと s3 を同期するヤツ<br>
<span>$ aws s3 sync /Users/kuro/Documents/Practice/angularjs s3://aws.angularjs.kurom96/ --exclude "*" --include "*.html" --include "*.js" --include "*.jpg"
</span>
</p>
<script type="text/javascript">
<!--
document.open();
var category, dir, file;
for (category of contents) {
if (!category.hasOwnProperty("title")) {
category.title = "名称なし";
}
document.write("<div>");
document.write("<h3>" + category.title + "</h3>");
if (!category.hasOwnProperty("files")) {
continue;
}
for (file of category.files) {
dir = "";
if (category.hasOwnProperty("dir")) {
dir = category.dir + "/";
}
document.write("<a href='" + dir + file + ".html'>" + file + "</a>");
}
document.write("</div>");
}
document.close();
-->
</script>
</body>
</html>