UTC date to LocalTIME
@@ -45,7 +45,7 @@ if (isset($_REQUEST['block_hash']))
|
||||
header('Content-Type: application/json');
|
||||
}
|
||||
|
||||
$message = '{"hash":"'.$the_block->hash.'", "block_index":"'.$the_block->block_index.'", "time":"'.date('Y/m/d H:i:s', $the_block->time).'", "height":"'.$the_block->height.'", "topisto_outputs":"'.$the_block->topisto_outputs.'", "prev":"'.$the_block->prev_block.'", "topisto_inputs":"'.$the_block->topisto_inputs.'", "topisto_fees":"'.$the_block->topisto_fees.'", "topisto_reward":"'.$the_block->topisto_reward.'", "nonce":"'.$the_block->nonce.'", "n_tx":"'.$the_block->n_tx.'"}';
|
||||
$message = '{"hash":"'.$the_block->hash.'", "block_index":"'.$the_block->block_index.'", "time":"'.$the_block->time.'", "height":"'.$the_block->height.'", "topisto_outputs":"'.$the_block->topisto_outputs.'", "prev":"'.$the_block->prev_block.'", "topisto_inputs":"'.$the_block->topisto_inputs.'", "topisto_fees":"'.$the_block->topisto_fees.'", "topisto_reward":"'.$the_block->topisto_reward.'", "nonce":"'.$the_block->nonce.'", "n_tx":"'.$the_block->n_tx.'"}';
|
||||
|
||||
if ($_REQUEST['FULL'] == 'OK') $message = json_encode($the_block);
|
||||
|
||||
|
||||
16
images/logo/monochrome/monochrome.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
rm -f *.png
|
||||
|
||||
# monochrome
|
||||
convert ../../topisto_vert.png -monochrome topisto_tmp1.png
|
||||
composite -compose copy_opacity ../topisto_mask.png topisto_tmp1.png topisto_tmp2.png
|
||||
rm -f topisto_tmp?.png
|
||||
|
||||
# grayscale
|
||||
convert ../../topisto_vert.png -type Grayscale topisto_tmp1.png
|
||||
composite -compose copy_opacity ../topisto_mask.png topisto_tmp1.png topisto_tmp2.png
|
||||
convert topisto_tmp2.png -negate topisto_grayscale.png
|
||||
rm -f topisto_tmp?.png
|
||||
|
||||
exit 0
|
||||
BIN
images/logo/monochrome/topisto_grayscale.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
@@ -1,6 +0,0 @@
|
||||
toto=$1
|
||||
gmic ../../topisto_vert_tr.png $@ -output topisto_tmp_$toto.png
|
||||
|
||||
convert topisto_tmp_$toto.png -fuzz 10% -transparent white topisto_$toto.png
|
||||
|
||||
rm -f topisto_tmp_$toto.png
|
||||
@@ -1,32 +0,0 @@
|
||||
source gmic.sh endgrave fx_engrave 0.5,4,0,7.68,15.2,0,0,1,10,1,0,0,0,1,0 gui_merge_layers
|
||||
source gmic.sh bokeh fx_bokeh 3,8,0,30,8,4,0.3,0.2,210,210,80,160,0.7,30,20,20,1,2,170,130,20,110,0.15,0
|
||||
source gmic.sh 8bits fx_8bits 25,800,16,0
|
||||
source gmic.sh 8bits fx_8bits 25,800,16,0
|
||||
source gmic.sh
|
||||
source gmic.sh fire_edges 0.7,0.25,0.5,25,20
|
||||
source gmic.sh fire_edges fire_edges 0.7,0.25,0.5,25,20
|
||||
source gmic.sh diffusiontensors fx_diffusiontensors 10,5,3,1,0.15,1,0,3,0
|
||||
source gmic.sh feltpen fx_feltpen 300,50,1,0.1,20,5,0
|
||||
source gmic.sh gtutor_fpaint 0.5,0.5,0,0,45,0.5,0.5,0.5,0
|
||||
source gmic.sh fx_graphic_novelfxl 0,2,6,5,20,0,0.62,14,0,1,0.5,0.78,1.92,0,0,0,1,1,1,0.5,0.8,1.28
|
||||
source gmic.sh fx_illustration_look 100,0,0,0,0
|
||||
source gmic.sh fx_lylejk_painting 10,2,4,10,0
|
||||
source gmic.sh fx_painting 5,2.5,1.5,50,1,0
|
||||
source gmic.sh fx_posterize 150,30,1,6,0,0,1,0
|
||||
source gmic.sh fx_quadtree 2,1024,1.05,0,2.33,0.68,0.39,1,0
|
||||
source gmic.sh fx_vector_painting 9.37,0
|
||||
source gmic.sh boxfitting
|
||||
source gmic.sh boxfitting ,
|
||||
source gmic.sh cartoon 3,80,15
|
||||
source gmic.sh cubism ,
|
||||
source gmic.sh halftone ,
|
||||
source gmic.sh blur 2 light_relief 0.3,4,0.1,0
|
||||
source gmic.sh +sketchbw 1 reverse blur[-1] 3 blend[-2,-1] overlay
|
||||
source gmic.sh mosaic ,
|
||||
source gmic.sh linify 40
|
||||
source gmic.sh polygonize 300,1%,0.1%,3%,3%
|
||||
source gmic.sh poster_hope ,
|
||||
source gmic.sh rodilius 12,10,300,10 normalize_local 10,6
|
||||
source gmic.sh stained_glass 20%,0.1
|
||||
source gmic.sh fx_shapes 1,16,10,2,5,106.8,2,0,0,1,0
|
||||
source gmic.sh fx_shapeism 2,7,0.38,0,1,5,32,8,3,1,5,0.5,1,0,0,0,255
|
||||
|
Before Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 263 KiB |
|
Before Width: | Height: | Size: 169 KiB |
|
Before Width: | Height: | Size: 24 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 114 KiB |
|
Before Width: | Height: | Size: 184 KiB |
|
Before Width: | Height: | Size: 261 KiB |
|
Before Width: | Height: | Size: 92 KiB |
|
Before Width: | Height: | Size: 182 KiB |
|
Before Width: | Height: | Size: 204 KiB |
|
Before Width: | Height: | Size: 231 KiB |
|
Before Width: | Height: | Size: 440 KiB |
|
Before Width: | Height: | Size: 225 KiB |
|
Before Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 194 KiB |
|
Before Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 411 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 458 KiB |
|
Before Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 289 KiB |
|
Before Width: | Height: | Size: 278 KiB |
|
Before Width: | Height: | Size: 137 KiB |
BIN
images/topisto_vert_tr.gif
Normal file
|
After Width: | Height: | Size: 22 KiB |
@@ -34,6 +34,34 @@ blockchainExplorer = function(){
|
||||
return retour;
|
||||
}
|
||||
|
||||
function _convertUTCDateToLocalDate(date) {
|
||||
var newDate = new Date(date.getTime()+date.getTimezoneOffset()*60*1000);
|
||||
|
||||
var offset = date.getTimezoneOffset() / 60;
|
||||
var hours = date.getHours();
|
||||
|
||||
newDate.setHours(hours - offset);
|
||||
|
||||
return newDate;
|
||||
}
|
||||
|
||||
function _formatDate(unixtime)
|
||||
{
|
||||
var ladate = new Date(unixtime*1000);
|
||||
var ladateStr = "";
|
||||
|
||||
ladate = _convertUTCDateToLocalDate(ladate);
|
||||
|
||||
ladateStr += ladate.getFullYear();
|
||||
ladateStr += "/" +("00"+(ladate.getMonth()+1)).slice(-2);
|
||||
ladateStr += "/" +("00" + ladate.getDate()).slice(-2);
|
||||
ladateStr += " " +("00" + ladate.getHours()).slice(-2);
|
||||
ladateStr += ":" +("00" + ladate.getMinutes()).slice(-2);
|
||||
ladateStr += ":" +("00" + ladate.getSeconds()).slice(-2);
|
||||
|
||||
return ladateStr;
|
||||
}
|
||||
|
||||
function _addInfoForBlock(block)
|
||||
{
|
||||
var contenu = '';
|
||||
@@ -62,7 +90,7 @@ blockchainExplorer = function(){
|
||||
//contenu += ' <tr><td>index</td><td align="right"><b>'+block.block_index+'</b></td></tr>';
|
||||
if (_mode == 3 ) contenu += ' <tr><td>name</td><td align="right"><b>'+blockName+'</b></td></tr>';
|
||||
contenu += ' <tr><td>height</td><td align="right"><b>'+block.height+'</b></td></tr>';
|
||||
contenu += ' <tr><td>timestamp</td><td align="right"><b>'+block.time+'</b></td></tr>';
|
||||
contenu += ' <tr><td>timestamp</td><td align="right"><b>'+_formatDate(block.time)+'</b></td></tr>';
|
||||
contenu += ' <tr><td>nonce</td><td align="right"><b>'+block.nonce+'</b></td></tr>';
|
||||
contenu += ' <tr><td>nb tx</td><td align="right"><b>'+block.n_tx+'</b></td></tr>';
|
||||
contenu += ' <tr><td>outputs</td><td align="right"><b>'+_precisionRound(block.topisto_outputs).toFixed(4)+'</b></td></tr>';
|
||||
|
||||