This commit is contained in:
13
manage.html
13
manage.html
@@ -22,6 +22,7 @@
|
||||
|
||||
<fieldset>
|
||||
<legend>Running services</legend>
|
||||
<div id="running"></div>
|
||||
</fieldset>
|
||||
|
||||
<fieldset>
|
||||
@@ -42,8 +43,20 @@
|
||||
<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 get_containers() {
|
||||
var url = 'scan.php?op=check_containers';
|
||||
jQuery.get(url, function(data){
|
||||
alert(data);
|
||||
jQuery("#running").html(data);
|
||||
//setTimeout(get_containers, 2000);
|
||||
});
|
||||
}
|
||||
|
||||
jQuery(document).ready(function(){
|
||||
|
||||
get_containers();
|
||||
|
||||
jQuery('select#smarthost').click(function() {
|
||||
if (jQuery(this).val()=='yes') jQuery('#div_smarthost').show();
|
||||
else jQuery('#div_smarthost').hide();
|
||||
|
Reference in New Issue
Block a user