Unverified Commit 47452270 authored by bitsoko's avatar bitsoko Committed by GitHub

Update orderbook.js

parent ea822b9e
......@@ -487,3 +487,35 @@ function orderBookManager(baseX, baseCd) {
});
}
function sortOrderBookColor() {
var x = document.querySelectorAll(".element-all-coin");
var i;
for (i = 0; i < x.length; i++) {
x[i].style.display = 'none';
}
var x = document.querySelectorAll('.element-' + activeCoin.toLowerCase() + '-coin');
var i;
for (i = 0; i < x.length; i++) {
x[i].style.display = 'table-row';
}
$($("#orderbookSep").prevAll("tr.element-" + activeCoin.toLowerCase() + "-coin")[0]).css({
"background-color": "rgb(255, 188, 188)"
});
$($("#orderbookSep").nextAll("tr.element-" + activeCoin.toLowerCase() + "-coin")[0]).css({
"background-color": "rgb(153, 255, 153)"
});
// center the orderbook
$('.orderbook').animate({
scrollTop: 40
}, 1000);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment