mirror of
https://github.com/twisterarmy/twister-calm.git
synced 2025-01-12 16:07:58 +00:00
update
increased dht indicator range
This commit is contained in:
parent
3481973c1c
commit
75bbf81ebf
16
js/calm.js
16
js/calm.js
@ -16,14 +16,14 @@ $(function(){
|
|||||||
|
|
||||||
function dhtIndicatorBg(){
|
function dhtIndicatorBg(){
|
||||||
var bgcolor = '';
|
var bgcolor = '';
|
||||||
if(twisterDhtNodes <= 10){bgcolor = '#770900'
|
if(twisterDhtNodes <= 20){bgcolor = '#770900'
|
||||||
}else if(twisterDhtNodes <= 20){bgcolor = '#773400'
|
}else if(twisterDhtNodes <= 60){bgcolor = '#773400'
|
||||||
}else if(twisterDhtNodes <= 30){bgcolor = '#774c00'
|
}else if(twisterDhtNodes <= 90){bgcolor = '#774c00'
|
||||||
}else if(twisterDhtNodes <= 40){bgcolor = '#776400'
|
}else if(twisterDhtNodes <= 120){bgcolor = '#776400'
|
||||||
}else if(twisterDhtNodes <= 50){bgcolor = '#707500'
|
}else if(twisterDhtNodes <= 150){bgcolor = '#707500'
|
||||||
}else if(twisterDhtNodes <= 60){bgcolor = '#3f6900'
|
}else if(twisterDhtNodes <= 180){bgcolor = '#3f6900'
|
||||||
}else if(twisterDhtNodes <= 70){bgcolor = '#005f15'
|
}else if(twisterDhtNodes <= 210){bgcolor = '#005f15'
|
||||||
}else if(twisterDhtNodes >= 71){bgcolor = '#009922'
|
}else if(twisterDhtNodes >= 250){bgcolor = '#009922'
|
||||||
}
|
}
|
||||||
$('.userMenu-dhtindicator').animate({'background-color': bgcolor });
|
$('.userMenu-dhtindicator').animate({'background-color': bgcolor });
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user