Files
www/history.php
2019-02-09 06:14:33 +01:00

231 lines
8.4 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<title>TOPISTO</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Bangers" rel="stylesheet" type="text/css">
<link href="css/topisto.css" rel="stylesheet" type="text/css">
<link href="css/fonts.css" rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="js/lastblock.js" defer></script>
<script src="js/blockexplorer.js" defer></script>
<script>
// Init array
var cur_history_blocks = -1;
var history_blocks = [
'WHALE201810',
'BLOCK21E800',
'HURRICANE_1',
'SEGWIT',
'SEGWIT_LOCK',
'BCC',
'BIP_91_LOCK',
'HALVING_2',
'WHALE201311',
'HALVING_1',
'PIZZA',
'TOPISTO',
'LEET',
'LUCIFER',
'THE_ANSWER',
'GENESIS'
];
var height_blocks = {
'GENESIS' : 0,
'THE_ANSWER' : 42,
'LUCIFER' : 666,
'LEET' : 1337,
'TOPISTO' : 5637,
'PIZZA' : 57035,
'HALVING_1' : 210000,
'HALVING_2' : 420000,
'BIP_91_LOCK' : 477120,
'BCC' : 478559,
'SEGWIT_LOCK' : 479808,
'WHALE201311' : 270953,
'BLOCK21E800' : 528249,
'WHALE201810' : 545911,
'HURRICANE_1' : 506734,
'SEGWIT' : 481823
};
function ajouterPreviousHistoryBlock()
{
// Bloquer la navigation pendant le calcul
if (!flag_nav) return false;
flag_nav = false;
// Ajouter un div
cur_history_blocks += 1;
curblocname=history_blocks[cur_history_blocks];
console.log(curblocname);
console.log(height_blocks[curblocname]);
addDivForBlock(height_blocks[curblocname]);
// Mettre les infos du
block_hash = '?block_hash='+liste_blocks[history_blocks[cur_history_blocks]];
$.getJSON('data/getBlockInfo.php'+block_hash, function( data ) {
addInfoForBlock(data);
});
}
$(document).ready(function(){
// tooltips activation
$('[data-toggle="tooltip"]').tooltip();
// Add smooth scrolling to all links in navbar + footer link
$(".navbar a, footer a[href='#myPage']").on('click', function(event) {
// Make sure this.hash has a value before overriding default behavior
if (this.hash !== "") {
// Prevent default anchor click behavior
event.preventDefault();
// Store hash
var hash = this.hash;
// Using jQuery's animate() method to add smooth page scroll
// The optional number (900) specifies the number of milliseconds it takes to scroll to the specified area
$('html, body').animate({
scrollTop: $(hash).offset().top
}, 900, function(){
// Add hash (#) to URL when done scrolling (default click behavior)
window.location.hash = hash;
});
} // End if
});
$(window).scroll(function() {
$(".slideanim").each(function(){
var pos = $(this).offset().top;
var winTop = $(window).scrollTop();
if (pos < winTop + 600) {
ajouterPreviousHistoryBlock();
$(this).addClass("slide");
}
});
});
});
function changeMethode(la_methode)
{
cur_height = [];
cur_methode=la_methode;
return initBlockExplorer(null);
}
</script>
</head>
<body id="myPage" data-spy="scroll" data-target=".navbar" data-offset="60">
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="..">
<img id="logo_topisto" src="images/topisto_vert.png" style="border-radius:6px;display:inline-block;visibility:block;height:72px;;box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)">
<span style="vertical-align:text-bottom;display:inline-block;color:black;font-family: Bangers, sans-serif;font-size: 60px;text-shadow: 2px 2px #ffffff">TOPISTO</span>
</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="#explorer">Full Explorer</a></li>
</ul>
</div>
</div>
</nav>
<div id="explorer" class="container-fluid bg-grey" style="padding-bottom:10px">
<div class="row">
<div class="col-sm-12 text-right">
Scroll down to see the previous blocks<br>
Méthode de dessin <select onchange="changeMethode(this.value);">
<option value="hasard">hasard</option>
<option value="circle">circle</option>
<option value="circle_spline">circle_spline</option>
<option value="linegradient">linegradient</option>
<option value="mondrian">mondrian</option>
<option value="splinelineblackalpha">splinelineblackalpha</option>
<option value="treemap2">treemap2</option>
<option value="circle_line">circle_line</option>
<option value="circles_spline">circles_spline</option>
<option value="linehashed">linehashed/option>
<option value="peigne">peigne</option>
<option value="splinelinegradient">splinelinegradient</option>
<option value="veraMolnar">veraMolnar</option>
<option value="circles">circles</option>
<option value="line">line</option>
<option value="linehashedtx">linehashedtx</option>
<option value="peignealpha">peignealpha</option>
<option value="splinelineblack">splinelineblack</option>
<option value="splinelinegradientalpha">splinelinegradientalpha</option>
</select>
</div>
</div>
</div>
<div id="blockchain"></div>
<div id="contact" class="container-fluid bg-grey">
<h4 class="text-center">
<a href="#contact" title="To Top">
<span class="glyphicon glyphicon-chevron-down"></span>
</a>
PREVIOUS BLOCK
<a href="#contact" title="To Top">
<span class="glyphicon glyphicon-chevron-down"></span>
</a>
</h4>
<div class="row slideanim">
<div class="col-sm-5">
<p>Contact me</p>
<p><span class="glyphicon glyphicon-map-marker"></span> Shambala</p>
<p><span class="glyphicon glyphicon-globe"></span> Employer : Mutiny</p>
<p><span class="glyphicon glyphicon-phone"></span> +33 4 8 15 16 23 42</p>
<p>
<span class="glyphicon glyphicon-envelope"></span>
<!--Place the code below where you want the link to be displayed-->
<span id="obf"><script>document.getElementById("obf").innerHTML="<n uers=\"znvygb:nyoreg.frnaquvyf@gbcvfgb.arg?fhowrpg=pbagnpg\" gnetrg=\"_oynax\">nyoreg.frnaquvyf@gbcvfgb.arg</n>".replace(/[a-zA-Z]/g,function(c){return String.fromCharCode((c<="Z"?90:122)>=(c=c.charCodeAt(0)+13)?c:c-26);});</script>
<noscript><span style="unicode-bidi:bidi-override;direction:rtl;">ten.otsipot@slihdnaes.trebla</span></noscript></span>
</p>
</div>
<div class="col-sm-5">
bookmarks : <br>
<a href="http://inconvergent.net/" target="_blank">Inconvergent</a><br>
<a href="http://www.datasketch.es/" target="_blank">Data Sketches</a><br>
<a href="https://bit101.github.io/lab/dailies/170310.html" target="_blank">bit101-github</a><br>
<a href="http://www.imdb.com/title/tt1508021/" target="_blank">being captain zero</a><br>
</div>
<div class="col-sm-2">
PGP : <br>
<a href="page.php?id=00000000"><img src="articles/00000000/public_key_qrcode.png" width="100%; height: auto"></img></a>
</div>
</div>
</div>
<footer class="container-fluid bg-grey text-center">
<a href="#myPage" title="To Top">
<span class="glyphicon glyphicon-chevron-up"></span>
</a>
<p>Bootstrap Theme Made By <a href="https://www.w3schools.com" title="Visit w3schools">www.w3schools.com</a></p>
</footer>
</body>
</html>