summaryrefslogtreecommitdiffstats
path: root/static/index.html
diff options
context:
space:
mode:
authorJon Jenkins <jondjenkins@gmail.com>2014-03-30 11:09:54 -0600
committerJon Jenkins <jondjenkins@gmail.com>2014-03-30 11:09:54 -0600
commit4790cc3fb9a7bbdd88305247e19f4089cf989a16 (patch)
tree6da777ac5890e8a0d1bdb3ab4c0f37816270ff13 /static/index.html
downloadexpress-upload-4790cc3fb9a7bbdd88305247e19f4089cf989a16.tar.gz
express-upload-4790cc3fb9a7bbdd88305247e19f4089cf989a16.tar.bz2
express-upload-4790cc3fb9a7bbdd88305247e19f4089cf989a16.zip
initial commit
Diffstat (limited to 'static/index.html')
-rw-r--r--static/index.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/static/index.html b/static/index.html
new file mode 100644
index 0000000..d9ed006
--- /dev/null
+++ b/static/index.html
@@ -0,0 +1,42 @@
+<html>
+<head>
+ <title>Upload Example</title>
+ <style type="text/css" media="screen">
+ #progress {
+ width: 500px;
+ border: 1px solid black;
+ position: relative;
+ padding: 3px;
+ }
+
+ #percent {
+ position: absolute;
+ left: 50%;
+ }
+
+ #bar {
+ height: 20px;
+ background-color: green;
+ width: 0%;
+ }
+ </style>
+</head>
+<body>
+<form id="uploadForm"
+ enctype="multipart/form-data"
+ action="/api/upload"
+ method="post">
+ <input type="file" id="userFileInput" name="userFile"/>
+</form>
+<span id="status"></span>
+
+<div id="progress">
+ <span id="percent">0%</span>
+
+ <div id="bar"></div>
+</div>
+<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
+<script src="./js/jquery.form.js"></script>
+<script src="./js/upload.js"></script>
+</body>
+</html> \ No newline at end of file