This commit is contained in:
40
index.html
40
index.html
@@ -25,18 +25,46 @@
|
||||
<div class="progress-value"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div><a href="install.html" class="stop">STOP</a></div>
|
||||
<div><a href="install.html" class="stop">STOP AND START INSTALL</a></div>
|
||||
<br>
|
||||
<br>
|
||||
<div id="redis"></div>
|
||||
<div id="previous">Scanning for previous install. Please wait...</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Optional JavaScript -->
|
||||
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.14.6/dist/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.2.1/dist/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script>
|
||||
<script>
|
||||
$(function() {
|
||||
|
||||
setTimeout(redirectToPage, 10000);
|
||||
//$("#previous").html('Scanning for previous install. Please wait...');
|
||||
|
||||
var url = 'scan.php?op=redis';
|
||||
$.get(url, function(data){
|
||||
if (data=='OK') {
|
||||
$("#redis").html('Redis server - OK');
|
||||
}
|
||||
else {
|
||||
$("#redis").html('Redis server is not available...');
|
||||
}
|
||||
});
|
||||
|
||||
var url = 'scan.php?op=init';
|
||||
$.get(url, function(data){
|
||||
if (data=='OK') {
|
||||
$("#previous").html('Previous install has found...');
|
||||
setTimeout(redirectToManage, 3000);
|
||||
}
|
||||
else {
|
||||
$("#previous").html('No previous install has found...');
|
||||
setTimeout(redirectToInstall, 3000);
|
||||
}
|
||||
});
|
||||
|
||||
//setTimeout(redirectToManage, 10000);
|
||||
|
||||
$(".progress").each(function() {
|
||||
|
||||
@@ -95,7 +123,11 @@ $(function() {
|
||||
return angle;
|
||||
}
|
||||
|
||||
function redirectToPage() {
|
||||
function redirectToInstall() {
|
||||
window.location.href = 'install.html';
|
||||
}
|
||||
|
||||
function redirectToManage() {
|
||||
window.location.href = 'manage.html';
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user