this solves issues 2 & 3
This commit is contained in:
17
static/index.html
Normal file
17
static/index.html
Normal file
@ -0,0 +1,17 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<meta charset="UTF-8">
|
||||
<title>Page Title</title>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||||
<link rel="stylesheet" href="">
|
||||
<style></style>
|
||||
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
||||
<script src="./static/index.js"></script>
|
||||
<body>
|
||||
|
||||
<button id="reset">RESET</button>
|
||||
<div id="result"></div>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
7
static/index.js
Executable file
7
static/index.js
Executable file
@ -0,0 +1,7 @@
|
||||
$(document).ready(function(){
|
||||
$('#reset').on('click', function(){
|
||||
$.post("http://localhost:3000/110", function( data ){
|
||||
$( "#result" ).html( data );
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user