添加项目文件。
No files matched your search
|
After Width: | Height: | Size: 628 B |
|
After Width: | Height: | Size: 608 B |
|
After Width: | Height: | Size: 516 B |
|
After Width: | Height: | Size: 578 B |
|
After Width: | Height: | Size: 519 B |
|
After Width: | Height: | Size: 657 B |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 454 B |
|
After Width: | Height: | Size: 536 B |
|
After Width: | Height: | Size: 435 B |
|
After Width: | Height: | Size: 330 B |
|
After Width: | Height: | Size: 775 B |
|
After Width: | Height: | Size: 444 B |
|
After Width: | Height: | Size: 511 B |
@@ -0,0 +1,2 @@
|
||||
/** layuiAdmin.pro-v1.2.1 LPPL License By http://www.layui.com/admin/ */
|
||||
.border_style1,.colorBar a{box-shadow:2px 2px 5px #d3d6da}body{margin:0}table{width:100%}table td{padding:2px 4px;vertical-align:middle}a{text-decoration:none}em{font-style:normal}.border_style1{border:1px solid #ccc;border-radius:5px}.main{margin:8px;overflow:hidden}.colorBar,.operateBar{margin-top:10px;font-size:12px;text-align:center}.hot{float:left;height:335px}.drawBoard{position:relative;cursor:crosshair}.brushBorad{position:absolute;left:0;top:0;z-index:998}.picBoard{border:none;text-align:center;line-height:300px;cursor:default}.operateBar span{margin-left:10px}.drawToolbar{float:right;width:110px;height:300px;overflow:hidden}.colorBar a{display:block;width:10px;height:10px;border:1px solid #1006F1;border-radius:3px;opacity:.3}.sectionBar{margin-top:15px;font-size:12px;text-align:center}.sectionBar a{display:inline-block;width:10px;height:12px;color:#888;text-indent:-999px;opacity:.3}.size1{background:url(images/size.png) 1px center no-repeat}.size2{background:url(images/size.png) -10px center no-repeat}.size3{background:url(images/size.png) -22px center no-repeat}.size4{background:url(images/size.png) -35px center no-repeat}.addImgH{position:relative}.addImgH_form{position:absolute;left:18px;top:-1px;width:75px;height:21px;opacity:0;cursor:pointer}.addImgH_form input,.maskLayer{width:100%}.maskLayerNull{display:none}.maskLayer{position:absolute;top:0;left:0;height:100%;opacity:.7;background-color:#fff;text-align:center;font-weight:700;line-height:300px;z-index:1000}.addImgH .icon,.brushIcon,.clearBoard .icon,.clearBoardH .icon,.eraserIcon,.nextStep .icon,.nextStepH .icon,.previousStep .icon,.previousStepH .icon,.removeImg .icon,.removeImgH .icon,.scaleBoard .icon,.scaleBoardH .icon{display:inline-block;width:16px;height:16px}.previousStepH .icon{background-image:url(images/undoH.png);cursor:pointer}.previousStepH .text{color:#888;cursor:pointer}.previousStep .icon{background-image:url(images/undo.png);cursor:default}.previousStep .text{color:#ccc;cursor:default}.nextStepH .icon{background-image:url(images/redoH.png);cursor:pointer}.nextStepH .text{color:#888;cursor:pointer}.nextStep .icon{background-image:url(images/redo.png);cursor:default}.nextStep .text{color:#ccc;cursor:default}.clearBoardH .icon{background-image:url(images/emptyH.png);cursor:pointer}.clearBoardH .text{color:#888;cursor:pointer}.clearBoard .icon{background-image:url(images/empty.png);cursor:default}.clearBoard .text{color:#ccc;cursor:default}.scaleBoardH .icon{background-image:url(images/scaleH.png);cursor:pointer}.scaleBoardH .text{color:#888;cursor:pointer}.scaleBoard .icon{background-image:url(images/scale.png);cursor:default}.scaleBoard .text{color:#ccc;cursor:default}.removeImgH .icon{background-image:url(images/delimgH.png);cursor:pointer}.removeImgH .text{color:#888;cursor:pointer}.removeImg .icon{background-image:url(images/delimg.png);cursor:default}.removeImg .text{color:#ccc;cursor:default}.addImgH .icon{vertical-align:top;background-image:url(images/addimg.png)}.addImgH .text{color:#888;cursor:pointer}.brushIcon{background-image:url(images/brush.png)}.eraserIcon{background-image:url(images/eraser.png)}
|
||||
@@ -0,0 +1 @@
|
||||
<!DOCTYPE html><html><head><title></title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="robots" content="noindex, nofollow"><script src="../internal.js"></script><link rel="stylesheet" href="scrawl.css"></head><body><div class="main" id="J_wrap"><div class="hot"><div class="drawBoard border_style1"><canvas id="J_brushBoard" class="brushBorad" width="360" height="300"></canvas><div id="J_picBoard" class="picBoard" style="width:360px;height:300px"></div></div><div id="J_operateBar" class="operateBar"><span id="J_previousStep" class="previousStep"><em class="icon"></em> <em class="text"><var id="lang_input_previousStep"></var></em> </span><span id="J_nextStep" class="nextStep"><em class="icon"></em> <em class="text"><var id="lang_input_nextsStep"></var></em> </span><span id="J_clearBoard" class="clearBoard"><em class="icon"></em> <em class="text"><var id="lang_input_clear"></var></em> </span><span id="J_sacleBoard" class="scaleBoard"><em class="icon"></em> <em class="text"><var id="lang_input_ScalePic"></var></em></span></div></div><div class="drawToolbar border_style1"><div id="J_colorBar" class="colorBar"></div><div id="J_brushBar" class="sectionBar"><em class="brushIcon"></em> <a href="javascript:void(0)" class="size1">1</a> <a href="javascript:void(0)" class="size2">3</a> <a href="javascript:void(0)" class="size3">5</a> <a href="javascript:void(0)" class="size4">7</a></div><div id="J_eraserBar" class="sectionBar"><em class="eraserIcon"></em> <a href="javascript:void(0)" class="size1">1</a> <a href="javascript:void(0)" class="size2">3</a> <a href="javascript:void(0)" class="size3">5</a> <a href="javascript:void(0)" class="size4">7</a></div><div class="sectionBar"><div id="J_addImg" class="addImgH"><em class="icon"></em> <em class="text"><var id="lang_input_addPic"></var></em><form method="post" id="fileForm" enctype="multipart/form-data" class="addImgH_form" target="up"><input type="file" name="upfile" id="J_imgTxt" accept="image/gif,image/jpeg,image/png,image/jpg,image/bmp"></form><iframe name="up" style="display:none"></iframe></div></div><div class="sectionBar"><span id="J_removeImg" class="removeImg"><em class="icon"></em> <em class="text"><var id="lang_input_removePic"></var></em></span></div></div></div><div id="J_maskLayer" class="maskLayerNull"></div><script src="scrawl.js"></script><script>var settings={drawBrushSize:3,drawBrushColor:"#4bacc6",colorList:["c00000","ff0000","ffc000","ffff00","92d050","00b050","00b0f0","0070c0","002060","7030a0","ffffff","000000","eeece1","1f497d","4f81bd","c0504d","9bbb59","8064a2","4bacc6","f79646"],saveNum:10},scrawlObj=new scrawl(settings);scrawlObj.isCancelScrawl=!1,dialog.onok=function(){return exec(scrawlObj),!1},dialog.oncancel=function(){scrawlObj.isCancelScrawl=!0}</script></body></html>
|
||||
@@ -0,0 +1,2 @@
|
||||
/** layuiAdmin.pro-v1.2.1 LPPL License By http://www.layui.com/admin/ */
|
||||
;function ue_callback(e,t){function a(e,t,a,i){var r,o=0,s=0,n=e.width||a,l=e.height||i;(n>t||l>t)&&(n>=l?(o=n-t)&&(r=(o/n).toFixed(2),e.height=l-l*r,e.width=t):(s=l-t)&&(r=(s/l).toFixed(2),e.width=n-n*r,e.height=t))}var i=document,r=$G("J_picBoard"),o=i.createElement("img");removeMaskLayer(),"SUCCESS"==t?(r.innerHTML="",o.onload=function(){a(this,300),r.appendChild(o);var e=new scrawl;e.btn2Highlight("J_removeImg"),e.btn2Highlight("J_sacleBoard")},o.src=e):alert(t)}function removeMaskLayer(){var e=$G("J_maskLayer");e.className="maskLayerNull",e.innerHTML="",dialog.buttons[0].setDisabled(!1)}function addMaskLayer(e){var t=$G("J_maskLayer");dialog.buttons[0].setDisabled(!0),t.className="maskLayer",t.innerHTML=e}function exec(scrawlObj){if(scrawlObj.isScrawl){addMaskLayer(lang.scrawlUpLoading);var base64=scrawlObj.getCanvasData();if(base64){var options={timeout:1e5,onsuccess:function(xhr){if(!scrawlObj.isCancelScrawl){var responseObj;if(responseObj=eval("("+xhr.responseText+")"),"200"==responseObj.Code){var imgObj={},url=editor.options.scrawlUrlPrefix+responseObj.Data.src;imgObj.src=url,imgObj._src=url,imgObj.alt=responseObj.Data.FileName||"",imgObj.title=responseObj.Data.FileName||"",editor.execCommand("insertImage",imgObj),dialog.close()}else alert(responseObj.Msg)}},onerror:function(){alert(lang.imageError),dialog.close()}};options[editor.getOpt("scrawlFieldName")]=base64;var actionUrl=editor.getActionUrl(editor.getOpt("scrawlActionName")),params=utils.serializeParam(editor.queryCommandValue("serverparam"))||"",url=utils.formatUrl(actionUrl+(actionUrl.indexOf("?")==-1?"?":"&")+params);ajax.request(url,options)}}else addMaskLayer(lang.noScarwl+" <input type='button' value='"+lang.continueBtn+"' onclick='removeMaskLayer()'/>")}var scrawl=function(e){e&&this.initOptions(e)};!function(){var e=$G("J_brushBoard"),t=e.getContext("2d"),a=[],i=0;scrawl.prototype={isScrawl:!1,brushWidth:-1,brushColor:"",initOptions:function(e){var t=this;t.originalState(e),t._buildToolbarColor(e.colorList),t._addBoardListener(e.saveNum),t._addOPerateListener(e.saveNum),t._addColorBarListener(),t._addBrushBarListener(),t._addEraserBarListener(),t._addAddImgListener(),t._addRemoveImgListenter(),t._addScalePicListenter(),t._addClearSelectionListenter(),t._originalColorSelect(e.drawBrushColor),t._originalBrushSelect(e.drawBrushSize),t._clearSelection()},originalState:function(e){var a=this;a.brushWidth=e.drawBrushSize,a.brushColor=e.drawBrushColor,t.lineWidth=a.brushWidth,t.strokeStyle=a.brushColor,t.fillStyle="transparent",t.lineCap="round",t.fill()},_buildToolbarColor:function(e){var t=null,a=[];a.push("<table id='J_colorList'>");for(var i,r=0;i=e[r++];)(r-1)%5==0&&(1!=r&&a.push("</tr>"),a.push("<tr>")),t="#"+i,a.push("<td><a title='"+t+"' href='javascript:void(0)' style='background-color:"+t+"'></a></td>");a.push("</tr></table>"),$G("J_colorBar").innerHTML=a.join("")},_addBoardListener:function(r){var o,s=this,n=0,l=-1,c=-1,d=!1,h=!1,u=!1,p=0,m="";n=parseInt(domUtils.getComputedStyle($G("J_wrap"),"margin-left")),a.push(t.getImageData(0,0,t.canvas.width,t.canvas.height)),i+=1,domUtils.on(e,["mousedown","mousemove","mouseup","mouseout"],function(e){switch(o=browser.webkit?e.which:p,e.type){case"mousedown":p=1,m=1,d=!0,u=!1,h=!1,s.isScrawl=!0,l=e.clientX-n,c=e.clientY-n,t.beginPath();break;case"mousemove":if(!m&&0==o)return;if(!m&&o&&(l=e.clientX-n,c=e.clientY-n,t.beginPath(),m=1),u||!d)return;var a=e.clientX-n,i=e.clientY-n;t.moveTo(l,c),t.lineTo(a,i),t.stroke(),l=a,c=i,h=!0;break;case"mouseup":if(p=0,!d)return;h||(t.arc(l,c,t.lineWidth,0,2*Math.PI,!1),t.fillStyle=t.strokeStyle,t.fill()),t.closePath(),s._saveOPerate(r),d=!1,h=!1,u=!0,l=-1,c=-1;break;case"mouseout":if(m="",p=0,1==o)return;t.closePath()}})},_addOPerateListener:function(e){var r=this;domUtils.on($G("J_previousStep"),"click",function(){i>1&&(i-=1,t.clearRect(0,0,t.canvas.width,t.canvas.height),t.putImageData(a[i-1],0,0),r.btn2Highlight("J_nextStep"),1==i&&r.btn2disable("J_previousStep"))}),domUtils.on($G("J_nextStep"),"click",function(){i>0&&i<a.length&&(t.clearRect(0,0,t.canvas.width,t.canvas.height),t.putImageData(a[i],0,0),i+=1,r.btn2Highlight("J_previousStep"),i==a.length&&r.btn2disable("J_nextStep"))}),domUtils.on($G("J_clearBoard"),"click",function(){t.clearRect(0,0,t.canvas.width,t.canvas.height),a=[],r._saveOPerate(e),i=1,r.isScrawl=!1,r.btn2disable("J_previousStep"),r.btn2disable("J_nextStep"),r.btn2disable("J_clearBoard")})},_addColorBarListener:function(){var e=this;domUtils.on($G("J_colorBar"),"click",function(a){var i=e.getTarget(a),r=i.title;r&&(e._addColorSelect(i),e.brushColor=r,t.globalCompositeOperation="source-over",t.lineWidth=e.brushWidth,t.strokeStyle=r)})},_addBrushBarListener:function(){var e=this;domUtils.on($G("J_brushBar"),"click",function(a){var i=e.getTarget(a),r=browser.ie?i.innerText:i.text;r&&(e._addBESelect(i),t.globalCompositeOperation="source-over",t.lineWidth=parseInt(r),t.strokeStyle=e.brushColor,e.brushWidth=t.lineWLine truncated
|
||||