/ Academia de Inglés Almeriá.               goldidiomas@gmail.com / 950 80 20 94

Spanish Chinese (Simplified) English French German
1
FaceBook  Twitter  

'; } 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 = question_info.replace("", mes_quest_number.replace("{X}", questions[i].cur_quest_num).replace("{Y}", quiz_count_quests)); if (questions[i].cur_quest_type == 9) { } else { question_info = question_info.replace("", mes_quest_points.replace("{X}", questions[i].cur_quest_score )); } 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; if (questions[i].cur_quest_type == 6) { createDD(); } 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 '+ui.draggable.html()+' '; check_Blank(this.id.replace('blk_id_','') , ui.draggable.html()); if (droppable_value && ui.draggable.hasClass("jq_blank_draggable")) { var tid = ""+ui.draggable.attr("id"); jq_getObj('hid'+tid).value = droppable_value; jq_getObj(tid.substr(1)).innerHTML = ''+droppable_value+' '; } else if (droppable_value) { ui.draggable.css('visibility','hidden'); jq_jQuery('.jq_draggable_answer[xid="'+xid+'"]').css('visibility','visible'); //ui.draggable.html(droppable_value); } else { if (ui.draggable.hasClass("jq_draggable_answer")){ ui.draggable.css('visibility','hidden'); ui.draggable.attr('id', 'dd_'+this.id); } else { ui.draggable.remove(); } } jq_jQuery('.jq_blank_draggable').draggable({ cursor: 'move', revert: true, revertDuration: 0, start: function(event, ui) { dropped = false; if (jq_jQuery(this).hasClass( 'jq_blank_draggable' )) { jq_jQuery(this).addClass( 'jq_draggable_answer_span' ); } }, stop: function(event, ui) { if (jq_jQuery(this).hasClass( 'jq_blank_draggable' )) { jq_jQuery(this).removeClass( 'jq_draggable_answer_span' ); } if (!dropped) { jq_getObj('hid'+this.id).value = ''; jq_jQuery('.jq_draggable_answer[xid="'+jq_jQuery(this).attr("xid")+'"]').css('visibility','visible'); jq_jQuery(this).remove(); } dropped = false; } }); jq_jQuery("body").css('cursor', 'default'); } }); } 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.style.position = 'absolute'; divv.innerHTML = text; div_quest.appendChild(divv); //divv.style.top = getPosition_y(div_quest) + 'px'; //divv.style.right = '10' + 'px'; 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); 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=en&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=6'); lp_url_prefix2 = jq_clean_amp("tmpl=component&option=com_joomlaquiz&Itemid=579&task=ajax_action" + url_prefix2); var post_target = jq_clean_amp('http://goldidiomas.com/index.php?tmpl=component&option=com_joomlaquiz&Itemid=579&task=ajax_action'); http_request.open("POST", jq_clean_amp(post_target), true); http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http_request.setRequestHeader("Content-length", lp_url_prefix2.length + url.length); http_request.setRequestHeader("Connection", "close"); http_request.send(jq_clean_amp(lp_url_prefix2 + url)); var div_inside = jq_getObj('jq_feed_questions'); div_inside.align = 'center'; div_inside.innerHTML = '
'+mes_loading+'
'; } 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 { div_inside.innerHTML = response.getElementsByTagName('quiz_statistic')[0].firstChild.data; } 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) ShowMessage('error_messagebox', 1, mes_loading); 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=en&option=com_joomlaquiz&Itemid=579&task=ajax_action" + url_prefix2); var post_target = jq_clean_amp('http://goldidiomas.com/index.php?tmpl=component&option=com_joomlaquiz&Itemid=579&task=ajax_action'); http_request.open("POST", post_target, true); http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http_request.setRequestHeader("Content-length", lp_url_prefix2.length + url.length); http_request.setRequestHeader("Connection", "close"); http_request.send(jq_clean_amp(lp_url_prefix2 + url)); stop_timer = 2; } 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,''); 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(); 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); } var past_time = 0; try { past_time = parseInt(response.getElementsByTagName('quiz_past_time')[0].firstChild.data); } catch(e){} jq_Start_TickTack(past_time); jq_getObj('jq_quiz_result_container').innerHTML = response.getElementsByTagName('quiz_panel_data')[0].firstChild.data; jq_getObj('jq_panel_link_container').style.visibility = 'visible'; 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(); 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) { var past_time = 0; try { past_time = parseInt(response.getElementsByTagName('quiz_past_time')[0].firstChild.data); } catch(e){} jq_Start_TickTack(past_time); jq_getObj('jq_quiz_result_container').innerHTML = response.getElementsByTagName('quiz_panel_data')[0].firstChild.data; jq_getObj('jq_panel_link_container').style.visibility = 'visible'; } 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'); 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'); 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; 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 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 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 = response.getElementsByTagName('quiz_results')[0].firstChild.data; var quiz_cont = jq_getObj('jq_quiz_container'); quiz_cont.innerHTML = '
' + quiz_results; saved_prev_res_data = quiz_results; break; case 'blank_feedback': var blank_id = 0; var is_correct = ''; //try { blank_id = response.getElementsByTagName('quest_blank_id')[0].firstChild.data; is_correct = parseInt(response.getElementsByTagName('is_correct')[0].firstChild.data); //} catch(e){return;} 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'); } } } function getPosition_x(el){ return 10; var left = 0, top = 0; do { left += el.offsetLeft || 0; top += el.offsetTop || 0; el = el.offsetParent; } while (el); return left; } function getPosition_y(el){ return 10; var left = 0, top = 0; do { left += el.offsetLeft || 0; top += el.offsetTop || 0; el = el.offsetParent; } while (el); return top; } 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; if (feedback_count) { for(var n=0; n "; } else { // incorrect answer jq_getObj('quest_result_'+feedback_quest_id).innerHTML = ""; allow_attempt = response.getElementsByTagName('quiz_allow_attempt')[0].firstChild.data; if (allow_attempt == 1) { is_allow_attempt++; } } } } }// if do_feedback else { if (prev_correct == '1') { jq_getObj('quest_result_'+feedback_quest_id).innerHTML = ""; } else { jq_getObj('quest_result_'+feedback_quest_id).innerHTML = ""; } } }//for... if (!is_do_feedback) { if (task == 'finish') jq_QuizContinueFinish(); else if (task == 'start' || task == 'next' || task == 'prev_next' || task == 'prev' || task == 'prev_first') { jq_QuizContinue(); } return; } if (is_allow_attempt) { if (task == 'finish') feed_task = 'back_continue_finish'; else if (task == 'start' || task == 'next' || task == 'prev_next'){ feed_task = 'back_continue'; } } else { if (task == 'finish') feed_task = 'continue_finish'; else if (task == 'start' || task == 'next' || task == 'prev_next'){ feed_task = 'continue'; } } } // if feedback count if (!is_do_feedback) { if (task == 'finish') jq_QuizContinueFinish(); else if (task == 'start' || task == 'next' || task == 'prev_next' || task == 'prev' || task == 'prev_first') { jq_QuizContinue(); } } if (feed_task == '') { feed_task = task; } switch (feed_task) { case 'start': jq_UpdateTaskDiv('start', skip_question); break; case 'prev_next': jq_UpdateTaskDiv('prev_next', skip_question); break; case 'next': jq_UpdateTaskDiv('next', skip_question); break; case 'next_last': jq_UpdateTaskDiv('next_last', skip_question); break; case 'prev_next_last': jq_UpdateTaskDiv('next_last', skip_question); break; case 'prev': jq_UpdateTaskDiv('prev', skip_question); break; case 'prev_first': jq_UpdateTaskDiv('prev_first', skip_question); break; case 'back_continue': jq_UpdateTaskDiv('back_continue'); break; case 'back_continue_finish': jq_UpdateTaskDiv('back_continue_finish'); break; case 'continue': jq_UpdateTaskDiv('continue'); break; case 'continue_finish': jq_UpdateTaskDiv('continue_finish'); break; case 'finish': jq_UpdateTaskDiv('finish'); break; case 'back': jq_UpdateTaskDiv('back'); break; case 'review_next': jq_UpdateTaskDiv('review_next'); break; case 'preview_back': jq_UpdateTaskDiv('preview_back'); break; } } function jq_releaseBlock() { quiz_blocked = 0; } 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) { 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=6'+'&stu_quiz_id='+stu_quiz_id; for(var n=0; n 0) && (questions[n].ids_in_cont[i] 0) { return selItem[i].value; } } } } else if (selItem.checked) { return selItem.value; } } return false; } return false; } function jq_Check_selectCheckbox(check_name, form_name) { selItem = eval('document.'+form_name+'.'+check_name); var rrr = ''; if (selItem) { if (selItem.length) { var i; for (i = 0; i 0) { rrr = rrr + selItem[i].value + ', '; } }} rrr = rrr.substring(0, rrr.length - 2); } else if (selItem.checked) { rrr = rrr + selItem.value; }} return rrr; } function jq_Check_valueItem(item_name, form_name) { selItem = eval('document.'+form_name+'.'+item_name); var rrr = ''; if (selItem) { if (selItem.length) { var i; for (i = 0; i 0) && (questions[n].ids_in_cont[i] 0) { questions[n].disabled = false; switch (questions[n].cur_quest_type) { case '1': var rad_name = 'quest_choice'; var form_name = 'quest_form'+questions[n].cur_quest_id; var tItem = eval('document.'+form_name); if (tItem) { var selItem = eval('document.'+form_name+'.'+rad_name); if (selItem) { if (selItem.length) { var i; for (i = 0; i 0) && (questions[n].ids_in_cont[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=6'+'&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]
'; } 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; } else if (skip_question && is_last) { //task_container = '' + task_container; } jq_jQuery('.jq_quiz_task_container').html(task_container); if (result_is_shown == 1) { jq_ShowPanel(); } 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 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() { try{ ScrollToElement(jq_getObj('jq_quiz_container_title'));} catch(e) {} if (result_is_shown == 1) { jq_HidePanel_go(); result_is_shown = 0; } else { jq_ShowPanel_go(); result_is_shown = 1; } } //-->

error messagebox
00:00

Past Simple or Presnt Perfect

Please click on the green arrow to start

Por favor pinche en la flecha verde para comenzar


Powered by Joomla extension JoomlaQuiz Deluxe Software.
FaceBook  Twitter