1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <html>
- <head>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
-
- </head>
- <body>
- <h6>Home App</h6>
-
- <input type="button" onclick="deploy_contract()" value="Deploy contract"/> </br> </br>
- <input type="button" onclick="connect_to_wallet()" value="Connect to wallet"/>
- </body>
- </html>
- <script>
- function deploy_contract()
- {
- alert("ceva");
-
- $.ajax({
- type: 'POST',
- url: "HomeApp/deploy_contract_function/",
- data: "test",
- dataType: 'text',
- success: function (data) {
- alert(data);
- },
- error: function (response) {
- alert("Error");
- }
- })
- }
- </script>
|