13286-Change controls in Events full screen

This commit is contained in:
Pablo Aragon 2024-04-02 18:46:41 +02:00
parent 5bc96ce1ca
commit 9eb5f31be8
3 changed files with 31 additions and 18 deletions

View File

@ -584,3 +584,20 @@ div.container-filter-buttons {
#button-start-search { #button-start-search {
width: 115px; width: 115px;
} }
.events-refresh-pure {
position: fixed;
z-index: 1;
top: 10px;
right: 10px;
width: 450px;
height: 70px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
align-items: center;
background-color: #f2f6f7;
border-radius: 15px;
padding: 0px 10px;
}

View File

@ -1892,3 +1892,7 @@ a.link-bold {
text-decoration: none; text-decoration: none;
font-weight: bold; font-weight: bold;
} }
div.events-refresh-pure {
background-color: #333;
}

View File

@ -1673,13 +1673,10 @@ $url .= '';
if ($pure) { if ($pure) {
// Fullscreen. // Fullscreen.
// Floating menu - Start. // Floating menu - Start.
echo '<div id="vc-controls" class="zindex999"">'; echo '<div id="vc-controls" class="events-refresh-pure"">';
echo '<div id="menu_tab" class="menu_tab_pure">';
echo '<ul class="mn">';
echo '<div>';
// Quit fullscreen. // Quit fullscreen.
echo '<li class="nomn">';
echo '<a target="_top" href="'.$url.'&amp;pure=0">'; echo '<a target="_top" href="'.$url.'&amp;pure=0">';
echo html_print_image( echo html_print_image(
'images/exit_fullscreen@svg.svg', 'images/exit_fullscreen@svg.svg',
@ -1690,12 +1687,10 @@ if ($pure) {
] ]
); );
echo '</a>'; echo '</a>';
echo '</li>'; echo '</div>';
// Countdown. // Countdown.
echo '<li class="nomn">';
echo '<div class="events-refr">';
echo '<div class="events-countdown"><span id="refrcounter"></span></div>';
echo '<div id="events-refr-form">'; echo '<div id="events-refr-form">';
echo __('Refresh').':'; echo __('Refresh').':';
echo html_print_select( echo html_print_select(
@ -1710,16 +1705,8 @@ if ($pure) {
false false
); );
echo '</div>'; echo '</div>';
echo '</div>';
echo '</li>';
// Console name. echo '<div class="events-countdown"><span id="refrcounter"></span></div>';
echo '<li class="nomn">';
echo '<div class="vc-title">'.__('Event viewer').'</div>';
echo '</li>';
echo '</ul>';
echo '</div>';
echo '</div>'; echo '</div>';
// Floating menu - End. // Floating menu - End.
@ -3867,4 +3854,9 @@ function show_events_graph(){
} }
}); });
} }
$(document).ready(function () {
var controls = document.querySelector('.events-refresh-pure');
autoHideElement(controls, 1000);
});
</script> </script>