Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function AccesProtege() {
- var _0xe1b0x2 = window['location']['pathname'];
- _0xe1b0x2 = _0xe1b0x2['split']('/');
- _0xe1b0x2 = _0xe1b0x2[_0xe1b0x2['length'] - 1];
- _0xe1b0x2 = _0xe1b0x2['substr'](0, _0xe1b0x2['lastIndexOf']('.'));
- _0xe1b0x2 = _0xe1b0x2['replace'](new RegExp('(%20|_|-)', 'g'), '');
- pass = prompt('Mot de passe :', '');
- if (_0xe1b0x2 == pass) {
- document['getElementById']('image')['style']['display'] = 'block'
- } else {
- window['location'] = 'index.html'
- }
- }
- AccesProtege()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement