-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.php
65 lines (62 loc) · 1.57 KB
/
update.php
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
<!DOCTYPE html>
<!-- Author: Scott Grivner -->
<!-- Website: scottgrivner.dev -->
<!-- Abstract: Batch Script Refresh Utility -->
<html>
<head>
<title>Batch Script Refresh Utility</title>
<link rel="icon" type="image/png" href="images/favicon.ico">
<script type="text/javascript" src="jquery-1.11.2.min.js"></script>
<script>
function refresh(){
// SHOW overlay
$('#overlay').show();
// Retrieve data:
$.ajax({
url: "complete.php",
context: document.body,
success: function(s,x){
$(this).html(s);
$('#overlay').hide();
}
});
}
$(document).ready(function(){
// Create overlay and append to body:
$('<div id="overlay"/>').css({
position: 'fixed',
top: 0,
left: 0,
width: '100%',
height: $(window).height() + 'px',
opacity:0.4,
background: 'lightgray url(loading.gif) no-repeat center',
url: 'complete.php'
}).hide().appendTo('body');
});
</script>
<style>
button
{
width:200px;
height:50px;
border: 0;
background-size: 100%; /* To fill the dimensions of container (button), or */
background-size: 200px auto; /* to specify dimensions explicitly */
}
</style>
</head>
<body>
<div style="text-align:center;">
<IMG SRC="logo.png">
</div>
<br>
<div style="text-align:center;"><b>Click the button below to run your Batch File.</b></div>
<br>
<div style="text-align:center;">
<button type="submit" onclick="refresh();">
<img src="RunScriptBtn.png">
</button>
</div>
</body>
</html>