Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
21627 kshitij.so 1
<!DOCTYPE HTML>
2
<!--
3
/*
4
 * jQuery File Upload Plugin Test 6.14
5
 * https://github.com/blueimp/jQuery-File-Upload
6
 *
7
 * Copyright 2010, Sebastian Tschan
8
 * https://blueimp.net
9
 *
10
 * Licensed under the MIT license:
11
 * http://www.opensource.org/licenses/MIT
12
 */
13
-->
14
<html lang="en">
15
<head>
16
<!-- Force latest IE rendering engine or ChromeFrame if installed -->
17
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"><![endif]-->
18
<meta charset="utf-8">
19
<title>jQuery File Upload Plugin Test</title>
20
<meta name="viewport" content="width=device-width">
21
<link rel="stylesheet" href="http://code.jquery.com/qunit/git/qunit.css">
22
</head>
23
<body>
24
<h1 id="qunit-header">jQuery File Upload Plugin Test</h1>
25
<h2 id="qunit-banner"></h2>
26
<div id="qunit-testrunner-toolbar"></div>
27
<h2 id="qunit-userAgent"></h2>
28
<ol id="qunit-tests"></ol>
29
<div id="qunit-fixture">
30
    <!-- The file upload form used as target for the file upload widget -->
31
    <form id="fileupload" action="../server/php/" method="POST" enctype="multipart/form-data">
32
        <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
33
        <div class="row fileupload-buttonbar">
34
            <div class="span7">
35
                <!-- The fileinput-button span is used to style the file input field as button -->
36
                <span class="btn btn-success fileinput-button">
37
                    <i class="icon-plus icon-white"></i>
38
                    <span>Add files...</span>
39
                    <input type="file" name="files[]" multiple>
40
                </span>
41
                <button type="submit" class="btn btn-primary start">
42
                    <i class="icon-upload icon-white"></i>
43
                    <span>Start upload</span>
44
                </button>
45
                <button type="reset" class="btn btn-warning cancel">
46
                    <i class="icon-ban-circle icon-white"></i>
47
                    <span>Cancel upload</span>
48
                </button>
49
                <button type="button" class="btn btn-danger delete">
50
                    <i class="icon-trash icon-white"></i>
51
                    <span>Delete</span>
52
                </button>
53
                <input type="checkbox" class="toggle">
54
            </div>
55
            <!-- The global progress information -->
56
            <div class="span5 fileupload-progress">
57
                <!-- The global progress bar -->
58
                <div class="progress progress-success progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
59
                    <div class="bar" style="width:0%;"></div>
60
                </div>
61
                <!-- The extended global progress information -->
62
                <div class="progress-extended">&nbsp;</div>
63
            </div>
64
        </div>
65
        <!-- The loading indicator is shown during file processing -->
66
        <div class="fileupload-loading"></div>
67
        <br>
68
        <!-- The table listing the files available for upload/download -->
69
        <table role="presentation" class="table table-striped"><tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody></table>
70
    </form>
71
</div>
72
<!-- The template to display files available for upload -->
73
<script id="template-upload" type="text/x-tmpl">
74
{% for (var i=0, file; file=o.files[i]; i++) { %}
75
    <tr class="template-upload">
76
        <td class="preview"><span class=""></span></td>
77
        <td class="name"><span>{%=file.name%}</span></td>
78
        <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
79
        {% if (file.error) { %}
80
            <td class="error" colspan="2"><span class="label label-important">Error</span> {%=file.error%}</td>
81
        {% } else if (o.files.valid && !i) { %}
82
            <td>
83
                <div class="progress progress-success progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="bar" style="width:0%;"></div></div>
84
            </td>
85
            <td class="start">{% if (!o.options.autoUpload) { %}
86
                <button class="btn btn-primary">
87
                    <i class="icon-upload icon-white"></i>
88
                    <span>Start</span>
89
                </button>
90
            {% } %}</td>
91
        {% } else { %}
92
            <td colspan="2"></td>
93
        {% } %}
94
        <td class="cancel">{% if (!i) { %}
95
            <button class="btn btn-warning">
96
                <i class="icon-ban-circle icon-white"></i>
97
                <span>Cancel</span>
98
            </button>
99
        {% } %}</td>
100
    </tr>
101
{% } %}
102
</script>
103
<!-- The template to display files available for download -->
104
<script id="template-download" type="text/x-tmpl">
105
{% for (var i=0, file; file=o.files[i]; i++) { %}
106
    <tr class="template-download">
107
        {% if (file.error) { %}
108
            <td></td>
109
            <td class="name"><span>{%=file.name%}</span></td>
110
            <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
111
            <td class="error" colspan="2"><span class="label label-important">Error</span> {%=file.error%}</td>
112
        {% } else { %}
113
            <td class="preview">{% if (file.thumbnail_url) { %}
114
                <a href="{%=file.url%}" title="{%=file.name%}" data-gallery="gallery" download="{%=file.name%}"><img src="{%=file.thumbnail_url%}"></a>
115
            {% } %}</td>
116
            <td class="name">
117
                <a href="{%=file.url%}" title="{%=file.name%}" data-gallery="{%=file.thumbnail_url&&'gallery'%}" download="{%=file.name%}">{%=file.name%}</a>
118
            </td>
119
            <td class="size"><span>{%=o.formatFileSize(file.size)%}</span></td>
120
            <td colspan="2"></td>
121
        {% } %}
122
        <td class="delete">
123
            <button class="btn btn-danger" data-type="{%=file.delete_type%}" data-url="{%=file.delete_url%}"{% if (file.delete_with_credentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>
124
                <i class="icon-trash icon-white"></i>
125
                <span>Delete</span>
126
            </button>
127
            <input type="checkbox" name="delete" value="1">
128
        </td>
129
    </tr>
130
{% } %}
131
</script>
132
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
133
<script src="../js/vendor/jquery.ui.widget.js"></script>
134
<script src="http://blueimp.github.com/JavaScript-Templates/tmpl.min.js"></script>
135
<script src="http://blueimp.github.com/JavaScript-Load-Image/load-image.min.js"></script>
136
<script src="http://blueimp.github.com/JavaScript-Canvas-to-Blob/canvas-to-blob.min.js"></script>
137
<script src="../js/jquery.iframe-transport.js"></script>
138
<script src="../js/jquery.fileupload.js"></script>
139
<script>window.testBasicWidget = $.blueimp.fileupload;</script>
140
<script src="../js/jquery.fileupload-fp.js"></script>
141
<script src="../js/jquery.fileupload-ui.js"></script>
142
<script>window.testUIWidget = $.blueimp.fileupload;</script>
143
<script src="http://code.jquery.com/qunit/git/qunit.js"></script>
144
<script src="test.js"></script>
145
</body> 
146
</html>