diff --git a/public/src/css/common.css b/public/src/css/common.css index d93ad04d..f232a1fa 100644 --- a/public/src/css/common.css +++ b/public/src/css/common.css @@ -71,6 +71,10 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { .vm { vertical-align: middle; } +.bgwhite { + background-color: white; +} + .btn-group .btn+.btn, .btn-group .btn+.btn-group, .btn-group .btn-group+.btn, .btn-group .btn-group+.btn-group { margin-left: 0; } @@ -113,7 +117,6 @@ margin-left: 0; } .navbar-form { - margin-left: 20px; width: 35%; margin-top: 15px; } @@ -123,11 +126,11 @@ margin-left: 0; margin: 0; } .navbar-form { - width: 20%; + width: 15%; } } -@media (max-width: 768px) { +@media (max-width: 767px) { .navbar-form { width: auto; } @@ -142,6 +145,7 @@ margin-left: 0; font-size: 34px; font-style: italic; font-weight: 700; + overflow: hidden; } .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { @@ -150,7 +154,6 @@ margin-left: 0; .navbar-default .navbar-brand { color: #FFFFFF; - margin-right: 20px; padding: 22px 15px; } @@ -207,6 +210,7 @@ margin-left: 0; font-size: 12px; color: #eee; text-align: center; + margin-right: 10px; } .status .tooltip { @@ -388,6 +392,13 @@ margin-left: 0; background-color: #AC0015; } +.txvalues-normal { + background-color: transparent; + text-transform: none; + color: #333; + font-size: 14px; + font-weight: normal; +} .progress-bar-info { background-color: #8DC429; } /* Set the fixed height of the footer here */ @@ -511,38 +522,37 @@ margin-left: 0; color: black; } -.btn-copy, .btn-expand { - -moz-border-radius: 2px; - -webkit-border-radius: 2px; - background-color: #FFFFFF; - border-radius: 2px; - border: 2px solid #E4E4E4; +.btn-copy { color: #9b9b9b; display: inline-block; - height: 25px; - padding: 0; + height: 16px; + width: 16px; outline: none; - text-align: center; - width: 30px; + vertical-align: sub; +} + +.btn-expand { + color: #9b9b9b; + vertical-align: middle; } .btn-copy:hover, .btn-expand:hover { - background-color: #f2f2f2; + color: #000; + text-decoration: none; } .btn-copy { - background: #fff url('/img/icons/copy.png') center center no-repeat; - margin-left: 5px; + background: transparent url('/img/icons/copy.png') center center no-repeat; } + .btn-copy .tooltip { - display: inline-block; - margin-left: 10px; + display: block; + margin-left: 20px; margin-top: -2px; opacity: 0; } .btn-copy.zeroclipboard-is-hover { color: #2a6496; } .btn-copy.zeroclipboard-is-active .tooltip { opacity: 1; } -.btn-expand { margin-right: 5px; } @media (max-width: 991px) { .btn-copy { @@ -658,3 +668,15 @@ a.v_highlight_more { color: #fff; } +.secondary_navbar { + width: 100%; + background: #fff; + position: fixed; + top: 64px; + left: 0; + border: 1px solid #eee; + padding: 10px; + text-align: center; + z-index: 1000; +} + diff --git a/public/src/js/directives.js b/public/src/js/directives.js index 39a7c77f..943f3478 100644 --- a/public/src/js/directives.js +++ b/public/src/js/directives.js @@ -3,6 +3,18 @@ var ZeroClipboard = window.ZeroClipboard; angular.module('insight') + .directive("scroll", function ($window) { + return function(scope, element, attrs) { + angular.element($window).bind("scroll", function() { + if (this.pageYOffset >= 200) { + scope.secondaryNavbar = true; + } else { + scope.secondaryNavbar = false; + } + scope.$apply(); + }); + }; + }) .directive('whenScrolled', function($window) { return { restric: 'A', diff --git a/public/views/address.html b/public/views/address.html index d43c98ce..8cf6eda0 100644 --- a/public/views/address.html +++ b/public/views/address.html @@ -1,70 +1,76 @@
-
-
-

Address

-
- Loading Address Information... -
-
-
- -

{{$root.currency.getConvertion(address.balance)}}

-
- -
-

Summary

-
Confirmed
- - - - - - - - - - - - - - - - - - - -
Total Received{{$root.currency.getConvertion(address.totalReceived)}}
Total Sent{{$root.currency.getConvertion(address.totalSent)}}
Final Balance{{$root.currency.getConvertion(address.balance)}}
No. Transactions{{address.txApperances}}
-
-
Unconfirmed
- - - - - - - - - - - - -
Unconfirmed Txs Balance{{$root.currency.getConvertion(address.unconfirmedBalance)}}
No. Transactions{{address.unconfirmedTxApperances}}
-
- -
+
+
+
+ + Address {{address.addrStr}} + +
-
-
-
-
-

Transactions Transactions for this address

-
+
+ Final Balance {{$root.currency.getConvertion(address.balance) || address.balance + ' BTC' }}
-
+
+

Address {{$root.currency.getConvertion(address.balance) || address.balance + ' BTC'}}

+
+ Loading Address Information... +
+
+
+ Address + {{address.addrStr}} + +
+

Summary confirmed

+
+
+ + + + + + + + + + + + + + + + + + + +
Total Received{{$root.currency.getConvertion(address.totalReceived) || address.totalReceived + ' BTC'}}
Total Sent{{$root.currency.getConvertion(address.totalSent) || address.totalSent + ' BTC'}}
Final Balance{{$root.currency.getConvertion(address.balance) || address.balance + ' BTC'}}
No. Transactions{{address.txApperances}}
+
+
+ +
+
+
+

Unconfirmed

+ + + + + + + + + + + + +
Unconfirmed Txs Balance{{$root.currency.getConvertion(address.unconfirmedBalance)}}
No. Transactions{{address.unconfirmedTxApperances}}
+
+
+

Transactions

+
+
+
diff --git a/public/views/block.html b/public/views/block.html index 78f1a89d..e3b9ed01 100644 --- a/public/views/block.html +++ b/public/views/block.html @@ -1,118 +1,119 @@
-
-
-
- Loading Block... -
-
-
- -

#{{block.height}}

-
- -
- - - - - - - - - - - -
Previous Block{{block.height-1}}
Next Block{{block.height+1}}
-
+
+
+ -
-
- -
-

Block #{{block.height}}

-

Summary

-
-
- Loading Block Details... +
+
+ Block #{{block.height}} · + Hash {{block.hash}} +
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - -
Number Of Transactions{{block.tx.length}} -
Height{{block.height}} - (Mainchain) - (Orphaned) -
Block Reward{{$root.currency.getConvertion(block.reward)}}
Timestamp{{block.time * 1000 | date:'medium'}}
Mined by - {{block.poolInfo.poolName}} -
Merkle Root - - {{block.merkleroot}} -
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
Difficulty {{block.difficulty}}
Bits {{block.bits}}
Size (bytes) {{block.size}}
Version {{block.version}}
Nonce {{block.nonce}}
-
-
- -
-

Transactions

-
+
+

Block #{{block.height}}

+
+
+ Loading Block... +
+
+
+
+ BlockHash + {{block.hash}} + +
+

Summary

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Number Of Transactions{{block.tx.length}}
Height{{block.height}} + (Mainchain) + (Orphaned) +
Block Reward{{$root.currency.getConvertion(block.reward) || block.reward + ' BTC'}}
Timestamp{{block.time * 1000 | date:'medium'}}
Mined by + {{block.poolInfo.poolName}} +
Merkle Root +
+ + {{block.merkleroot}} +
+
Previous Block{{block.height-1}}
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
Difficulty {{block.difficulty}}
Bits {{block.bits}}
Size (bytes) {{block.size}}
Version {{block.version}}
Nonce {{block.nonce}}
Next Block{{block.height+1}}
+
+
+ +
+

Transactions

+
+
diff --git a/public/views/includes/currency.html b/public/views/includes/currency.html index 1d4be453..87debb23 100644 --- a/public/views/includes/currency.html +++ b/public/views/includes/currency.html @@ -1,9 +1,15 @@ -
- Currency: -
- - USD - BTC - mBTC -
-
\ No newline at end of file + + {{currency.symbol}} + + + diff --git a/public/views/includes/header.html b/public/views/includes/header.html index cf6660f0..7c1a860e 100644 --- a/public/views/includes/header.html +++ b/public/views/includes/header.html @@ -42,6 +42,7 @@ Height {{totalBlocks || info.blocks}} + diff --git a/public/views/transaction.html b/public/views/transaction.html index c0cf9bbd..f50311fd 100644 --- a/public/views/transaction.html +++ b/public/views/transaction.html @@ -1,60 +1,62 @@
- -
-
-
- Loading Transaction... +
+
+
+ + Transaction {{tx.txid}} + +
-
-
- -
-
- - -
-

Summary

- - - - - - - - - - - - - - - - - - -
Size {{tx.size}} (bytes)
Received Time {{tx.firstSeenTs * 1000|date:'medium'}}N/A
Mined Time {{tx.time * 1000|date:'medium'}}N/A
+
+ {{tx.confirmations}} Confirmations + Unconfirmed Transaction! + {{$root.currency.getConvertion(tx.valueOut) || tx.valueOut + ' BTC' }}
-
-
-

Transaction +

+
+

Transaction Input Output - {{v_index}} + {{v_index}} -

-
-
- Loading Transaction Details... -
+ +
+
+ Loading Transaction Details...
-
-
+
+
+
+ Transaction + {{tx.txid}} +
+

Summary

+ + + + + + + + + + + + + + + + + +
Size {{tx.size}} (bytes)
Received Time {{tx.firstSeenTs * 1000|date:'medium'}}N/A
Mined Time {{tx.time * 1000|date:'medium'}}N/A
+
+

Details

+
+
diff --git a/public/views/transaction/tx.html b/public/views/transaction/tx.html index 81a0bdc7..f3812057 100644 --- a/public/views/transaction/tx.html +++ b/public/views/transaction/tx.html @@ -1,19 +1,22 @@
- -
- -
- first seen at - -
-
- mined at - +
+
+ first seen at + +
+
+ mined at + +
@@ -31,7 +34,7 @@
-

{{$root.currency.getConvertion(vin.value)}}

+

{{$root.currency.getConvertion(vin.value) || vin.value + ' BTC'}}

{{vin.addr}} {{vin.addr}} @@ -56,7 +59,7 @@ show all
-

{{$root.currency.getConvertion(vin.value)}}

+

{{$root.currency.getConvertion(vin.value) || vin.value + ' BTC'}}

   {{vin.addr}} @@ -104,7 +107,7 @@

- {{$root.currency.getConvertion(vout.value)}} + {{$root.currency.getConvertion(vout.value) || vout.value + ' BTC' }} (S) (U)

@@ -130,7 +133,7 @@
-

{{$root.currency.getConvertion(vout.value)}} +

{{$root.currency.getConvertion(vout.value) || vout.value + ' BTC'}} (U)   

@@ -165,23 +168,18 @@
-
-
- - BlockHash - {{tx.blockhash}} - - -
+
+ BlockHash {{tx.blockhash}} +
- Fees: {{$root.currency.getConvertion(tx.fees)}} + Fees: {{$root.currency.getConvertion(tx.fees) || tx.fees + 'BTC'}}
{{tx.confirmations}} Confirmations Unconfirmed Transaction! - {{$root.currency.getConvertion(tx.valueOut)}} + {{$root.currency.getConvertion(tx.valueOut) || tx.valueOut + ' BTC' }}