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