-
Notifications
You must be signed in to change notification settings - Fork 20
/
thebatchman.hta
95 lines (87 loc) · 3.61 KB
/
thebatchman.hta
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="x-ua-compatible" content="ie=9">
<script language="javascript">
(function () {
var appSize = { width: 350, height: 510 }
window.resizeTo(appSize.width, appSize.height)
window.moveTo((screen.width - appSize.width) / 2, (screen.availHeight - appSize.height) / 2)
})()
</script>
<title>The Batchman</title>
<hta:application id="app" scroll="auto" sysmenu="yes" showInTaskbar="yes" caption="yes" border="thin" icon="assets/thebatchman_icon.ico" maximizebutton="no" minimizebutton="no" navigable="yes" singleInstance="yes">
<link rel="stylesheet" href="assets/bootstrap.min.css">
<link rel="stylesheet" href="assets/custom.css">
<script language="javascript" src="assets/process.js"></script>
</head>
<body>
<nav class="navbar navbar-default mb10">
<span class="navbar-brand pt10"><img src="assets/thebatchman_icon.ico"></span>
<p class="navbar-text"><code>batch/hta -> executable</code></p>
</nav>
<div class="container-fluid pl20 pr20">
<div class="row">
<div class="col-xs-12">
<form>
<div class="form-group is-required is-ext">
<label class="control-label">Batch or HTA File <big class="text-danger">*</big></label>
<input type="file" name="srcfile" class="form-control input-sm" value="" onchange="changeDistname()">
<strong class="form-control-feedback hide">✖</strong>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<input type="checkbox" name="include">
Include other files in the source folder ?
</label>
</div>
</div>
<div class="form-group is-required is-filename">
<label class="control-label">Target Filename <big class="text-danger">*</big></label>
<div class="input-group input-group-sm">
<input type="text" name="distname" class="form-control" value="">
<span class="input-group-addon">.exe</span>
</div>
<strong class="form-control-feedback hide">✖</strong>
</div>
<div class="form-group is-ext">
<label class="control-label">Custom Icon</label>
<input type="file" name="icon" class="form-control input-sm" value="">
<strong class="form-control-feedback hide">✖</strong>
</div>
<div class="form-group mt20 mb15">
<label class="control-label">Batch Options</label>
<div class="checkbox mt0">
<label class="text-muted">
<input type="checkbox" name="hidcon" onchange="changeCompletion()" disabled>
Hide the console when running the exe ?
</label>
</div>
<div class="checkbox">
<label class="text-muted">
<input type="checkbox" name="completion" disabled>
Try to add feedback after completion ?
</label>
</div>
</div>
<div class="form-group">
<div class="col-xs-11 col-xs-offset-1 mt10">
<small class="text-muted">Tanananana... </small>
<a class="btn btn-sm btn-info" onclick="doIt()">Batchman !</a>
</div>
</div>
</form>
</div>
</div>
</div>
<div id="modal">
<div id="modal-content">
<div id="modal-btns" class="text-center mt20">
<a class="btn btn-info" onclick="location.reload()">New file</a>
<a class="btn btn-default" onclick="window.close()">Exit</a>
</div>
</div>
</div>
</body>
</html>