handle Socialnetworkmaintaining from Irssi script (motivated by newly created wiki page)

This commit is contained in:
Fabien Benetou
2011-07-19 10:44:55 +02:00
parent 82bb4a414e
commit ee5dbdcfee

View File

@@ -42,7 +42,7 @@ function responseCheck(task) {
timeThreshold = 600;
aboveThreshold = ( timeThreshold < time_spent );
aboveThreshold = true; //kept until actived to maintain previous behavior
if (task == 'Reading\n' || task == 'Programming\n'){
if (task == 'Reading\n' || task == 'Programming\n' || task == 'Socialnetworkmaintaining\n'){
if ( !aboveThreshold ) {
//under threshold, just display a warning and the content
document.body.innerHTML="You should be focusing on <a href=\""+cognitiveEnvironmentURL+task+"\">"