Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
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.

32 lines
577 B

  1. /* global $ redeyed */
  2. var $code = $('.code')
  3. var $config = $('.config')
  4. var $result = $('.result')
  5. function go() {
  6. var config
  7. try {
  8. config = JSON.parse($config.val())
  9. } catch (e) {
  10. $result.val('In "Redeyed Config": ' + e.toString())
  11. return
  12. }
  13. try {
  14. var code = $code.val()
  15. var result = redeyed(code, config)
  16. $result.val(result.code)
  17. } catch (e) {
  18. $result.val('In "Original Code": ' + e.toString())
  19. }
  20. }
  21. $code.val(window.redeyed.toString())
  22. $config.val(JSON.stringify(window.sampleConfig, false, 2))
  23. $('.go').click(go)
  24. go()