血透系统PC前端

scrawl.html 4.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title></title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6. <meta name="robots" content="noindex, nofollow"/>
  7. <script type="text/javascript" src="../internal.js"></script>
  8. <link rel="stylesheet" type="text/css" href="scrawl.css">
  9. <link rel="stylesheet" href="../fonts/buttoniconex.css">
  10. </head>
  11. <body>
  12. <div class="main" id="J_wrap">
  13. <div class="hot">
  14. <div class="drawBoard border_style1">
  15. <canvas id="J_brushBoard" class="brushBorad" width="400" height="372"></canvas>
  16. <div id="J_picBoard" class="picBoard" style="width: 400px;height: 372px"></div>
  17. </div>
  18. <div id="J_operateBar" class="operateBar">
  19. <span id="J_previousStep" class="previousStep edui-for-previousstep edui-notadd">
  20. <em class="icon edui-icon"></em>
  21. <em class="text">
  22. </em>
  23. </span>
  24. <span id="J_nextStep" class="nextStep edui-for-nextstep edui-notadd">
  25. <em class="icon edui-icon "></em>
  26. <em class="text">
  27. </em>
  28. </span>
  29. <span id="J_clearBoard" class="clearBoard edui-for-clearboard edui-notadd">
  30. <em class="icon edui-icon" ></em>
  31. <em class="text">
  32. </em>
  33. </span>
  34. <span id="J_sacleBoard" class="scaleBoard edui-for-scaleboard edui-notadd">
  35. <em class="icon edui-icon"></em>
  36. <em class="text">
  37. </em>
  38. </span>
  39. </div>
  40. </div>
  41. <div class="drawToolbar border_style1">
  42. <div id="J_colorBar" class="colorBar"></div>
  43. <div id="J_brushBar" class="sectionBar edui-for-brush edui-notadd">
  44. <em class="brushIcon edui-icon"></em>
  45. <a href="javascript:void(0)" class="size1">1</a>
  46. <a href="javascript:void(0)" class="size2">3</a>
  47. <a href="javascript:void(0)" class="size3">5</a>
  48. <a href="javascript:void(0)" class="size4">7</a>
  49. </div>
  50. <div id="J_eraserBar" class="sectionBar edui-for-removeformat edui-notadd">
  51. <em class="eraserIcon edui-icon"></em>
  52. <a href="javascript:void(0)" class="size1">1</a>
  53. <a href="javascript:void(0)" class="size2">3</a>
  54. <a href="javascript:void(0)" class="size3">5</a>
  55. <a href="javascript:void(0)" class="size4">7</a>
  56. </div>
  57. <div class="sectionBar">
  58. <div id="J_addImg" class="addImgH">
  59. <!--<em class="icon"></em>-->
  60. <em class="text"><var id="lang_input_addPic"></var></em>
  61. <form method="post" id="fileForm" enctype="multipart/form-data" class="addImgH_form" target="up">
  62. <input type="file" name="upfile" id="J_imgTxt"
  63. accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp"/>
  64. </form>
  65. <iframe name="up" style="display: none"></iframe>
  66. </div>
  67. </div>
  68. <div class="sectionBar">
  69. <span id="J_removeImg" class="removeImg">
  70. <!--<em class="icon"></em>-->
  71. <em class="text"><var id="lang_input_removePic"></var></em>
  72. </span>
  73. </div>
  74. </div>
  75. </div>
  76. <div id="J_maskLayer" class="maskLayerNull"></div>
  77. <script type="text/javascript" src="scrawl.js"></script>
  78. <script type="text/javascript">
  79. var settings = {
  80. drawBrushSize:3, //画笔初始大小
  81. drawBrushColor:"#4bacc6", //画笔初始颜色
  82. colorList:['c00000', 'ff0000', 'ffc000', 'ffff00', '92d050', '00b050', '00b0f0', '0070c0', '002060', '7030a0', 'ffffff',
  83. '000000', 'eeece1', '1f497d', '4f81bd', 'c0504d', '9bbb59', '8064a2', '4bacc6', 'f79646'], //画笔选择颜色
  84. saveNum:10 //撤销次数
  85. };
  86. var scrawlObj = new scrawl( settings );
  87. scrawlObj.isCancelScrawl = false;
  88. dialog.onok = function () {
  89. exec( scrawlObj );
  90. return false;
  91. };
  92. dialog.oncancel = function () {
  93. scrawlObj.isCancelScrawl = true;
  94. };
  95. </script>
  96. </body>
  97. </html>