-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
executable file
·159 lines (131 loc) · 6.7 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>S3 Static Uploader</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/bootstrap.min.css">
<style>
body {
padding-top: 60px;
padding-bottom: 40px;
}
div#dropbox {
padding: 1em;
margin: 1em 0;
font-size: 1.5em;
border-radius: 0.5em;
border: 2px solid;
background-color: #DDD;
}
div#dropbox:hover { background-color: #BBB; }
/* highlight latest upload */
#filename a:first-of-type { background-color: #e1f57b; }
</style>
<link rel="stylesheet" href="css/bootstrap-responsive.min.css">
<script src="js/vendor/modernizr-2.6.1.min.js"></script>
</head>
<body>
<!-- This code is taken from http://twitter.github.com/bootstrap/examples/hero.html -->
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="/">S3 Static Uploader</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="http://paulthrasher.com/">PaulThrasher.com</a></li>
<li><a href="https://github.com/thrashr888/s3staticuploader">This project on GitHub</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<!-- Main hero unit for a primary marketing message or call to action -->
<div class="hero-unit">
<div class="row">
<form action="#" id="uploader" class="form-inline" method="POST" enctype="multipart/form-data">
<input type="hidden" name="key" value="" />
<input type="hidden" name="AWSAccessKeyId" value="" />
<input type="hidden" name="acl" value="" />
<input type="hidden" name="policy" value="" />
<input type="hidden" name="signature" value="" />
<input type="hidden" name="Content-Type" value="" />
<div class="span3 offset3">
<h2>Expires in</h2>
<p>
<select name="expires" class="span3">
<option value="1">1 day</option>
<option value="2">2 days</option>
<option value="3">3 days</option>
<option value="4">4 days</option>
<option value="5">5 days</option>
<option value="6">6 days</option>
<option value="7">1 week</option>
</select>
</p>
<h2>File</h2>
<p><input type="file" name="file" placeholder="Choose a file…" id="file" /></p>
<div id="dropbox">Or Drop Here</div>
<div class="progress progress-striped active" style="display: none;">
<div class="bar" style="width: 0%;"></div>
</div>
<p><input type="submit" value="Upload" class="btn btn-primary btn-large" /></p>
</div>
</form>
</div>
</div>
<div class="row">
<div class="span1 offset3">
<a href="https://twitter.com/share" class="twitter-share-button" data-lang="en">Tweet</a>
</div>
<div class="span4">
<div class="fb-like" data-send="true" data-width="450" data-show-faces="true"></div>
</div>
</div>
<div class="row">
<div class="span12">
<h2>File history</h2>
<p id="filename"></p>
<p><a href="#" data-action="clear" class="btn">clear history</a></p>
</div>
</div>
<hr>
<footer>
<p>© Paul Thrasher 2012</p>
</footer>
</div> <!-- /container -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.8.2.min.js"><\/script>')</script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/moment.min.js"></script>
<script src="js/settings.js"></script>
<script src="js/main.js"></script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-55560-23']);
_gaq.push(['_setDomainName', window.s3u.bucket + '.s3-website-us-east-1.amazonaws.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = document.location.protocol + "//connect.facebook.net/en_US/all.js#xfbml=1&appId=169137773153355";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
</body>
</html>