From b614741751410676ab615e31abd4339416e5f41a Mon Sep 17 00:00:00 2001 From: hhCandy Date: Sun, 30 Dec 2018 03:28:11 +0800 Subject: [PATCH] change ini css state --- easyVer.min.css | 21 ++++++++++++++++++++- easyVer.min.js | 43 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 62 insertions(+), 2 deletions(-) diff --git a/easyVer.min.css b/easyVer.min.css index 832e6cd..85799e5 100644 --- a/easyVer.min.css +++ b/easyVer.min.css @@ -1 +1,20 @@ -.slider-btn{position:absolute;width:44px;height:44px;left:0;top:-7px;z-index:12;cursor:pointer;background-image:url(https://cdn.yimian.ac.cn/easyVarCode/css.png);background-position:0 -84px;transition:inherit}.ver-tips{position:absolute;left:0;bottom:-22px;background:rgba(255,255,255,.9);height:22px;line-height:22px;font-size:12px;width:100%;margin:0;text-align:left;padding:0 8px;transition:all .4s}.slider-tips{bottom:0}.ver-tips i{display:inline-block;width:22px;height:22px;vertical-align:top;background-image:url(https://cdn.yimian.ac.cn/easyVarCode/css.png);background-position:-4px -1229px}.ver-tips span{display:inline-block;vertical-align:top;line-height:22px;color:#455}.active-tips{display:block}.hidden{display:none}.re-btn{position:absolute;left:0;bottom:0;height:28px;padding:0 16px}.re-btn a{display:inline-block;width:14px;height:14px;margin:7px 0;background-image:url(https://cdn.yimian.ac.cn/easyVarCode/css.png);background-position:0 -1179px;cursor:pointer}.re-btn a:hover{background-position:0 -1193px}.verBox{position:absolute;width:100%;text-align:center;left:404px;top:0;opacity:0;transition:all 0.8s;padding-top:55px;z-index:9999;} \ No newline at end of file +.slider-btn{position:absolute;width:44px;height:44px;left:0;top:-7px;z-index:12;cursor:pointer;background-image:url(https://cdn.yimian.ac.cn/easyVarCode/css.png);background-position:0 -84px;transition:inherit} +.ver-tips{position:absolute;left:0;bottom:-22px;background:rgba(255,255,255,.9);height:22px;line-height:22px;font-size:12px;width:100%;margin:0;text-align:left;padding:0 8px;transition:all .4s} +.slider-tips{bottom:0} +.ver-tips i{display:inline-block;width:22px;height:22px;vertical-align:top;background-image:url(https://cdn.yimian.ac.cn/easyVarCode/css.png);background-position:-4px -1229px} +.ver-tips span{display:inline-block;vertical-align:top;line-height:22px;color:#455} +.active-tips{display:block} +.hidden{display:none} +.re-btn{position:absolute;left:0;bottom:0;height:28px;padding:0 16px} +.re-btn a{display:inline-block;width:14px;height:14px;margin:7px 0;background-image:url(https://cdn.yimian.ac.cn/easyVarCode/css.png);background-position:0 -1179px;cursor:pointer} +.re-btn a:hover{background-position:0 -1193px} .verBox { + position:absolute; + width:100%; + text-align:center; + left:0px; + top:0; + opacity:1; + transition:all 0.8s; + padding-top:55px; + z-index:-100; + } \ No newline at end of file diff --git a/easyVer.min.js b/easyVer.min.js index 0006b47..33f39da 100644 --- a/easyVer.min.js +++ b/easyVer.min.js @@ -297,4 +297,45 @@ var touch_pageX; } - eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}('H 7="";$(".3").m("");$(".q").w(\'t\',2(){$(".3").4({"8":"0","6":"1"})});2 5(){9({u:\'$("#9")\',h:\'i\',f:\'g\',l:2(){j(7)k(7+"()")},J:2(){}})}2 K(){$(".3").4({"8":"I","6":"0"})}G.D(\'\\n\'+\' %c 5 N L %c M://z.A/x/5 \'+\'\\n\',\'y: #B; a: #E; d:e 0;\',\'a: #F; d:e 0;\');2 C(){$(".3").4({"8":"0","6":"1"})}',50,50,'||function|verBox|css|easyVer|opacity|callBackFunctionName|left|imgVer|background|div||padding|5px|height|116|width|260|if|eval|success|html||id|block|ver|display|inline|click|el|style|on|hhCandy|color|github|com|00FFFF|show_easyVer|log|030307|4682B4|console|var|404px|error|easyVer_off|Plugin|https|Vertification'.split('|'),0,{})) \ No newline at end of file + var callBackFunctionName = ""; +$(".verBox").html("
"); + + +function easyVer() { + + $(".verBox").css({ + "left": "404px", + "opacity": "0", + "z-index":"9999" + }) + + imgVer({ + el: '$("#imgVer")', + width: '260', + height: '116', + success: function() { + if (callBackFunctionName) eval(callBackFunctionName + "()") + }, + error: function() {} + }) +} + +function easyVer_off() { + $(".verBox").css({ + "left": "404px", + "opacity": "0", + "z-index":"-100" + }) + $(".verBox").css({ + "left": "0px", + "opacity": "0" + }) +} +console.log('\n' + ' %c easyVer Vertification Plugin %c https://github.com/hhCandy/easyVer ' + '\n', 'color: #00FFFF; background: #030307; padding:5px 0;', 'background: #4682B4; padding:5px 0;'); + +function show_easyVer() { + $(".verBox").css({ + "left": "0", + "opacity": "1" + }) +} \ No newline at end of file