Superposer l'image et les infos. Avec une checkbox

This commit is contained in:
2019-07-28 08:52:38 +02:00
parent c0239d260e
commit 4301ad5cb5
2 changed files with 84 additions and 50 deletions

View File

@@ -22,6 +22,7 @@
<script>
$(document).ready(function(){
$('#myNavbar').on('show.bs.collapse', function () {
$('#logo_topisto').css({'height' : '30px','width' : '30px'});
$('#titre_topisto').css({'font-size' : '30px'});
@@ -41,7 +42,18 @@
}
});
});
blockchainExplorer.init(1);
});
function showInfos(element)
{
$('#blockchain').html('');
flag = 1;
if (!element.checked) flag = 0;
blockchainExplorer.init(flag);
}
</script>
</head>
@@ -74,6 +86,7 @@
<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>
</div>
</div>
</div>