No Description https://cryptcheck.fr/
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.

tls.coffee.erb 463B

123456789101112131415161718
  1. $ ->
  2. tls_submit = ->
  3. host = $('#tls_check_host').val()
  4. port = $('#tls_check_port').val()
  5. if port == ''
  6. alert 'Veuillez saisir un port'
  7. return
  8. window.location.href = "<%= Rails.configuration.relative_url_root %>/tls/#{host}:#{port}"
  9. $('#tls_check_host').keypress (e) ->
  10. tls_submit() if e.which == 13
  11. return
  12. $('#tls_check_port').keypress (e) ->
  13. tls_submit() if e.which == 13
  14. return
  15. $('#tls_check_submit').click ->
  16. tls_submit()
  17. return