PageRenderTime 47ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

/gallery/form/1.0/uploader/themes/lineQueue/demo.html

https://github.com/akecn/kissy-gallery
HTML | 64 lines | 62 code | 2 blank | 0 comment | 0 complexity | e1aceb1ef4dc5dfaae644ed64eeeec46 MD5 | raw file
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <title>使用lineQueue模板的demo</title>
  6. <script src="http://a.tbcdn.cn/s/kissy/1.2.0/kissy.js"></script>
  7. <link rel="stylesheet" type="text/css" href="http://a.tbcdn.cn/s/kissy/1.2.0/css/reset-min.css" />
  8. </head>
  9. <style>
  10. body {
  11. font-family: 'Microsoft YaHei';
  12. font-size: 12px;
  13. color: #404040;
  14. }
  15. h4{
  16. font-size:16px;
  17. color:#C58080;
  18. margin:10px 0;
  19. }
  20. .demo-wrapper {
  21. padding: 20px;
  22. }
  23. </style>
  24. <body>
  25. <article id="main">
  26. <h4>模板名lineQueue</h4>
  27. <p>作者紫英橘子&lt;daxingplay@gmail.com&gt;</p>
  28. <p>版本V1.0 Beta</p>
  29. <div class="demo-wrapper">
  30. <form id="J_UploaderForm" action="test.php">
  31. <div class="form-area">
  32. <a id="J_UploadBtn" href="#upload()" data-config='{"theme" : "gallery/form/1.0/uploader/themes/lineQueue", "urlsInputName":"urlsInput", "serverConfig":{"action":"../../../demo/form/uploader/upload.php","data":{"dir":"files/"},"dataType" : "json"}, "name":"Filedata"}' data-auth='{"max":[5, "每次最多上传{max}个文件!"]}' class="upload-btn">
  33. 上传图片
  34. <input type="file" name="Filedata" hidefoucs="true" class="original-file-input">
  35. </a>
  36. <span id="J_MsgBoxUpload" class="upload-tips">最多上传<em>5</em>照片每张图片小于<em>5M</em></span>
  37. </div>
  38. <div id="J_UploadQueueContainer" class="upload-queue">
  39. <ul id="J_UploadQueue">
  40. </ul>
  41. </div>
  42. <input id="J_MainPicUrl" type="hidden" name="mainPicUrl" value="" />
  43. <input id="J_UrlsInput" type="hidden" name="urlsInput" value="" />
  44. </form>
  45. </div>
  46. </article>
  47. <script>
  48. KISSY.config({
  49. packages: [{
  50. name: 'gallery',
  51. path:"../../../../../../",
  52. //path:"http://a.tbcdn.cn/s/kissy/",
  53. charset: 'utf-8'
  54. }]
  55. });
  56. KISSY.use('gallery/form/1.0/uploader/index', function (S, RenderUploader) {
  57. //第一个参数:按钮元素钩子,第二个参数:队列元素钩子
  58. new RenderUploader('#J_UploadBtn', '#J_UploadQueue');
  59. });
  60. </script>
  61. </body>
  62. </html>