diff --git a/src/template/ACR_template.html b/src/template/ACR_template.html index 10a4aea..4f742e1 100644 --- a/src/template/ACR_template.html +++ b/src/template/ACR_template.html @@ -588,9 +588,11 @@ $('.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']) +} /* Called as a listener whenever an input is answered in qualification @@ -972,12 +974,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 @@ -987,14 +993,14 @@ /** 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 that 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); -} +function show_message_too_long_loading(){ + 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); +} /** called when all videos are loaded @@ -2486,10 +2492,12 @@

Payment:

@@ -3003,8 +3011,8 @@

Ratings

-