not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
710 B

  1. document.body.style['text-align'] = 'center'
  2. print ('<h1>Hello, 🙋</h1>')
  3. print ('What is your name?')
  4. inputAsync(process)
  5. def process(name):
  6. if name:
  7. window.name = name
  8. print(name + '<br>')
  9. print('<h2>🔐 What is the password?</h2>', end='')
  10. inputAsync(verify)
  11. else:
  12. return False
  13. def verify(passwd):
  14. if passwd=='lala':
  15. clearScreen()
  16. print('<h2>🔓 Access Granted.</h2>', end='')
  17. print('Welcome ' + name + '!')
  18. print ('<span style="font-size:100px">👽👽</span>')
  19. return True
  20. print('<h1>🚫 Access Denied.</h1>')
  21. print('Come on, try to find the <i>passwd</i> in the code.')
  22. return False