-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
128 lines (113 loc) · 5.28 KB
/
index.html
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<html lang="en" class="h-100">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="Upload multiple files with javascript">
<meta name="author" content="lamhotsimamora36@gmail.com">
<meta name="generator" content="upload.js">
<meta name="title" content="Upload multiple files with javascript">
<title>Upload Files</title>
<meta name="copyright" content="Copyright@2019 | lamhotsimamora36@gmail.com" />
<meta name="language" content="Indonesian, English" />
<meta name="distribution" content="Global" />
<meta name="rating" content="General" />
<meta name="expires" content="1800" />
<meta name="theme-color" content="#E43539">
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- include this code to your HTML -->
<script src="src/upload.min.js"></script>
<!-- include this code to your HTML -->
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
main>.container {
padding: 60px 15px 0;
}
.footer {
background-color: #f5f5f5;
}
.footer>.container {
padding-right: 15px;
padding-left: 15px;
}
code {
font-size: 80%;
}
</style>
</head>
<body class="d-flex flex-column h-100">
<header>
<!-- Fixed navbar -->
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-success">
<a class="navbar-brand" target="_blank" href="https://github.com/lamhotsimamora/upload-js">Github</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="./test/test.js">Usage </a>
</li>
</ul>
</div>
</nav>
</header>
<br>
<!-- Begin page content -->
<main role="main" class="flex-shrink-0">
<div class="container">
<h1 class="mt-5">Upload Files</h1>
<p class="lead">
<div class="input-group input-group-sm mb-3">
<div class="input-group-prepend">
<span class="input-group-text" style="cursor: pointer;" onclick="infoFile('0');" id="inputGroup-sizing-sm">File 1</span>
</div>
<input type="file" id="file_1" name="file_1" class="form-control" aria-label="" aria-describedby="inputGroup-sizing-sm">
</div>
<div class="input-group input-group-sm mb-3">
<div class="input-group-prepend">
<span class="input-group-text" style="cursor: pointer;" onclick="infoFile('1');" id="inputGroup-sizing-sm">File 2</span>
</div>
<input type="file" id="file_2" name="file_2" class="form-control" aria-label="" aria-describedby="inputGroup-sizing-sm">
</div>
<div class="input-group input-group-sm mb-3">
<div class="input-group-prepend">
<span class="input-group-text" style="cursor: pointer;" onclick="infoFile('2');" id="inputGroup-sizing-sm">File 3</span>
</div>
<input type="file" id="file_3" name="file_3" class="form-control" aria-label="" aria-describedby="inputGroup-sizing-sm">
</div>
<div class="input-group input-group-sm mb-3">
<div class="input-group-prepend">
<span class="input-group-text" style="cursor: pointer;" onclick="infoFile('3');" id="inputGroup-sizing-sm">File 4</span>
</div>
<input type="file" id="file_4" name="file_4" class="form-control" aria-label="" aria-describedby="inputGroup-sizing-sm">
</div>
<button onclick="uploadNow();" type="button" class="btn btn-outline-success">Upload Now</button>
</p>
<hr>
<div class="alert alert-primary" role="alert" id="display_response">
</div><br>
<div class="alert alert-success" role="alert" id="display_info_files">
</div>
</div>
</main>
<footer class="footer mt-auto py-3">
<div class="container">
<span class="text-muted">Copyright@2023 | Lamhot Simamora</span>
</div>
</footer>
<script src="test/test.js"></script>
</body>
</html>