diff --git a/homepage/style.css b/homepage/style.css index 69c350a..346fb2f 100644 --- a/homepage/style.css +++ b/homepage/style.css @@ -26,7 +26,7 @@ iframe { padding: 0; margin: 0; border: none; - height: 93%; + height: 90%; width: 100%; } @@ -836,4 +836,4 @@ pre#timer.bash { #ddnewline::before { content: none; -} \ No newline at end of file +} diff --git a/scripts/overview.php b/scripts/overview.php index 6b9f52f..2f55b52 100644 --- a/scripts/overview.php +++ b/scripts/overview.php @@ -495,6 +495,7 @@ window.setInterval(function(){ \ No newline at end of file + diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php index 1965313..f129dd4 100644 --- a/scripts/todays_detections.php +++ b/scripts/todays_detections.php @@ -660,9 +660,10 @@ function generateMiniGraph(elem, comname) { if (xhr.status === 200) { var detections = JSON.parse(xhr.responseText); - console.log(detections) - // Create a div element for the chart window + if (typeof(window.chartWindow) != 'undefined') { + document.body.removeChild(window.chartWindow); + } var chartWindow = document.createElement('div'); chartWindow.className = "chartdiv" chartWindow.style.position = 'fixed'; @@ -773,6 +774,7 @@ function generateMiniGraph(elem, comname) { document.body.removeChild(chartWindow); }); chartWindow.appendChild(closeButton); + window.chartWindow = chartWindow; } }; xhr.send();