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.

33 lines
1.1 KiB

  1. document.body.style['text-align'] = 'center'
  2. print ('<h1 style="font-size:40pt; color:white">🐍 Jappy</h1>', end='')
  3. print ('<hr>', end='')
  4. print ('<h3> Web 🌐 programming, in Python! </h3>', end='')
  5. print ('<small>HTML5, CSS3 and Javascript</small>')
  6. print ('<small><i>Make something beautiful!</i></small>', end='')
  7. print ('<hr>')
  8. print ('Examples:<br>')
  9. examples = {'memorize.pyj': '👥 Memorize Game',
  10. 'mandala.pyj': '🌺 Mandala Maker',
  11. 'input.pyj': '🔒 Async Input',
  12. 'repl.pyj': '💻 Interactive Repl',
  13. 'unicode.pyj': '🀄 Unicode Emojis'}
  14. for item in examples:
  15. button = document.createElement('button')
  16. button.innerHTML = examples[item]
  17. button.dataset.name = item
  18. button.style.width = "80%"
  19. button.style.height = "60px"
  20. button.style.fontSize = "18pt"
  21. button.style.fontFamily = 'Noto\ Mono, Noto\ Emoji'
  22. button.onclick = def (ev):
  23. parent.event_bus.trigger('example-load',
  24. ev.target.dataset.name)
  25. document.body.appendChild(button)
  26. document.body.appendChild(document.createElement('br'))