You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
938 B
HTML
37 lines
938 B
HTML
1 year ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
<title>Java=script reactive DOM</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>Posts</h1>
|
||
|
<div id="div-post-entries"></div>
|
||
|
|
||
|
<form id="for-add-post">
|
||
|
<span>Title</span><br>
|
||
|
<input type="text" id='txt-title' /><br>
|
||
|
<span>Body</span><br>
|
||
|
<textarea type='text' id='txt-body'></textarea><br>
|
||
|
<button type="submit">Create</button>
|
||
|
</form>
|
||
|
|
||
|
<hr>
|
||
|
<h1>Edit Post</h1>
|
||
|
<form id="form-edit-post">
|
||
|
<input type=" text" id="txt-edit-id" hidden/><br>
|
||
|
<span>Title</span><br>
|
||
|
<input type="text" id='txt-edit-title' /><br>
|
||
|
<span>Body</span><br>
|
||
|
<textarea type='text' id='txt-edit-body'></textarea><br>
|
||
|
|
||
|
<button type="submit"id='btn-submit-update'>Updata</button>
|
||
|
<button id="delete-all">DELETE ALL</button></a>
|
||
|
</form>
|
||
|
|
||
|
|
||
|
|
||
|
<script type="text/javascript" src="index.js"></script>
|
||
|
</body>
|
||
|
</html>
|