|
|
|
@ -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+"\">" |
|
|
|
|