comparison src/test/upload.html @ 41:acb730710328

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 06 Nov 2022 17:39:21 -0700
parents 1ac7aee13eca
children
comparison
equal deleted inserted replaced
40:1ac7aee13eca 41:acb730710328
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta name="viewport" content="width=device-width, initial-scale=1"> 4 <meta name="viewport" content="width=device-width, initial-scale=1">
5 <style> 5 <style>
6 @import "/site.css";
7 </style> 6 </style>
8 <script src="upload.js"></script> 7 <script src="upload.js"></script>
9 <script> 8 <script>
10 function uploaded(input,url,filename) { 9 function uploaded(input,url,filename) {
11 console.log(url); 10 console.log(url);
14 a.setAttribute('href',url); 13 a.setAttribute('href',url);
15 } 14 }
16 </script> 15 </script>
17 </head> 16 </head>
18 <body> 17 <body>
19 <div content> 18 <p>top</p>
20 <p>top</p> 19 <p>
21 <p> 20 <input type=file xaccept="image/*" onchange="upload(this,uploaded)">
22 <input type=file xaccept="image/*" onchange="upload(this,uploaded)"> 21 <button onclick="fileButtonClick(this)">Upload File</button>
23 <button onclick="fileButtonClick(this)">Upload File</button> 22 </p>
24 </p> 23 <p><a></a></p>
25 <p><a></a></p> 24 <p>bottom</p>
26 <p>bottom</p>
27 </div>
28 </body> 25 </body>
29 </html> 26 </html>