/home/gregorh/web/pages/cours/php/tps/tp03_secret/js/swg_obs.jsconst _0xc1e8=['target','120687ZVGySY','1436HIzLZP','submit','addEventListener','disabled','text','179SqRJNB','keypress','value','1122IHWrwL','nextElementSibling','querySelectorAll','253763jGAeoy','112855VKAMhA','Enter','179mYZtRF','DOMContentLoaded','background','getElementById','preventDefault','81548rZveDu','239xCzWFr','168wbFRXq'];const _0x9c6c=function(_0x1d2f96,_0x13f9d8){_0x1d2f96=_0x1d2f96-0x65;let _0xc1e8dc=_0xc1e8[_0x1d2f96];return _0xc1e8dc;};const _0x7cadee=_0x9c6c;(function(_0x146836,_0xd24b6d){const _0x1cd037=_0x9c6c;while(!![]){try{const _0x3fe32f=-parseInt(_0x1cd037(0x6d))*parseInt(_0x1cd037(0x76))+-parseInt(_0x1cd037(0x7b))+-parseInt(_0x1cd037(0x73))+parseInt(_0x1cd037(0x67))+-parseInt(_0x1cd037(0x68))*-parseInt(_0x1cd037(0x65))+parseInt(_0x1cd037(0x7c))*parseInt(_0x1cd037(0x70))+-parseInt(_0x1cd037(0x74));if(_0x3fe32f===_0xd24b6d)break;else _0x146836['push'](_0x146836['shift']());}catch(_0x48ada7){_0x146836['push'](_0x146836['shift']());}}}(_0xc1e8,0x2497e),document[_0x7cadee(0x6a)](_0x7cadee(0x77),function(){const _0x51ff9d=_0x7cadee;let _0x33d399=document[_0x51ff9d(0x79)]('secret-word-form'),_0x7c874c=_0x33d399[_0x51ff9d(0x72)]('input[type=\x27text\x27]:enabled');try{_0x7c874c[0x0]['focus']();}catch(_0x47f5ea){}for(input of _0x7c874c){input['addEventListener'](_0x51ff9d(0x6e),function(_0x300d93){const _0x529bf0=_0x51ff9d;_0x300d93[_0x529bf0(0x7a)]();if(_0x300d93['key']===_0x529bf0(0x75))_0x33d399[_0x529bf0(0x69)]();else{_0x300d93[_0x529bf0(0x66)][_0x529bf0(0x6f)]=_0x300d93['key'];let _0x4a6317=nextLetterInput(_0x300d93[_0x529bf0(0x66)]);if(_0x4a6317)_0x4a6317['focus']();}});}}));function nextLetterInput(_0x2d6c2e){const _0x5d80f7=_0x7cadee;let _0x102990=_0x2d6c2e[_0x5d80f7(0x71)];while(_0x102990&&(_0x102990['type']!=_0x5d80f7(0x6c)||_0x102990[_0x5d80f7(0x6b)])){_0x102990['style'][_0x5d80f7(0x78)]='red',_0x102990=_0x102990['nextElementSibling'];}return _0x102990;}