this solves issues 2 & 3

This commit is contained in:
2023-11-13 10:32:56 -07:00
parent 767f0e8bf5
commit 2c5800b945
3 changed files with 34 additions and 2 deletions

17
static/index.html Normal file
View 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
View File

@ -0,0 +1,7 @@
$(document).ready(function(){
$('#reset').on('click', function(){
$.post("http://localhost:3000/110", function( data ){
$( "#result" ).html( data );
});
});
});