Superposer l'image et les infos. Avec une checkbox
This commit is contained in:
13
index.php
13
index.php
@@ -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 </label><input type="checkbox" onchange="showInfos(this)" checked>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user