| 33 | 1 <!doctype html> | 
|  | 2 <html> | 
|  | 3 	<head> | 
|  | 4 		<meta name="viewport" content="width=device-width, initial-scale=1"> | 
|  | 5 		<style> | 
|  | 6 		</style> | 
| 40 | 7 		<script src="upload.js"></script> | 
| 33 | 8 		<script> | 
| 35 | 9 			function uploaded(input,url,filename) { | 
| 34 | 10 				console.log(url); | 
|  | 11 				let a = document.querySelector('a'); | 
|  | 12 				a.textContent = filename; | 
|  | 13 				a.setAttribute('href',url); | 
| 33 | 14 			} | 
|  | 15 		</script> | 
|  | 16 	</head> | 
|  | 17 	<body> | 
| 41 | 18 		<p>top</p> | 
|  | 19 		<p> | 
|  | 20 			<input type=file xaccept="image/*" onchange="upload(this,uploaded)"> | 
|  | 21 			<button onclick="fileButtonClick(this)">Upload File</button> | 
|  | 22 		</p> | 
|  | 23 		<p><a></a></p> | 
|  | 24 		<p>bottom</p> | 
| 33 | 25 	</body> | 
|  | 26 </html> |