-
Notifications
You must be signed in to change notification settings - Fork 0
/
mulitDownload.html
49 lines (45 loc) · 1.54 KB
/
mulitDownload.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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>multi download tool</title>
<link rel="stylesheet" href="bootstrap.min.css">
</head>
<body >
<form class="form-inline">
<div class="form-group" >
<label for="url">URL</label>
<input type='text' class="form-control" id="urls" size="50" placeholder="Enter Url" list='listid'>
<datalist id='listid'>
<option label='VF R&D GI 1GB' value='http://172.20.34.238/files/xiB/1GiB.bin'>
<option label='ThinkBB 1GB' value='http://download.thinkbroadband.com/1GB.zip'>
<option label='ThinkBB 10MB' value='http://download.thinkbroadband.com/10MB.zip'>
</datalist>
</div>
<div class="form-group">
<label for="url">#</label>
<select class="form-control" id="iterselect">
<option value="1">1</option>
<option value="2">2</option>
<option value="3" selected>3</option>
<option value="4">4</option>
<option value="5">5</option>
</select>
</div>
<button type="clickable" id="download-btn" class="btn btn-default">Download</button>
</form>
<script src="browser.js"></script>
<script>
document.querySelector('#download-btn').addEventListener('click', function (e) {
if ( document.getElementById('urls').value ){
var urls = document.getElementById('urls').value.split(' ');
var iter = document.getElementById('iterselect').value;
multiDownload(urls, iter);
} else {
alert("Require URL");
}
});
</script>
</body>
</html>