Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 31 additions & 23 deletions src/template/ACR_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -2486,10 +2492,12 @@ <h3 class="panel-title">
<ul>
<li>You must use a <b class="instruction_device">XX</b>, otherwise your response will be rejected</li>
<li>You must perform the task in good lighting conditions without <b>glare on your screen</b> </li>
<li>Do not change the brightness of your screen or your distance to the screen after the Setup section</li>
<li>If you finish a section and the following sections do not unlock automatically, please verify that you have answered all of the previous
checkboxes, text fields, etc. correctly
</li>
<li>Do not change the brightness of your screen or your distance to the screen after the Setup section</li>
<li>Your monitor resolution must be at least <b class="min_resolution"></b></li>
<li>Your internet connection must be at least <b class="min_speed"></b> Mbps</li>
<li>If you finish a section and the following sections do not unlock automatically, please verify that you have answered all of the previous
checkboxes, text fields, etc. correctly
</li>
</ul>

<p><b>Payment:</b></p>
Expand Down Expand Up @@ -3003,8 +3011,8 @@ <h3 class="panel-title">Ratings</h3>
</section>


<section class="container" id="automatic_test_failed" hidden>
<p>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.</p>
<section class="container" id="automatic_test_failed" hidden>
<p>Unfortunately your hardware or internet connection did not meet the minimum requirements (resolution <b class="min_resolution"></b>, download speed <b class="min_speed"></b> Mbps). You may refresh this page once, if you see this message for the second time, please return this HIT.</p>

<div class="alert alert-danger" role="alert">
<img src="https://audiosamplesp808.blob.core.windows.net/p808-assets/img/attention.png" alt="attention">
Expand Down
47 changes: 28 additions & 19 deletions src/template/DCR_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,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 <b>second clip (Clip B)</b> with respect to the <b> first clip (Clip A)</b>.';
Expand Down Expand Up @@ -1056,12 +1059,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);
}
}
}

Expand All @@ -1071,14 +1078,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 it 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 it later with a better network connection. Thanks');
disableTheHIT(Hide_HIT_REASON.AUTO_TEST_FAILED);
}

/**
Called when all videos are loaded
Expand Down Expand Up @@ -2733,8 +2740,10 @@ <h3 class="panel-title">
<ul>
<li>You must use a <b class="instruction_device">XX</b>, otherwise your response will be rejected</li>
<li>You must perform the task in good lighting conditions without <b>glare on your screen</b>. Typically a semi-dark environment is recommended. </li>
<li>Do not change the brightness of your screen or your distance to the screen after the Setup section.</li>
</ul>
<li>Do not change the brightness of your screen or your distance to the screen after the Setup section.</li>
<li>Your monitor resolution must be at least <b class="min_resolution"></b></li>
<li>Your internet connection must be at least <b class="min_speed"></b> Mbps</li>
</ul>

<p><b>Payment:</b></p>
<p>The result of this experiment is <b>very important for us and other scientists</b> 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.</p>
Expand Down Expand Up @@ -3250,8 +3259,8 @@ <h3 class="panel-title">Ratings</h3>
</div>
</section>

<section class="container" id="automatic_test_failed" hidden>
<p>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 <u>try again in about <b class="training_time">1 hour</b></u>. 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."</p>
<section class="container" id="automatic_test_failed" hidden>
<p>Unfortunately your hardware/connection did not meet the minimum requirements (resolution <b class="min_resolution"></b>, download speed <b class="min_speed"></b> Mbps). You may refresh this page once, if you see this message for the second time, please return this HIT and <u>try again in about <b class="training_time">1 hour</b></u>. 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."</p>

<div class="alert alert-danger" role="alert">
<img src="https://audiosamplesp808.blob.core.windows.net/p808-assets/img/attention.png" alt="attention">
Expand Down
44 changes: 26 additions & 18 deletions src/template/avatar_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 <b>an online meeting related to your work</b>. You or your counterpart will be represented by an avatar. For each question, please watch the provided video. On <b>left</b> there is an avatar representation whereas <b>on right there is the real video</b>. Provide your opinion on <b>how well the provided avatar represents the facial expression of person in the video</b>.";
place_holder_question = "Watch the video with <b>avatar on left</b> and <b>real video on right</b>. How well does the avatar represent the person and their facial expression in the video?";
Expand Down Expand Up @@ -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
Expand All @@ -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 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);
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);
}

/**
Expand Down Expand Up @@ -3049,10 +3055,12 @@ <h3 class="panel-title">
<li>You must use a <b class="instruction_device">XX</b>, otherwise your response will be rejected</li>
<li>You <b>must NOT use a Remote Desktop application like (like Microsoft Remote Desktop, AnyDesk, or Chrome Remote Desktop) or VPN connect</b> to visit this page.</li>
<li>You must perform the task in good lighting conditions without <b>glare on your screen</b> </li>
<li>Do not change the brightness of your screen or your distance to the screen after the Setup section</li>
<li>If you finish a section and the following sections do not unlock automatically, please verify that you have answered all of the previous
checkboxes, text fields, etc. correctly
</li>
<li>Do not change the brightness of your screen or your distance to the screen after the Setup section</li>
<li>Your monitor resolution must be at least <b class="min_resolution"></b></li>
<li>Your internet connection must be at least <b class="min_speed"></b> Mbps</li>
<li>If you finish a section and the following sections do not unlock automatically, please verify that you have answered all of the previous
checkboxes, text fields, etc. correctly
</li>
</ul>

<p><b>Payment:</b></p>
Expand Down Expand Up @@ -3597,7 +3605,7 @@ <h3 class="panel-title">Ratings</h3>


<section class="container" id="automatic_test_failed" hidden>
<p>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.</p>
<p>Unfortunately your hardware or internet connection did not meet the minimum requirements (resolution <b class="min_resolution"></b>, download speed <b class="min_speed"></b> Mbps). You may refresh this page once, if you see this message for the second time, please return this HIT.</p>

<div class="alert alert-danger" role="alert">
<img src="https://audiosamplesp808.blob.core.windows.net/p808-assets/img/attention.png" alt="attention">
Expand Down