Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions client/demo.htm
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,37 @@
<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>
<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>
<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>

<div class="qq-upload-extra-drop-area">Drop files here too</div>

<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>

<div class="qq-upload-extra-drop-area">Drop files here too</div>

<script src="fileuploader.js" type="text/javascript"></script>
<script>
function createUploader(){
<script>
function createUploader(){
var uploader = new qq.FileUploader({
element: document.getElementById('file-uploader-demo1'),
action: 'do-nothing.htm',
debug: true,
extraDropzones: [qq.getByClass(document, 'qq-upload-extra-drop-area')[0]]
});
});
}

// in your app create uploader as soon as the DOM is ready
// don't wait for the window to load
window.onload = createUploader;
Expand Down
Loading