make config for compliments more organized

This commit is contained in:
Jon Heller
2015-10-18 16:12:07 -04:00
parent 4bca536404
commit 2e812ac8ae
2 changed files with 33 additions and 30 deletions

View File

@@ -2,12 +2,12 @@ var compliments = {
complimentLocation: '.compliment',
currentCompliment: '',
complimentList: {
'morning': morning,
'afternoon': afternoon,
'evening': evening
'morning': config.compliments.morning,
'afternoon': config.compliments.afternoon,
'evening': config.compliments.evening
},
updateInterval: 30000,
fadeInterval: 4000,
updateInterval: config.compliments.interval || 30000,
fadeInterval: config.compliments.fadeInterval || 4000,
intervalId: null
};