index.html 916 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <html>
  2. <head>
  3. <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  4. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
  5. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
  6. </head>
  7. <body>
  8. <h6>Home App</h6>
  9. <input type="button" onclick="deploy_contract()" value="Deploy contract"/> </br> </br>
  10. <input type="button" onclick="connect_to_wallet()" value="Connect to wallet"/>
  11. </body>
  12. </html>
  13. <script>
  14. function deploy_contract()
  15. {
  16. alert("ceva");
  17. $.ajax({
  18. type: 'POST',
  19. url: "HomeApp/deploy_contract_function/",
  20. data: "test",
  21. dataType: 'text',
  22. success: function (data) {
  23. alert(data);
  24. },
  25. error: function (response) {
  26. alert("Error");
  27. }
  28. })
  29. }
  30. </script>