diff --git a/src/template/ACR_template.html b/src/template/ACR_template.html index d77f1c1..059230b 100644 --- a/src/template/ACR_template.html +++ b/src/template/ACR_template.html @@ -602,8 +602,10 @@ $('.training_time').html(config['forceRetrainingInHours']+" hours" ); $('.question_number_training').html(config['trainingUrls'].length); $('.question_number').html(config['questionUrls'].length); - $('.instruction_device').html(config['device_accepted_device'].join()); - $('.scale_levels').html(config['scale_points']) + $('.instruction_device').html(config['device_accepted_device'].join()); + $('.scale_levels').html(config['scale_points']) + $('.min_resolution').html(config.min_resolution.w + 'x' + config.min_resolution.h) + $('.min_speed').html(config['internet_speed_Mbps']) } /* @@ -986,12 +988,16 @@ record_screen_size(); record_os(); - if (refresh_rate_passed && resolution_check && device_accepted){ - activate_hit(); - }else{ - //alert("Unfortunately your hardware did not pass the minimum requirements. You may refresh this page once, if you see this message for the second time, please return this HIT."); - disableTheHIT(Hide_HIT_REASON.AUTO_TEST_FAILED); - } + if (refresh_rate_passed && resolution_check && device_accepted){ + activate_hit(); + }else{ + if(!resolution_check){ + alert('Your screen resolution is below the required ' + + config.min_resolution.w + 'x' + config.min_resolution.h + '.'); + } + //alert("Unfortunately your hardware did not pass the minimum requirements. You may refresh this page once, if you see this message for the second time, please return this HIT."); + disableTheHIT(Hide_HIT_REASON.AUTO_TEST_FAILED); + } } } //just tmp for test @@ -1002,12 +1008,12 @@ Called when downloading of all videos took too long, show a message and block the hit. **/ function show_message_too_long_loading(){ - if(page_loading_timer){ - clearTimeout(page_loading_timer); - page_loading_timer= null; - } - alert('It looks like your Internet connection is too slow for this task. Please return this HIT and try again later with a better network connection. Thanks'); - disableTheHIT(Hide_HIT_REASON.AUTO_TEST_FAILED); + if(page_loading_timer){ + clearTimeout(page_loading_timer); + page_loading_timer= null; + } + alert('It looks like that your Internet connection is below the required ' + config['internet_speed_Mbps'] + ' Mbps. Please return this hit and try again later with a better network connection. Thanks'); + disableTheHIT(Hide_HIT_REASON.AUTO_TEST_FAILED); } /** @@ -2509,10 +2515,12 @@
Payment:
@@ -3071,7 +3079,7 @@Unfortunately your hardware or internet connection did not pass the minimum requirements. You may refresh this page once, if you see this message for the second time, please return this HIT.
+Unfortunately your hardware or internet connection did not meet the minimum requirements (resolution , download speed Mbps). You may refresh this page once, if you see this message for the second time, please return this HIT.
diff --git a/src/template/DCR_template.html b/src/template/DCR_template.html
index 3c20370..5bad471 100644
--- a/src/template/DCR_template.html
+++ b/src/template/DCR_template.html
@@ -672,7 +672,10 @@
$('.training_time').html(config['forceRetrainingInHours']+" hours" );
$('.question_number_training').html(config['trainingUrls'].length);
$('.question_number').html(config['questionUrls'].length);
- $('.instruction_device').html(config['device_accepted_device'].join());
+ $('.instruction_device').html(config['device_accepted_device'].join());
+
+ $('.min_resolution').html(config.min_resolution.w + 'x' + config.min_resolution.h);
+ $('.min_speed').html(config['internet_speed_Mbps']);
dcr = 'Within each pair only the second clip is processed.' +
'At the end of each paired presentation, you should evaluate the impairment of the second clip (Clip B) with respect to the first clip (Clip A).';
@@ -1070,12 +1073,16 @@
record_screen_size();
record_os();
- if (refresh_rate_passed && resolution_check && device_accepted){
- activate_hit();
- }else{
- //alert("Unfortunately your hardware did not pass the minimum requirements. You may refresh this page once, if you see this message for the second time, please return this HIT.");
- disableTheHIT(Hide_HIT_REASON.AUTO_TEST_FAILED);
- }
+ if (refresh_rate_passed && resolution_check && device_accepted){
+ activate_hit();
+ }else{
+ if(!resolution_check){
+ alert('Your screen resolution is below the required ' +
+ config.min_resolution.w + 'x' + config.min_resolution.h + '.');
+ }
+ //alert("Unfortunately your hardware did not pass the minimum requirements. You may refresh this page once, if you see this message for the second time, please return this HIT.");
+ disableTheHIT(Hide_HIT_REASON.AUTO_TEST_FAILED);
+ }
}
}
@@ -1090,7 +1097,7 @@
clearTimeout(page_loading_timer);
page_loading_timer= null;
}
- alert('It looks like your Internet connection is too slow for this task. Please return this HIT and try it later with a better network connection. Thanks');
+ alert('It looks like that your Internet connection is below the required ' + config['internet_speed_Mbps'] + ' Mbps. Please return this hit and try again later with a better network connection. Thanks');
disableTheHIT(Hide_HIT_REASON.AUTO_TEST_FAILED);
}
@@ -2756,8 +2763,10 @@ Payment:
The result of this experiment is very important for us and other scientists working in this area. We have methods that analyze the consistency of your answers. We will use these methods to rank the submitted assignments according to quality.
@@ -3311,7 +3320,7 @@Unfortunately your hardware/connection did not pass the minimum requirements. You may refresh this page once, if you see this message for the second time, please return this HIT and try again in about 1 hour. If you try it sooner, you may see a message that there is no "There is no assignments that match to your qualification or device/connection."
+Unfortunately your hardware/connection did not meet the minimum requirements (resolution , download speed Mbps). You may refresh this page once, if you see this message for the second time, please return this HIT and try again in about 1 hour. If you try it sooner, you may see a message that there is no "There is no assignments that match to your qualification or device/connection."
diff --git a/src/template/avatar_template.html b/src/template/avatar_template.html
index cf4f1d7..ad93b5e 100644
--- a/src/template/avatar_template.html
+++ b/src/template/avatar_template.html
@@ -752,7 +752,9 @@
$('.training_time').html(config['forceRetrainingInHours']+" hours" );
$('.question_number_training').html(config['trainingUrls'].length);
$('.question_number').html(config['questionUrls'].length);
- $('.instruction_device').html(config['device_accepted_device'].join());
+ $('.instruction_device').html(config['device_accepted_device'].join());
+ $('.min_resolution').html(config.min_resolution.w + 'x' + config.min_resolution.h);
+ $('.min_speed').html(config['internet_speed_Mbps']);
if (config['template']=="avatar_b"){
place_holder_task = "Imagine you want to participate in an online meeting related to your work. You or your counterpart will be represented by an avatar. For each question, please watch the provided video. On the left there is an avatar representation whereas on the right there is the real video. Provide your opinion on how well the provided avatar represents the facial expressions of the person in the video.";
place_holder_question = "Watch the video with the avatar on the left and the real video on the right. How well does the avatar represent the person and their facial expression in the video?";
@@ -1169,12 +1171,16 @@
record_screen_size();
record_os();
- if (refresh_rate_passed && resolution_check && device_accepted){
- activate_hit();
- }else{
- //alert("Unfortunately your hardware did not pass the minimum requirements. You may refresh this page once, if you see this message for the second time, please return this HIT.");
- disableTheHIT(Hide_HIT_REASON.AUTO_TEST_FAILED);
- }
+ if (refresh_rate_passed && resolution_check && device_accepted){
+ activate_hit();
+ }else{
+ if(!resolution_check){
+ alert('Your screen resolution is below the required ' +
+ config.min_resolution.w + 'x' + config.min_resolution.h + '.');
+ }
+ //alert("Unfortunately your hardware did not pass the minimum requirements. You may refresh this page once, if you see this message for the second time, please return this HIT.");
+ disableTheHIT(Hide_HIT_REASON.AUTO_TEST_FAILED);
+ }
}
}
//just tmp for test
@@ -1185,12 +1191,12 @@
Called when downloading of all videos took too long, show a message and block the hit.
**/
function show_message_too_long_loading(){
- if(page_loading_timer){
- clearTimeout(page_loading_timer);
- page_loading_timer= null;
- }
- alert('It looks like your Internet connection is too slow for this task. Please return this HIT and try again later with a better network connection. Thanks');
- disableTheHIT(Hide_HIT_REASON.AUTO_TEST_FAILED);
+ if(page_loading_timer){
+ clearTimeout(page_loading_timer);
+ page_loading_timer= null;
+ }
+ alert('It looks like that your Internet connection is below the required ' + config['internet_speed_Mbps'] + ' Mbps. Please return this hit and try again later with a better network connection. Thanks');
+ disableTheHIT(Hide_HIT_REASON.AUTO_TEST_FAILED);
}
/**
@@ -3058,10 +3064,12 @@ Payment:
@@ -3652,7 +3660,7 @@Unfortunately your hardware or internet connection did not pass the minimum requirements. You may refresh this page once, if you see this message for the second time, please return this HIT.
+Unfortunately your hardware or internet connection did not meet the minimum requirements (resolution , download speed Mbps). You may refresh this page once, if you see this message for the second time, please return this HIT.