forked from piu28/aws-private-file-sharing-tool
-
Notifications
You must be signed in to change notification settings - Fork 8
/
viewcontents.html
executable file
·93 lines (73 loc) · 3.38 KB
/
viewcontents.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
<html>
<head>
<title>Test Page for Cognito</title>
<script src="js/jsbn.js"></script>
<script src="js/jsbn2.js"></script>
<script src="js/sjcl.js"></script>
<script src="js/moment.js"></script>
<script src="js/aws-cognito-sdk.min.js"></script>
<script src="js/amazon-cognito-identity.min.js"></script>
<script src="js/aws-sdk.js"></script>
<script src="bootstrap-3.3.7-dist/js/bootstrap.js"></script>
<script src="bootstrap-3.3.7-dist/js/npm.js"></script>
<link rel="stylesheet" href="bootstrap-3.3.7-dist/css/bootstrap.css"/>
<script src="js/index.js"></script>
<script src="js/aws/config.js"></script>
<script src="js/aws/saml.js"></script>
<script src="js/aws/samls3.js"></script>
<script src="node_modules/crypto-js/crypto-js.js"></script>
</head>
<body onload="init()">
<!-- Div Showing the Post Login Menu -->
<div class="container" style="display:none" id="loginDiv">
<h3>Welcome !!!! </h3>
<div class="row">
<div class="col-md-12"><h4>S3</h4></div>
</div>
<div class="row">
<div class="col-md-1"> </div>
<div class="col-md-3"><input type="text" class="form-control" id="bucketPrefix" placeholder="Bucket Prefix" /></div>
<div class="col-md-3"><button class="btn btn-primary" onclick="showS3BucketContents ()" id="viewS3BucketButton">View Contents</button></div>
</div>
<div class="row">
<div class="col-md-6"> </div>
</div>
<div class="row">
<div class="col-md-1"> </div>
<div class="col-md-3"><input id="photoupload" type="file" class="form-control" accept="image/*"> </div>
<div class="col-md-3"><button class="btn btn-primary" onclick="uploadToS3 ()" id="uploadToS3">Upload</button></div>
</div>
<div class="row">
<div class="col-md-6"> </div>
</div>
<div class="row">
<div class="col-md-1"> </div>
<div class="col-md-3"><input type="text" class="form-control" id="toaddress" placeholder="To Address" /></div>
<div class="col-md-3"><button class="btn btn-primary" onclick="checkEmail ()" id="sendemail">Send Email</button></div>
</div>
<div class="row">
<a style="display:block" href="#">
<div class="col-md-1"> </div>
<div class="col-md-3" id="emailoutput">
</a>
</div>
<div class="row">
<div class="col-md-6"> </div>
</div>
<div class="row">
<div class="col-md-6"> </div>
</div>
<div class="row">
<div class="col-md-6"><button type="button" class="btn btn-danger" onclick="adLogout()">Logout</button></div>
<div class="col-md-3"> </div>
<div class="col-md-3"> </div>
</div>
<div class="row">
<a style="display:block" href="#">
<div class="col-lg-8" id="output">
</a>
</div>
</div>
<div class="container" id="menuDiv" > </div>
</body>
</html>