Browse Source

testing css for txs

pull/1/head
dan_s 2 years ago
parent
commit
ac0ec9dd59
  1. 4
      var/www/dragonx.is/explorer.css
  2. 16
      var/www/explorer.dragonx.is/bin/update_blocks_redis.pl

4
var/www/dragonx.is/explorer.css

@ -934,7 +934,7 @@ span {
}
.transaction {
margin-top: 5vh;
}
.shielded {
@ -946,7 +946,7 @@ span {
margin-left: 5vh;
width: 20vh;
height: 4vh;
background-color: rgba(255, 0, 0, 0.143);
background-color: var(--shielded-bg);
border: 0.25vh solid var(--shielded-col);
border-radius: 2.5vh 2.5vh 0vh 0vh;
}

16
var/www/explorer.dragonx.is/bin/update_blocks_redis.pl

@ -38,7 +38,8 @@ $STATS->{BLOCKS_TABLE} = "";
$STATS->{TX_TABLE} = "";
my $mineraddress = "";
for my $h (1 .. $height) {
# for my $h (1 .. $height) {
for my $h (1 .. 10) {
#for my $h (910265 .. 910270) {
#last if($h < 0);
my $thisminer = "";
@ -231,7 +232,8 @@ DATA
}
#if($vouts>0) { $txtype = "DPoW"; }
my $stuff;
my $txOutline = "rgba(255, 0, 0, 0.5)";
my $txBG = "rgba(255, 0, 0, 0.1)";
if ($txtype eq "Mining") {
$stuff =<<STUFF;
@ -246,6 +248,8 @@ $from ($valueBalanceThird $ticker) => zs1??? (shielding)
STUFF
} elsif ($txtype eq "Notary") {
$txBG = "rgba(0, 255, 8, 0.1)";
$txOutline = "rgba(0, 255, 8, 0.5)";
$stuff =<<STUFF;
zs1??? => $to3 (notary)
@ -262,6 +266,8 @@ STUFF
STUFF
} else {
$txBG = "rgba(0, 255, 8, 0.1)";
$txOutline = "rgba(0, 255, 8, 0.5)"
$stuff =<<STUFF;
$from => zs1??? (fully shielded)
@ -271,10 +277,10 @@ STUFF
my $tx_table = <<HTML;
<div class="transaction">
<div class="shielded" style="--shielded-text: shielded; --shielded-col: rgba(255, 0, 0, 0.507);">
<div class="shielded" style="--shielded-bg: ${txBG}; --shielded-col: ${txOutline};">
<span>$txtype</span>
</div>
<div class="tx-container-top" style="--tx-outline: rgba(255, 0, 0, 0.507); --tx-border-bot: none;">
<div class="tx-container-top" style="--tx-outline: ${txOutline}; --tx-border-bot: none;">
<h3>Transaction</h3>
<div class="tx-reward">${valueBalance} DRGX</div>
<span>$txtime</span>
@ -287,7 +293,7 @@ STUFF
<span class="">$to</span>
</div>
</div>
<div class="tx-container-bot" style="--tx-outline: rgba(255, 0, 0, 0.507); --tx-border-top: none;">
<div class="tx-container-bot" style="--tx-outline: ${txOutline}; --tx-border-top: none;">
<div class="tx-in-out" style="--tx-io-margin-L: 45vh;">
<div class="v-in-out">
<h3 style="--v-mg-top: -4vh; --v-mg-l: -12vh; --just-con: right;">Zins</h3>

Loading…
Cancel
Save