blob: 0d614a38e1a98573710d0f7af247e79e169374e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
<!DOCTYPE html>
<head>
<title>fatalhalt file upload</title>
<style type="text/css" media="screen">
#progress {
width: 500px;
border: 1px solid black;
position: relative;
padding: 3px;
margin-right: 5px;
}
#percent {
position: absolute;
left: 50%;
}
#bar {
height: 20px;
background-color: green;
width: 0%;
}
canvas {display: block;}
body {
background: black;
position: relative;
}
#upload-section {
opacity: 0.9;
background-color: white;
position: absolute;
top: 25px;
left: 5px;
padding-left: 5px;
}
#app { display: block; background-color: #888888}
</style>
</head>
<body>
<div id="app">
{{ message }}
</div>
<canvas id="c"></canvas>
<div id="upload-section">
<h1>Upload File</h1>
<form id="uploadForm"
enctype="multipart/form-data"
action="/api/upload"
method="post">
<input type="file" id="userFileInput" name="userFile" />
</form>
<span id="status"></span>
<div id="progress">
<span id="percent">0%</span>
<div id="bar"></div>
</div>
<div id="uploadedlist" style="padding-top: 20px; padding-bottom: 5px">
<h2>Uploaded Files</h2>
<span id="filenames">
</span>
</div>
</div>
<div id="cute" style="position: absolute; bottom: 10px; left: 10px">
<img src="./img/nyancat.gif" alt="nyan" width="200" height="140" />
</div>
<script src="./js/jquery.min.js"></script>
<script src="./js/vue.min.js"></script>
<script src="./js/upload.js"></script>
<script src="./js/app.js"></script>
</body>
</html>
|