File tree 2 files changed +17
-5
lines changed
2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -30,10 +30,17 @@ var tmpText = `
30
30
<!DOCTYPE html>
31
31
<html>
32
32
<head>
33
- <style>
33
+ <style>
34
+ html {
35
+ height: 100%;
36
+ }
34
37
a {
35
38
color: #369;
36
39
}
40
+ body {
41
+ margin-top: 0px;
42
+ height: 100%;
43
+ }
37
44
#drop-area {
38
45
border: 2px dashed #ccc;
39
46
border-radius: 20px;
47
54
#fileElem {
48
55
display: none;
49
56
}
50
- #progress {
57
+ progress {
58
+ display: none;
51
59
width: 100%;
60
+ height: 10px;
61
+ padding-top: 1px;
62
+ margin-top: 0px;
63
+ border: 1px #0064B4;
64
+ background-color:#e6e6e6;
65
+ color: #0064B4; /*IE10*
52
66
}
53
67
</style>
54
68
</head>
@@ -117,13 +131,11 @@ function uploadFile(file, i) {
117
131
xhr.open('POST', url, true)
118
132
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest')
119
133
let p = document.getElementById('progress')
134
+ p.style.display = "inline-block"
120
135
xhr.upload.onprogress = function(ev) {
121
136
if(ev.lengthComputable) {
122
137
p.max = ev.total
123
138
p.value = ev.loaded
124
- console.info(p.value)
125
- console.info(p.max)
126
- console.info(p)
127
139
}
128
140
}
129
141
You can’t perform that action at this time.
0 commit comments