ajout mode My special Blocks list

This commit is contained in:
2020-03-27 08:25:27 +01:00
parent de74a94433
commit 723d4b38cd
2 changed files with 80 additions and 31 deletions

View File

@@ -23,6 +23,9 @@
<script>
$(document).ready(function(){
// Mask navigator scrollbar
// Doesn't work : can't scroll anymore
//$("body").css('overflow', 'hidden');
$('#myNavbar').on('show.bs.collapse', function () {
$('#logo_topisto').css({'height' : '30px','width' : '30px'});
@@ -66,9 +69,12 @@
function showInfos(element)
{
var flag = 2*parseInt($('#mode_selector').val());
$('#blockchain').html('');
flag = 1;
if (!element.checked) flag = 0;
if ($('#mode_checkbox').is(":checked")) flag += 1;
blockchainExplorer.init(flag);
}
</script>
@@ -102,8 +108,13 @@
<div id="explorer" class="container-fluid bg-grey" style="padding-bottom:10px">
<div class="row">
<div class="col-sm-12 text-right">
<br>A BTC blockchain explorer<br>Scroll down to see the previous blocks<br>
<label>show infos&nbsp;</label><input type="checkbox" onchange="showInfos(this)" checked>
<br>
<select id="mode_selector" onchange="showInfos(this)">
<option value=0>A BTC blockchain explorer</option>
<option value=1>My special Blocks list</option>
</select>
<br>Scroll down to see the previous blocks<br>
<label>show infos&nbsp;</label><input id="mode_checkbox" type="checkbox" onchange="showInfos(this)" checked>
</div>
</div>
</div>