موضوعات وبسایت : تست روانشناسی
تست شخیصت شناسی

تست بینایی سخت انلاین

تست بینایی سخت انلاین

نویسنده : نازنین رحمانی | زمان انتشار : 18 بهمن 1399 ساعت 17:11

تست شخیصت شناسی

'; }

question_template = '

{QUESTION_TEXT}

{ANSWERS}

'; jq_GetQuestionData(response.getElementsByTagName('question_data')[i], i); questions[i].is_prev = parseInt(response.getElementsByTagName('is_prev')[0].firstChild.data); questions[i].is_last = parseInt(response.getElementsByTagName('is_last')[0].firstChild.data); var div_quest_text = document.createElement("div"); var div_inside = document.createElement("div"); div_inside.id = questions[i].div_id; div_inside.style.position = 'relative'; div_inside.className = 'jq_question_inner';

question_info = ''; if (questions[i].cur_quest_type == 7) { jq_jQuery(div_quest_text).append(question_info + ''); var div_inside_hs = document.createElement("div"); div_inside_hs.id = 'quest_div'+questions[i].cur_quest_id+'_hs'; div_inside_hs.style.position = 'relative'; div_inside_hs.innerHTML = questions[i].quest_data_user; } else { div_inside.innerHTML = question_info + ''; }

div_inside.innerHTML += questions[i].quest_data; div_quest_text.appendChild(div_inside);

if (questions[i].cur_quest_type == 7) { div_quest_text.appendChild(div_inside_hs); questions[i].quest_data_user = '

'; } question_template = question_template.replace(/\{QUESTION_TEXT\}/, div_quest_text.innerHTML); question_template = question_template.replace(/\{ANSWERS\}/, questions[i].quest_data_user);

jq_getObj('jq_quiz_container').innerHTML = jq_getObj('jq_quiz_container').innerHTML + '

' + question_template + (questions[i].c_separator? question_delimeter:'') + '

';

questions[i].disabled = false; var question = response.getElementsByTagName('question_data')[i]; if (question.getElementsByTagName('quest_task')[0].firstChild.data == 'no_attempts') { jq_Disable_Question(i); var text = question.getElementsByTagName('quest_message_box')[0].firstChild.data; createPopupText(questions[i].cur_quest_id, text, 'incorrect_answer' ); } else if (question.getElementsByTagName('quest_task')[0].firstChild.data == 'disabled') { jq_Disable_Question(i); }

} for (var i = 0; i ' + totalPoint + ' 0

'); jq_jQuery('.jq_time_tick_container').prepend('

' + currentPoint + ' 0

'); jq_jQuery('.jq_time_tick_container').prepend('

' + penaltyPoint + ' 0

'); initMemory(); var limit_time = jq_jQuery(response).find('quest_limit_time').text(); if(parseInt(limit_time)) { quest_timer_sec = limit_time; jq_Start_Question_TickTack(limit_time); clearInterval(quest_timer); quest_timer = setInterval("jq_Start_Question_TickTack("+limit_time+")", 1000); } } else { jq_jQuery('.jq_quest_time_past').html(''); if(jq_jQuery('#jq_total_memory_point')){ jq_jQuery('#jq_total_memory_point').remove(); jq_jQuery('#jq_current_memory_point').remove(); jq_jQuery('#jq_penalty_memory_point').remove(); } } if(questions[i].cur_quest_type == 11){

var task = jq_jQuery(parent.response).find('task').text(); if(task != 'review_start' && task != 'review_next'){ puzzle_cur_id = questions[i].cur_quest_id; SqueezeBox.initialize({}); SqueezeBox.fromElement('index.php?option=com_joomlaquiz&task=ajaxaction.procces&ajax_task=ajax_plugin&plg_task=show&quest_type=puzzle', options); jq_jQuery('#sbox-overlay, #sbox-btn-close').click(function(){ clearInterval(quest_timer); jq_jQuery.ajax({ type: "POST", url: "index.php?option=com_joomlaquiz&task=ajaxaction.procces", data: "ajax_task=ajax_plugin&plg_task=addpoints&quest_type=puzzle" + "&quest_id=" + puzzle_cur_id + "&stu_quiz_id=" + stu_quiz_id + "&quiz_id=" + quiz_id + "&action=start" }); setTimeout("jq_QuizNextOn()", 500); }); } } } }

function getProgressBar(x, y, text) { percent = Math.round((100 / y) * x);

html = '

';

return html; }

function createPopupText(question_id, text, className) {

var div_quest = jq_getObj('qcontainer'+question_id); var divv = document.createElement("div"); divv.id = 'divv'+question_id; divv.innerHTML = text; div_quest.appendChild(divv); divv.className = className; }

function createMiniPopupText(blank_id, is_correct) {

var quest_blank = jq_getObj('blk_id_'+blank_id); var blank_value = jq_getObj('hid_blk_id_'+blank_id).value;

jq_jQuery(quest_blank).removeClass('blank_correct'); jq_jQuery(quest_blank).removeClass('blank_incorrect'); jq_jQuery(quest_blank).addClass((is_correct? 'blank_correct': 'blank_incorrect')); jq_jQuery(quest_blank).removeClass('jq_blank_droppable'); jq_jQuery(quest_blank).removeClass('ui-droppable'); jq_jQuery(quest_blank).droppable( "destroy" ); jq_jQuery(quest_blank).html(blank_value+' '); createDD(); }

function removePopupText(question_id) { var divv = jq_getObj('divv'+question_id); if(divv){ try { divv.parentNode.removeChild(divv); } catch(e){} } }

function pagination_go(page_num) { var http_request = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) { http_request.overrideMimeType('text/xml'); } } else if (window.ActiveXObject) { // IE try { http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!http_request) { return false; } http_request.onreadystatechange = function() { jq_showpage(http_request); }; var url_prefix2 = jq_clean_amp('&lang=fa&user_unique_id=' + user_unique_id); var url = jq_clean_amp('&stu_quiz_id='+stu_quiz_id+'&ajax_task=showpage&quest_per_page='+jq_getObj('quest_per_page').value+'&limitstart='+page_num+'&quiz=1');

lp_url_prefix2 = jq_clean_amp("tmpl=component&option=com_joomlaquiz&Itemid=597&task=ajaxaction.procces" + url_prefix2); var post_target = jq_clean_amp('/index.php?tmpl=component&option=com_joomlaquiz&Itemid=597&task=ajaxaction.procces'); http_request.open("POST", jq_clean_amp(post_target), true); http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http_request.send(jq_clean_amp(lp_url_prefix2 + url)); var div_inside = jq_getObj('jq_feed_questions'); div_inside.align = 'center'; }

function jq_clean_amp(str) { var ampChar = String.fromCharCode(38); return str.replace(/\&/gi, ampChar); }

function jq_showpage(http_request){ if (http_request.readyState == 4) { if ((http_request.status == 200)) { if(http_request.responseXML.documentElement == null){ try { http_request.responseXML.loadXML(http_request.responseText); } catch (e) { } } var div_inside = jq_getObj('jq_feed_questions'); var response = http_request.responseXML.documentElement; try { var $quiz_statistic = jq_jQuery(response).find('quiz_statistic').text(); div_inside.innerHTML = $quiz_statistic; } catch (e) {} } } }

function jq_MakeRequest(url, do_clear, silent) { var do_silent = parseInt(silent);

if (!do_silent) if (do_clear == 1) jq_UpdateTaskDiv('hide');

var http_request = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new XMLHttpRequest(); if (http_request.overrideMimeType) { http_request.overrideMimeType('text/xml'); } } else if (window.ActiveXObject) { // IE try { http_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) { try { http_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {} } } if (!http_request) { return false; } if (do_clear == 1 && !do_silent) { jq_getObj('jq_quiz_container').style.display = 'none'; } try{ ScrollToElement(jq_getObj('jq_quiz_container_title'));} catch(e) {}

if (!do_silent){ jq_jQuery('#jq_quiz_container1').css('opacity', 0.7); jq_jQuery('#jq_quiz_container1').addClass('jq_ajax_loader'); }

quiz_blocked == 1; http_request.onreadystatechange = function() { jq_AnalizeRequest(http_request); }; var url_prefix2 = '&user_unique_id=' + user_unique_id; lp_url_prefix2 = jq_clean_amp("tmpl=component&lang=fa&option=com_joomlaquiz&Itemid=597&task=ajaxaction.procces" + url_prefix2); var post_target = jq_clean_amp('/index.php?tmpl=component&option=com_joomlaquiz&Itemid=597&task=ajaxaction.procces'); http_request.open("POST", post_target, true); http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http_request.send(jq_clean_amp(lp_url_prefix2 + url)); stop_timer = 2; }

var globalImageWidth = [], globalImageHeight = [], globalScaleImageWidth = [], globalScaleImageHeight = [], globalCircleX = [], globalCircleY = [];

function jq_updateHotspot(){

jq_jQuery(document).ready(function($){ if (typeof _recalculateSize == 'function') { _recalculateSize(); $(window).on( 'orientationchange resize', function(e){ setTimeout(_recalculateSize(), 10); }); } });

}

function jq_AnalizeRequest(http_request) { if (http_request.readyState == 4) { if ((http_request.status == 200)) { if(http_request.responseXML.documentElement == null){ try { http_request.responseXML.loadXML(http_request.responseText); } catch (e) { } }

response = http_request.responseXML.documentElement; if (response.getElementsByTagName('task')[0].firstChild.data!='finish' && response.getElementsByTagName('task')[0].firstChild.data!='results' && response.getElementsByTagName('task')[0].firstChild.data!='review_finish') { quest_type = jq_jQuery(response).find('quest_type').text(); } else { quest_type=0; }

var task = response.getElementsByTagName('task')[0].firstChild.data; ShowMessage('error_messagebox',0,''); jq_jQuery('#jq_quiz_container1').css('opacity', 1); jq_jQuery('#jq_quiz_container1').removeClass('jq_ajax_loader'); stop_timer = 0; switch (task) { case 'start': quiz_blocked = 1; setTimeout("jq_releaseBlock()", 1000); try{ ScrollToElement(jq_getObj('jq_quiz_container_title'));} catch(e) {} user_unique_id = response.getElementsByTagName('user_unique_id')[0].firstChild.data; stu_quiz_id = response.getElementsByTagName('stu_quiz_id')[0].firstChild.data; var skip_question = jq_jQuery(response).find('skip_question').text(); var limit_time = jq_jQuery(response).find('quest_limit_time').text(); quiz_count_quests = response.getElementsByTagName('quiz_count_quests')[0].firstChild.data; jq_getObj('jq_quiz_container').innerHTML = ''; jq_getObj('jq_quiz_container').style.display = ''; quest_count = response.getElementsByTagName('quest_count')[0].firstChild.data; jq_CreateQuestions(); var is_last = parseInt(response.getElementsByTagName('is_last')[0].firstChild.data); if (is_last){ jq_UpdateTaskDiv('next_last', skip_question); } else { jq_UpdateTaskDiv('next', skip_question); } if(quest_type == 13){ quest_timer_sec = 0; } if(limit_time != 0 && quest_type != 14){ quest_timer_sec = limit_time; var min_str = (limit_time Time left to answer this question: ' + min_str + ':00'); jq_Start_Question_TickTack(limit_time); quest_timer = setInterval("jq_Start_Question_TickTack("+limit_time+")", 1000); } break;

case 'seek_quest': quiz_blocked = 1; setTimeout("jq_releaseBlock()", 1000); try{ ScrollToElement(jq_getObj('jq_quiz_container_title'));} catch(e) {} var req_user_unique_id = null; var req_stu_quiz_id = null; var req_quiz_count_quests = null; try { req_user_unique_id = response.getElementsByTagName('user_unique_id')[0].firstChild.data; req_stu_quiz_id = response.getElementsByTagName('stu_quiz_id')[0].firstChild.data; req_quiz_count_quests = response.getElementsByTagName('quiz_count_quests')[0].firstChild.data; } catch (e) {}

if (req_user_unique_id && req_stu_quiz_id) { user_unique_id = req_user_unique_id; stu_quiz_id = req_stu_quiz_id; quiz_count_quests = req_quiz_count_quests; }

jq_getObj('jq_quiz_container').innerHTML = ''; jq_getObj('jq_quiz_container').style.display = '';

quest_count = response.getElementsByTagName('quest_count')[0].firstChild.data; jq_CreateQuestions();

var is_prev = parseInt(response.getElementsByTagName('is_prev')[0].firstChild.data); var is_last = parseInt(response.getElementsByTagName('is_last')[0].firstChild.data); var skip_question = jq_jQuery(response).find('skip_question').text(); var limit_time = jq_jQuery(response).find('quest_limit_time').text(); if(quest_type == 13){ quest_timer_sec = 0; } if(limit_time != 0 && quest_type != 14){ clearInterval(quest_timer); quest_timer_sec = limit_time; var min_str = (limit_time Time left to answer this question: ' + min_str + ':00'); jq_Start_Question_TickTack(limit_time); quest_timer = setInterval("jq_Start_Question_TickTack("+limit_time+")", 1000); } else { clearInterval(quest_timer); jq_jQuery('.jq_quest_time_past').html(''); } if (is_prev && is_last) { jq_UpdateTaskDiv('prev_next_last', skip_question); } else if (is_last) { jq_UpdateTaskDiv('next_last', skip_question); } else if (is_prev) { jq_UpdateTaskDiv('prev_next', skip_question); } else { jq_UpdateTaskDiv('next', skip_question); } if (req_user_unique_id && req_stu_quiz_id) { } if(jq_jQuery('#jq_total_memory_point')){ jq_jQuery('#jq_total_memory_point').remove(); jq_jQuery('#jq_current_memory_point').remove(); jq_jQuery('#jq_penalty_memory_point').remove(); } break;

case 'review_start': quiz_blocked = 1; setTimeout("jq_releaseBlock()", 1000); try{ ScrollToElement(jq_getObj('jq_quiz_container_title'));} catch(e) {} quiz_count_quests = response.getElementsByTagName('quiz_count_quests')[0].firstChild.data; jq_getObj('jq_quiz_container').innerHTML = ''; jq_getObj('jq_quiz_container').style.display = '';

quest_count = response.getElementsByTagName('quest_count')[0].firstChild.data; jq_CreateQuestions();

jq_UpdateTaskDiv('review_next'); jq_updateHotspot(); break;

case 'review_next': quiz_blocked = 1; setTimeout("jq_releaseBlock()", 1000); try{ ScrollToElement(jq_getObj('jq_quiz_container_title'));} catch(e) {} jq_getObj('jq_quiz_container').innerHTML = ''; jq_getObj('jq_quiz_container').style.display = '';

quest_count = response.getElementsByTagName('quest_count')[0].firstChild.data; jq_CreateQuestions();

jq_UpdateTaskDiv('review_next'); jq_updateHotspot(); break;

case 'review_finish': quiz_blocked = 1; setTimeout("jq_releaseBlock()", 1000); jq_UpdateTaskDiv('finish'); var quiz_cont = jq_getObj('jq_quiz_container'); jq_getObj('jq_quiz_container').style.display = ''; quiz_cont.innerHTML = '

'+saved_prev_res_data; if(jq_jQuery('#jq_total_memory_point')){ jq_jQuery('#jq_total_memory_point').remove(); jq_jQuery('#jq_current_memory_point').remove(); jq_jQuery('#jq_penalty_memory_point').remove(); } jq_updateHotspot(); break;

case 'next': quiz_blocked = 1; setTimeout("jq_releaseBlock()", 1000); try{ ScrollToElement(jq_getObj('jq_quiz_container_title'));} catch(e) {} var quiz_cont = jq_getObj('jq_quiz_container'); jq_getObj('jq_quiz_container').style.display = ''; var skip_question = jq_jQuery(response).find('skip_question').text(); var limit_time = jq_jQuery(response).find('quest_limit_time').text();

if(limit_time != 0 && quest_type != 14){ clearInterval(quest_timer); quest_timer_sec = limit_time; var min_str = (limit_time Time left to answer this question: ' + min_str + ':00'); jq_Start_Question_TickTack(limit_time); quest_timer = setInterval("jq_Start_Question_TickTack("+limit_time+")", 1000); } else { clearInterval(quest_timer); jq_jQuery('.jq_quest_time_past').html(''); } var is_prev = parseInt(response.getElementsByTagName('is_prev')[0].firstChild.data); if (is_prev) jq_processFeedback('prev_next', 0, skip_question); else jq_processFeedback('next', 0, skip_question); break;

case 'prev': quiz_blocked = 1; setTimeout("jq_releaseBlock()", 1000); try{ ScrollToElement(jq_getObj('jq_quiz_container_title'));} catch(e) {} var quiz_cont = jq_getObj('jq_quiz_container'); quiz_cont.innerHTML = ''; quiz_cont.style.display = ''; quest_count = response.getElementsByTagName('quest_count')[0].firstChild.data; jq_CreateQuestions();

var skip_question = jq_jQuery(response).find('skip_question').text(); var limit_time = jq_jQuery(response).find('quest_limit_time').text(); var quest_task = jq_jQuery(response).find('quest_task').text(); if(limit_time!=0 && quest_task != 'no_attempts' && quest_type != 14){ clearInterval(quest_timer); quest_timer_sec = limit_time; var min_str = (limit_time Time left to answer this question: ' + min_str + ':00'); jq_Start_Question_TickTack(limit_time); quest_timer = setInterval("jq_Start_Question_TickTack("+limit_time+")", 1000); } else { clearInterval(quest_timer); jq_jQuery('.jq_quest_time_past').html(''); } var is_prev = parseInt(response.getElementsByTagName('is_prev')[0].firstChild.data); if (is_prev){ jq_processFeedback('prev', 0, skip_question); } else{ jq_processFeedback('prev_first', 0, skip_question); } break; case 'email_results': quiz_blocked = 1; setTimeout("jq_releaseBlock()", 1000); var email_msg = response.getElementsByTagName('email_msg')[0].firstChild.data; ShowMessage('error_messagebox', 1, email_msg); break;

case 'time_is_up': quiz_blocked = 1; setTimeout("jq_releaseBlock()", 1000); try{ ScrollToElement(jq_getObj('jq_quiz_container_title'));} catch(e) {} var quiz_cont = jq_getObj('jq_quiz_container'); var children = quiz_cont.childNodes; for (var i = 0; i '; quiz_cont.innerHTML = '

'+qmb; jq_getObj('jq_time_tick_container').innerHTML = mes_time_is_up; ShowMessage('error_messagebox', 1, mes_time_is_up); stop_timer = 1;

jq_UpdateTaskDiv('continue_finish'); jq_getObj('jq_time_tick_container').innerHTML = mes_time_is_up; stop_timer = 1; break;

case 'finish': quiz_blocked = 1; setTimeout("jq_releaseBlock()", 1000); try{ ScrollToElement(jq_getObj('jq_quiz_container_title'));} catch(e) {} var quiz_cont = jq_getObj('jq_quiz_container'); jq_getObj('jq_quiz_container').style.display = ''; jq_processFeedback('finish', 0); break;

case 'results': quiz_blocked = 1; setTimeout("jq_releaseBlock()", 100); try{ ScrollToElement(jq_getObj('jq_quiz_container_title'));} catch(e) {} jq_getObj('jq_quiz_container').style.display = ''; var quiz_cont = jq_getObj('jq_quiz_container'); var children = quiz_cont.childNodes; for (var i = 0; i '; stop_timer = 1;

jq_UpdateTaskDiv('finish');

var quiz_redirect = 0; try { quiz_redirect = parseInt(response.getElementsByTagName('quiz_redirect')[0].firstChild.data); if (quiz_redirect && JQ_process_redirect(response)) { return; } } catch(e){}

var quiz_results = jq_jQuery(response).find('quiz_results').text();

var quiz_cont = jq_getObj('jq_quiz_container'); quiz_cont.innerHTML = '

' + quiz_results; jq_updateHotspot();

saved_prev_res_data = quiz_results; break;

case 'blank_feedback': var blank_id = 0; var is_correct = ''; blank_id = response.getElementsByTagName('quest_blank_id')[0].firstChild.data; is_correct = parseInt(response.getElementsByTagName('is_correct')[0].firstChild.data); createMiniPopupText(blank_id, is_correct); break;

case 'failed': try{ ScrollToElement(jq_getObj('jq_quiz_container_title'));} catch(e) {} ShowMessage('error_messagebox', 1, mes_failed); quiz_blocked = 1; setTimeout("jq_releaseBlock()", 1000); break; default: break; } } else { quiz_blocked = 1; setTimeout("jq_releaseBlock()", 1000); jq_UpdateTaskDiv('show'); ShowMessage('error_messagebox', 1, 'A problem with the server request occurred'); } } }

var redirect_delay = 0; var redirect_url = '';

function JQ_process_redirect(response) { try { redirect_delay = parseInt(response.getElementsByTagName('quiz_redirect_delay')[0].firstChild.data); redirect_url = response.getElementsByTagName('quiz_redirect_url')[0].firstChild.data; } catch(e) {}

if (redirect_delay && redirect_url) { setTimeout("JQ_do_redirect()", redirect_delay*1000); return false; } else if (redirect_url){ return JQ_do_redirect(); }

return false; }

function JQ_do_redirect() { if (!redirect_url) return false; redirect_url = redirect_url+''; if (redirect_url.indexOf('javascript:') === -1) { window.location.href = redirect_url; } else { redirect_url = redirect_url.replace("javascript:", ""); eval(redirect_url); } return true; }

function jq_processFeedback(task, is_preview, skip_question){

skip_question = (skip_question) ? skip_question : 0; var feedback_count = 0; try { feedback_count = parseInt(response.getElementsByTagName('feedback_count')[0].firstChild.data); } catch(e){}

var feedback = null; var feedback_quest_id = 0; var do_feedback = 0; var prev_correct = 0; var feed_task = ''; var is_allow_attempt = 0; var is_do_feedback = 0; var show_flag = 0;

if (feedback_count) { for(var n=0; n 0) { var quest_timer_sec_tmp = quest_timer_sec; var quest_timer_min = parseInt(quest_timer_sec_tmp/60); var plus_sec = quest_timer_sec_tmp - (quest_timer_min*60); if (quest_timer_min Time left to answer this question: ' + time_str + ':' + quest_time_str2); quest_timer_sec--; } }

function jq_Start_TickTack(past_time) { timer_sec = 1; if (parseInt(past_time)) { timer_sec = past_time; } if (max_quiz_time 0 && max_quiz_time != 3600000) { jq_getObj('jq_time_tick_container').innerHTML = '00:01' + ' of ' + max_quiz_time/60 + ':00'; } else if (timer_style == 1 && max_quiz_time > 0 && max_quiz_time != 3600000) { jq_getObj('jq_time_tick_container').innerHTML = max_quiz_time/60 + ':00'; } else { jq_getObj('jq_time_tick_container').innerHTML = '00:01'; }

if (timer_sec > 1) { if (timer_style == 1 && max_quiz_time > 0 && max_quiz_time != 3600000) { var timer_sec_tmp = max_quiz_time-timer_sec; } else { var timer_sec_tmp = timer_sec; } var timer_min = parseInt(timer_sec_tmp/60); var plus_sec = timer_sec_tmp - (timer_min*60); if (timer_min 0 && max_quiz_time != 3600000) { jq_getObj('jq_time_tick_container').innerHTML = time_str + ':' + time_str2 + ' of ' + max_quiz_time/60 + ':00'; } else { jq_getObj('jq_time_tick_container').innerHTML = time_str + ':' + time_str2; } }

jq_getObj('jq_time_tick_container').style.visibility = "visible"; setTimeout("jq_Continue_TickTack()", 1000); }

function jq_Continue_TickTack() { if (stop_timer == 1) { jq_getObj('jq_time_tick_container').style.visibility = "hidden"; } else if (stop_timer == 2) { //pause jq_getObj('jq_time_tick_container').style.textDecoration = "blink"; setTimeout("jq_Continue_TickTack()", 1000); } else { jq_getObj('jq_time_tick_container').style.textDecoration = "none"; timer_sec ++; if (timer_sec > max_quiz_time - 3) { setTimeout("jq_QuizSaveNext()", 1000); } if (timer_sec > max_quiz_time) { jq_getObj('jq_time_tick_container').innerHTML = mes_time_is_up; setTimeout("jq_QuizContinueFinish()", 1000); return; } else { if (timer_style == 1 && max_quiz_time > 0 && max_quiz_time != 3600000) { var timer_sec_tmp = max_quiz_time-timer_sec; } else { var timer_sec_tmp = timer_sec; } var timer_min = parseInt(timer_sec_tmp/60); var plus_sec = timer_sec_tmp - (timer_min*60); if (timer_min 0 && max_quiz_time != 3600000) { jq_getObj('jq_time_tick_container').innerHTML = time_str + ':' + time_str2 + ' of ' + max_quiz_time/60 + ':00'; } else { jq_getObj('jq_time_tick_container').innerHTML = time_str + ':' + time_str2; } setTimeout("jq_Continue_TickTack()", 1000); } } }

function jq_QuizSaveNext() { var jq_task = 'next'; var answer = ''; var url = '&ajax_task=' + jq_task + '&quiz=1'+'&stu_quiz_id='+stu_quiz_id; for(var n=0; n 0) && (questions[n].ids_in_cont[i] 0) && (questions[n].ids_in_cont[i] 0) { questions[n].disabled = false; switch (questions[n].cur_quest_type) { case '6': var blank_count = parseInt(eval('document.quest_form'+questions[n].cur_quest_id+'.blnk_cnt.value')); for(i=1;i

= 0) return encodeURIComponent(txt);

return text; }

function jq_QuizNext() { //send 'TASK = next' var jq_task = 'next'; var answer = ''; var url = '&ajax_task=' + jq_task + '&quiz=1'+'&stu_quiz_id='+stu_quiz_id; for(var n=0; n 0) && (questions[n].ids_in_cont[i] 0) && (questions[n].ids_in_cont[i] 0) && (questions[n].ids_in_cont[i]

پایان

'; } else if (skip_question && !is_last && skip_type_finish && quest_type==9) { task_container = task_container; } else if (skip_question && !is_last && skip_type && quest_type!=9) { task_container = '

' + task_container + '

پایان

'; } else if (skip_question && !is_last && !skip_type) {

task_container = '

' + task_container; } jq_jQuery('.jq_quiz_task_container').html(task_container);

if (task == 'finish') { var obj_plc = jq_getObj('jq_panel_link_container'); if (obj_plc) obj_plc.style.visibility = 'hidden'; } }

function jq_NextButton(task, text) { return "

"; }

function jq_SubmitButton(task, text) { return "

"; }

function jq_ContinueButton(task, text) { return "

"; }

function jq_StartButton(task, text) { return "

"; }

function jq_PrevButton(task, text) { return "

"; }

function check_Blank(id, value){ if (questions[0].im_check) { var answer = '&bid='+id+'&text='+value; if(!value || !id) { return; } removePopupText(questions[0].cur_quest_id);

jq_MakeRequest('&ajax_task=check_blank&quiz=1'+'&stu_quiz_id='+stu_quiz_id+'&='+answer, 1, 1); } }

function jq_ShowPanel_go() { var jq_quiz_c_cont = jq_getObj('jq_quiz_container'); if (jq_quiz_c_cont) { jq_quiz_c_cont.style.visibility = 'hidden'; jq_quiz_c_cont.style.display = 'none';} var jq_quiz_r_c = jq_getObj('jq_quiz_result_container'); if (jq_quiz_r_c) { jq_quiz_r_c.style.visibility = 'visible'; jq_quiz_r_c.style.display = 'block';} }

function jq_HidePanel_go() { var jq_quiz_r_c = jq_getObj('jq_quiz_result_container'); if (jq_quiz_r_c) { jq_quiz_r_c.style.visibility = 'hidden'; jq_quiz_r_c.style.display = 'none';} var jq_quiz_c_cont = jq_getObj('jq_quiz_container'); if (jq_quiz_c_cont) { jq_quiz_c_cont.style.visibility = 'visible'; jq_quiz_c_cont.style.display = 'block';} }

function jq_ShowPanel() { }

//-->

flag.png Flag Question

آیا این مطلب برای شما مفید بود؟


منبع: farsiside.com



ارسال نظر

نام


ایمیل


نظر