PageRenderTime 46ms CodeModel.GetById 16ms RepoModel.GetById 1ms app.codeStats 0ms

/redsunmedizone/static/file_upload/test/index.html

https://gitlab.com/CafeBabe_fei/redsunmedizone
HTML | 172 lines | 146 code | 0 blank | 26 comment | 0 complexity | 35ad75e628c5b6a96b7d1ccce53a70be MD5 | raw file
  1. <!DOCTYPE HTML>
  2. <!--
  3. /*
  4. * jQuery File Upload Plugin Test
  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]>
  18. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  19. <![endif]-->
  20. <meta charset="utf-8">
  21. <title>jQuery File Upload Plugin Test</title>
  22. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  23. <link rel="stylesheet" href="//codeorigin.jquery.com/qunit/qunit-1.14.0.css">
  24. </head>
  25. <body>
  26. <h1 id="qunit-header">jQuery File Upload Plugin Test</h1>
  27. <h2 id="qunit-banner"></h2>
  28. <div id="qunit-testrunner-toolbar"></div>
  29. <h2 id="qunit-userAgent"></h2>
  30. <ol id="qunit-tests"></ol>
  31. <div id="qunit-fixture">
  32. <!-- The file upload form used as target for the file upload widget -->
  33. <form id="fileupload" action="../server/php/" method="POST" enctype="multipart/form-data">
  34. <!-- The fileupload-buttonbar contains buttons to add/delete files and start/cancel the upload -->
  35. <div class="row fileupload-buttonbar">
  36. <div class="col-lg-7">
  37. <!-- The fileinput-button span is used to style the file input field as button -->
  38. <span class="btn btn-success fileinput-button">
  39. <i class="icon-plus icon-white"></i>
  40. <span>Add files...</span>
  41. <input type="file" name="files[]" multiple>
  42. </span>
  43. <button type="submit" class="btn btn-primary start">
  44. <i class="icon-upload icon-white"></i>
  45. <span>Start upload</span>
  46. </button>
  47. <button type="reset" class="btn btn-warning cancel">
  48. <i class="icon-ban-circle icon-white"></i>
  49. <span>Cancel upload</span>
  50. </button>
  51. <button type="button" class="btn btn-danger delete">
  52. <i class="icon-trash icon-white"></i>
  53. <span>Delete</span>
  54. </button>
  55. <input type="checkbox" class="toggle">
  56. <!-- The global file processing state -->
  57. <span class="fileupload-process"></span>
  58. </div>
  59. <!-- The global progress state -->
  60. <div class="col-lg-5 fileupload-progress">
  61. <!-- The global progress bar -->
  62. <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100">
  63. <div class="progress-bar progress-bar-success" style="width:0%;"></div>
  64. </div>
  65. <!-- The extended global progress state -->
  66. <div class="progress-extended">&nbsp;</div>
  67. </div>
  68. </div>
  69. <!-- The table listing the files available for upload/download -->
  70. <table role="presentation" class="table table-striped"><tbody class="files"></tbody></table>
  71. </form>
  72. </div>
  73. <!-- The template to display files available for upload -->
  74. <script id="template-upload" type="text/x-tmpl">
  75. {% for (var i=0, file; file=o.files[i]; i++) { %}
  76. <tr class="template-upload">
  77. <td>
  78. <span class="preview"></span>
  79. </td>
  80. <td>
  81. <p class="name">{%=file.name%}</p>
  82. <strong class="error text-danger"></strong>
  83. </td>
  84. <td>
  85. <p class="size">Processing...</p>
  86. <div class="progress progress-striped active" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"><div class="progress-bar progress-bar-success" style="width:0%;"></div></div>
  87. </td>
  88. <td>
  89. {% if (!i && !o.options.autoUpload) { %}
  90. <button class="btn btn-primary start" disabled>
  91. <i class="glyphicon glyphicon-upload"></i>
  92. <span>Start</span>
  93. </button>
  94. {% } %}
  95. {% if (!i) { %}
  96. <button class="btn btn-warning cancel">
  97. <i class="glyphicon glyphicon-ban-circle"></i>
  98. <span>Cancel</span>
  99. </button>
  100. {% } %}
  101. </td>
  102. </tr>
  103. {% } %}
  104. </script>
  105. <!-- The template to display files available for download -->
  106. <script id="template-download" type="text/x-tmpl">
  107. {% for (var i=0, file; file=o.files[i]; i++) { %}
  108. <tr class="template-download">
  109. <td>
  110. <span class="preview">
  111. {% if (file.thumbnailUrl) { %}
  112. <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" data-gallery><img src="{%=file.thumbnailUrl%}"></a>
  113. {% } %}
  114. </span>
  115. </td>
  116. <td>
  117. <p class="name">
  118. {% if (file.url) { %}
  119. <a href="{%=file.url%}" title="{%=file.name%}" download="{%=file.name%}" {%=file.thumbnailUrl?'data-gallery':''%}>{%=file.name%}</a>
  120. {% } else { %}
  121. <span>{%=file.name%}</span>
  122. {% } %}
  123. </p>
  124. {% if (file.error) { %}
  125. <div><span class="label label-danger">Error</span> {%=file.error%}</div>
  126. {% } %}
  127. </td>
  128. <td>
  129. <span class="size">{%=o.formatFileSize(file.size)%}</span>
  130. </td>
  131. <td>
  132. {% if (file.deleteUrl) { %}
  133. <button class="btn btn-danger delete" data-type="{%=file.deleteType%}" data-url="{%=file.deleteUrl%}"{% if (file.deleteWithCredentials) { %} data-xhr-fields='{"withCredentials":true}'{% } %}>
  134. <i class="glyphicon glyphicon-trash"></i>
  135. <span>Delete</span>
  136. </button>
  137. <input type="checkbox" name="delete" value="1" class="toggle">
  138. {% } else { %}
  139. <button class="btn btn-warning cancel">
  140. <i class="glyphicon glyphicon-ban-circle"></i>
  141. <span>Cancel</span>
  142. </button>
  143. {% } %}
  144. </td>
  145. </tr>
  146. {% } %}
  147. </script>
  148. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
  149. <script src="../js/vendor/jquery.ui.widget.js"></script>
  150. <script src="//blueimp.github.io/JavaScript-Templates/js/tmpl.min.js"></script>
  151. <script src="//blueimp.github.io/JavaScript-Load-Image/js/load-image.all.min.js"></script>
  152. <script src="//blueimp.github.io/JavaScript-Canvas-to-Blob/js/canvas-to-blob.min.js"></script>
  153. <script src="../js/jquery.iframe-transport.js"></script>
  154. <script src="../js/jquery.fileupload.js"></script>
  155. <script>
  156. /* global window, $ */
  157. window.testBasicWidget = $.blueimp.fileupload;
  158. </script>
  159. <script src="../js/jquery.fileupload-process.js"></script>
  160. <script src="../js/jquery.fileupload-image.js"></script>
  161. <script src="../js/jquery.fileupload-audio.js"></script>
  162. <script src="../js/jquery.fileupload-video.js"></script>
  163. <script src="../js/jquery.fileupload-validate.js"></script>
  164. <script src="../js/jquery.fileupload-ui.js"></script>
  165. <script>
  166. /* global window, $ */
  167. window.testUIWidget = $.blueimp.fileupload;
  168. </script>
  169. <script src="//code.jquery.com/qunit/qunit-1.15.0.js"></script>
  170. <script src="test.js"></script>
  171. </body>
  172. </html>