Merge branch 'main' of https://nas.vincent-bouquet.fr/gitea/Vincent/reap-simulator-vincent
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<html lang="en">
|
||||
<head>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="../files/bootstrap.min.css">
|
||||
@@ -8,8 +8,8 @@
|
||||
<script src="../files/popper.min.js"></script>
|
||||
<script src="../files/bootstrap.min.js"></script>
|
||||
<script src="./base.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar fixed-top navbar-expand-md navbar-dark bg-dark">
|
||||
<div class="container">
|
||||
<a class="navbar-brand" href="./index.html"><img src="../files/robe_logo_white.svg"></a><button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar"><span class="navbar-toggler-icon"></span></button>
|
||||
@@ -362,7 +362,7 @@
|
||||
<li class="">37°C</li>
|
||||
<li class="dn">-32°C</li>
|
||||
</ul>
|
||||
<h3>Display orientation</h3>Side Botom
|
||||
<h3>Display orientation</h3>Side Bottom
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -386,7 +386,7 @@
|
||||
<li class="">34°C</li>
|
||||
<li class="">33°C</li>
|
||||
</ul>
|
||||
<h3>Display orientation</h3>Side Botom
|
||||
<h3>Display orientation</h3>Side Bottom
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -407,7 +407,7 @@
|
||||
<li class="">21°C</li>
|
||||
<li class="dn">-32°C</li>
|
||||
</ul>
|
||||
<h3>Display orientation</h3>Side Botom
|
||||
<h3>Display orientation</h3>Side Bottom
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -459,19 +459,35 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
var is_sniffing = false;
|
||||
|
||||
// CREATES MODAL FOR LOG TOOLS
|
||||
function cfgm() {
|
||||
$('#m-t').html('Logs tools');
|
||||
$('#m-f').empty();
|
||||
$('.sb').unbind();
|
||||
var tl = c_btn('Download log file', 0, ' dlog');
|
||||
if (!is_sniffing) {
|
||||
tl += c_btn('Start DMX sniff', 0, ' ddmx');
|
||||
} else {
|
||||
tl += c_btn('Stop DMX sniff', 0, ' ddmx');
|
||||
}
|
||||
$('#m-b').html(tl);
|
||||
$('#cfg-modal').modal();
|
||||
$('.dlog').bind('click', function () {
|
||||
// download logs
|
||||
close_modal()
|
||||
});
|
||||
$('.ddmx').bind('click', function () {
|
||||
// start sniff
|
||||
if (is_sniffing) {
|
||||
$('.ddmx').html('Start DMX sniff');
|
||||
is_sniffing = false;
|
||||
} else {
|
||||
$('.ddmx').html('Stop DMX sniff');
|
||||
is_sniffing = true;
|
||||
}
|
||||
close_modal()
|
||||
})
|
||||
}
|
||||
@@ -538,4 +554,4 @@
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
@@ -323,19 +323,35 @@
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
||||
var is_sniffing = false;
|
||||
|
||||
// CREATES MODAL FOR LOG TOOLS
|
||||
function cfgm() {
|
||||
$('#m-t').html('Logs tools');
|
||||
$('#m-f').empty();
|
||||
$('.sb').unbind();
|
||||
var tl = c_btn('Download log file', 0, ' dlog');
|
||||
if (!is_sniffing) {
|
||||
tl += c_btn('Start DMX sniff', 0, ' ddmx');
|
||||
} else {
|
||||
tl += c_btn('Stop DMX sniff', 0, ' ddmx');
|
||||
}
|
||||
$('#m-b').html(tl);
|
||||
$('#cfg-modal').modal();
|
||||
$('.dlog').bind('click', function () {
|
||||
// download logs
|
||||
close_modal()
|
||||
});
|
||||
$('.ddmx').bind('click', function () {
|
||||
// start sniff
|
||||
if (is_sniffing) {
|
||||
$('.ddmx').html('Start DMX sniff');
|
||||
is_sniffing = false;
|
||||
} else {
|
||||
$('.ddmx').html('Stop DMX sniff');
|
||||
is_sniffing = true;
|
||||
}
|
||||
close_modal()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user