Also collapse other things

pull/2317/head
int2001 2023-07-23 16:46:16 +00:00
rodzic 4919da7909
commit 6892ae7f12
4 zmienionych plików z 14 dodań i 5 usunięć

Wyświetl plik

@ -7,8 +7,8 @@
<div class="container">
<br>
<center><button type="button" class="btn" id="menutoggle"><i class="fa fa-arrow-up" id="menutoggle_i"></i></button></center>
<h2><?php echo $page_title; ?></h2>
<div class="tabs">
<h2 id="dxtitle"><?php echo $page_title; ?></h2>
<div class="tabs" id="dxtabs">
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" href="index">DXMap</a>

Wyświetl plik

@ -18,9 +18,9 @@
<br>
<center><button type="button" class="btn" id="menutoggle"><i class="fa fa-arrow-up" id="menutoggle_i"></i></button></center>
<h2><?php echo $page_title; ?></h2>
<h2 id="dxtitle"><?php echo $page_title; ?></h2>
<div class="tabs">
<div id="dxtabs" class="tabs">
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link" href="index">DXMap</a>

Wyświetl plik

@ -162,18 +162,23 @@ $(function() {
bandMapChart=render_chart(band,spots4chart);
});
}
$("#menutoggle").on("click", function() {
if ($('.navbar').is(":hidden")) {
$('.navbar').show();
$('#dxtabs').show();
$('#dxtitle').show();
$('#menutoggle_i').removeClass('fa-arrow-down');
$('#menutoggle_i').addClass('fa-arrow-up');
} else {
$('.navbar').hide();
$('#dxtabs').hide();
$('#dxtitle').hide();
$('#menutoggle_i').removeClass('fa-arrow-up');
$('#menutoggle_i').addClass('fa-arrow-down');
}
});
set_chart($('#band option:selected').val(),30);
setInterval(function () { update_chart($('#band option:selected').val(),30); },60000);
$("#band").on("change",function() {

Wyświetl plik

@ -84,10 +84,14 @@ $(function() {
$("#menutoggle").on("click", function() {
if ($('.navbar').is(":hidden")) {
$('.navbar').show();
$('#dxtabs').show();
$('#dxtitle').show();
$('#menutoggle_i').removeClass('fa-arrow-down');
$('#menutoggle_i').addClass('fa-arrow-up');
} else {
$('.navbar').hide();
$('#dxtabs').hide();
$('#dxtitle').hide();
$('#menutoggle_i').removeClass('fa-arrow-up');
$('#menutoggle_i').addClass('fa-arrow-down');
}