Kaynağa Gözat

UTC date to LocalTIME

develop
MEUNIER Thibaud 5 yıl önce
ebeveyn
işleme
f7503916ce
35 değiştirilmiş dosya ile 46 ekleme ve 40 silme
  1. +1
    -1
      data/getBlockInfo.php
  2. +16
    -0
      images/logo/monochrome/monochrome.sh
  3. BIN
      images/logo/monochrome/topisto_grayscale.png
  4. +0
    -6
      images/logo/tr (copie)/gmic.sh
  5. +0
    -32
      images/logo/tr (copie)/go.sh
  6. BIN
      images/logo/tr (copie)/topisto_8bits.png
  7. BIN
      images/logo/tr (copie)/topisto_blur.png
  8. BIN
      images/logo/tr (copie)/topisto_bokeh.png
  9. BIN
      images/logo/tr (copie)/topisto_boxfitting.png
  10. BIN
      images/logo/tr (copie)/topisto_cartoon.png
  11. BIN
      images/logo/tr (copie)/topisto_cubism.png
  12. BIN
      images/logo/tr (copie)/topisto_diffusiontensors.png
  13. BIN
      images/logo/tr (copie)/topisto_dreamsmooth.png
  14. BIN
      images/logo/tr (copie)/topisto_endgrave.png
  15. BIN
      images/logo/tr (copie)/topisto_feltpen.png
  16. BIN
      images/logo/tr (copie)/topisto_fx_graphic_novelfxl.png
  17. BIN
      images/logo/tr (copie)/topisto_fx_illustration_look.png
  18. BIN
      images/logo/tr (copie)/topisto_fx_lylejk_painting.png
  19. BIN
      images/logo/tr (copie)/topisto_fx_painting.png
  20. BIN
      images/logo/tr (copie)/topisto_fx_posterize.png
  21. BIN
      images/logo/tr (copie)/topisto_fx_quadtree.png
  22. BIN
      images/logo/tr (copie)/topisto_fx_shapeism.png
  23. BIN
      images/logo/tr (copie)/topisto_fx_shapes.png
  24. BIN
      images/logo/tr (copie)/topisto_fx_vector_painting.png
  25. BIN
      images/logo/tr (copie)/topisto_gtutor_fpaint.png
  26. BIN
      images/logo/tr (copie)/topisto_halftone.png
  27. BIN
      images/logo/tr (copie)/topisto_linify.png
  28. BIN
      images/logo/tr (copie)/topisto_mosaic.png
  29. BIN
      images/logo/tr (copie)/topisto_polygonize.png
  30. BIN
      images/logo/tr (copie)/topisto_poster_hope.png
  31. BIN
      images/logo/tr (copie)/topisto_rodilius.png
  32. BIN
      images/logo/tr (copie)/topisto_sketchbw.png
  33. BIN
      images/logo/tr (copie)/topisto_stained_glass.png
  34. BIN
      images/topisto_vert_tr.gif
  35. +29
    -1
      js/blockexplorer.js

+ 1
- 1
data/getBlockInfo.php Dosyayı Görüntüle

@ -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
- 0
images/logo/monochrome/monochrome.sh Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 33 KiB

+ 0
- 6
images/logo/tr (copie)/gmic.sh Dosyayı Görüntüle

@ -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

+ 0
- 32
images/logo/tr (copie)/go.sh Dosyayı Görüntüle

@ -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

BIN
images/logo/tr (copie)/topisto_8bits.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 4.1 KiB

BIN
images/logo/tr (copie)/topisto_blur.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 263 KiB

BIN
images/logo/tr (copie)/topisto_bokeh.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 169 KiB

BIN
images/logo/tr (copie)/topisto_boxfitting.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 24 KiB

BIN
images/logo/tr (copie)/topisto_cartoon.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 14 KiB

BIN
images/logo/tr (copie)/topisto_cubism.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 114 KiB

BIN
images/logo/tr (copie)/topisto_diffusiontensors.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 184 KiB

BIN
images/logo/tr (copie)/topisto_dreamsmooth.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 261 KiB

BIN
images/logo/tr (copie)/topisto_endgrave.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 92 KiB

BIN
images/logo/tr (copie)/topisto_feltpen.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 182 KiB

BIN
images/logo/tr (copie)/topisto_fx_graphic_novelfxl.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 204 KiB

BIN
images/logo/tr (copie)/topisto_fx_illustration_look.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 231 KiB

BIN
images/logo/tr (copie)/topisto_fx_lylejk_painting.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 440 KiB

BIN
images/logo/tr (copie)/topisto_fx_painting.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 225 KiB

BIN
images/logo/tr (copie)/topisto_fx_posterize.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 12 KiB

BIN
images/logo/tr (copie)/topisto_fx_quadtree.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 159 KiB

BIN
images/logo/tr (copie)/topisto_fx_shapeism.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 194 KiB

BIN
images/logo/tr (copie)/topisto_fx_shapes.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 920  |  Yükseklik: 1020  |  Boyut: 31 KiB

BIN
images/logo/tr (copie)/topisto_fx_vector_painting.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 46 KiB

BIN
images/logo/tr (copie)/topisto_gtutor_fpaint.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 411 KiB

BIN
images/logo/tr (copie)/topisto_halftone.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 14 KiB

BIN
images/logo/tr (copie)/topisto_linify.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 458 KiB

BIN
images/logo/tr (copie)/topisto_mosaic.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 34 KiB

BIN
images/logo/tr (copie)/topisto_polygonize.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 11 KiB

BIN
images/logo/tr (copie)/topisto_poster_hope.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 8.3 KiB

BIN
images/logo/tr (copie)/topisto_rodilius.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 289 KiB

BIN
images/logo/tr (copie)/topisto_sketchbw.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 278 KiB

BIN
images/logo/tr (copie)/topisto_stained_glass.png Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 137 KiB

BIN
images/topisto_vert_tr.gif Dosyayı Görüntüle

Önce Sonra
Genişlik: 464  |  Yükseklik: 509  |  Boyut: 22 KiB

+ 29
- 1
js/blockexplorer.js Dosyayı Görüntüle

@ -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>';

Yükleniyor…
İptal
Kaydet