Skip to content

Commit

Permalink
[fix] background color in willMembers page
Browse files Browse the repository at this point in the history
  • Loading branch information
librelois committed Jun 27, 2017
1 parent 8143b22 commit 9ff431d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/willMembers.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ module.exports = (req, res, next) => co(function *() {
// Calculer la proportion de temps restant avant l'expiration
color: function( timestamp, idtyWindow, max )
{
const MIN = 100;
let proportion = ((timestamp-currentBlockchainTimestamp)*(max-MIN))/idtyWindow;
const MIN = 120;
let proportion = (((timestamp-currentBlockchainTimestamp)*(max-MIN))/idtyWindow)+MIN;
proportion = proportion < MIN ? MIN : proportion > max ? max : proportion
let hex = parseInt( proportion ).toString(16)
return `#${hex}${hex}${hex}`
Expand Down

0 comments on commit 9ff431d

Please sign in to comment.