Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getValueProgress(fraction, hours) {
- if (fraction == 'ru') {
- if (+hours < 6)
- return 99;
- if (+hours < 8)
- return 85;
- if (+hours < 10)
- return 70;
- if (+hours < 12)
- return 60;
- if (+hours < 14)
- return 50;
- if (+hours < 16)
- return 40;
- if (+hours < 18)
- return 30;
- if (+hours < 20)
- return 20;
- if (+hours < 22)
- return 10;
- } else if (fraction == 'de') {
- if (+hours < 4)
- return 98;
- if (+hours < 6)
- return 80;
- if (+hours < 8)
- return 66;
- if (+hours < 10)
- return 55;
- if (+hours < 12)
- return 43;
- if (+hours < 14)
- return 34;
- if (+hours < 16)
- return 25;
- if (+hours < 18)
- return 21;
- if (+hours < 20)
- return 15;
- if (+hours < 22)
- return 4;
- } else if (fraction == 'pl') {
- if (+hours < 5)
- return 99;
- if (+hours < 6)
- return 80;
- if (+hours < 8)
- return 78;
- if (+hours < 10)
- return 64;
- if (+hours < 12)
- return 58;
- if (+hours < 14)
- return 42;
- if (+hours < 16)
- return 37;
- if (+hours < 18)
- return 31;
- if (+hours < 20)
- return 19;
- if (+hours < 22)
- return 7;
- } else if (fraction == 'en') {
- if (+hours < 3)
- return 99;
- if (+hours < 6)
- return 80;
- if (+hours < 8)
- return 70;
- if (+hours < 10)
- return 62;
- if (+hours < 12)
- return 59;
- if (+hours < 14)
- return 48;
- if (+hours < 16)
- return 32;
- if (+hours < 18)
- return 15;
- if (+hours < 20)
- return 7;
- if (+hours < 22)
- return 2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement