aboutsummaryrefslogtreecommitdiffstats
path: root/addon/js_upload/file-uploader/client/demo.htm
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-26 00:34:39 -0800
committerFriendika <info@friendika.com>2011-01-26 00:34:39 -0800
commit2fc89deaeae0341aa12b6b811927e793011055d1 (patch)
tree32673c6b92cbe14f88d955de585ce813988ec5fa /addon/js_upload/file-uploader/client/demo.htm
parentabbd498a8b6c92ddcf211a27dd532f2ec6520fe2 (diff)
downloadvolse-hubzilla-2fc89deaeae0341aa12b6b811927e793011055d1.tar.gz
volse-hubzilla-2fc89deaeae0341aa12b6b811927e793011055d1.tar.bz2
volse-hubzilla-2fc89deaeae0341aa12b6b811927e793011055d1.zip
work in progress js_uploader plugin, turn java uploader into plugin - not done yet
Diffstat (limited to 'addon/js_upload/file-uploader/client/demo.htm')
-rw-r--r--addon/js_upload/file-uploader/client/demo.htm38
1 files changed, 38 insertions, 0 deletions
diff --git a/addon/js_upload/file-uploader/client/demo.htm b/addon/js_upload/file-uploader/client/demo.htm
new file mode 100644
index 000000000..2a0cd6d30
--- /dev/null
+++ b/addon/js_upload/file-uploader/client/demo.htm
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <link href="fileuploader.css" rel="stylesheet" type="text/css">
+ <style>
+ body {font-size:13px; font-family:arial, sans-serif; width:700px; margin:100px auto;}
+ </style>
+</head>
+<body>
+ <p><a href="http://github.com/valums/file-uploader">Back to project page</a></p>
+
+ <p>To upload a file, click on the button below. Drag-and-drop is supported in FF, Chrome.</p>
+ <p>Progress-bar is supported in FF3.6+, Chrome6+, Safari4+</p>
+
+ <div id="file-uploader-demo1">
+ <noscript>
+ <p>Please enable JavaScript to use file uploader.</p>
+ <!-- or put a simple form for upload here -->
+ </noscript>
+ </div>
+
+ <script src="fileuploader.js" type="text/javascript"></script>
+ <script>
+ function createUploader(){
+ var uploader = new qq.FileUploader({
+ element: document.getElementById('file-uploader-demo1'),
+ action: 'do-nothing.htm',
+ debug: true
+ });
+ }
+
+ // in your app create uploader as soon as the DOM is ready
+ // don't wait for the window to load
+ window.onload = createUploader;
+ </script>
+</body>
+</html> \ No newline at end of file