Test biologia klasa 6 dział 4 (2023)

kiniacze.-. 1 rok temu

4

Zaznacz poprawną odpowiedź, aby przejść do następnego pytania.

'); $('#start-quiz').show().find('.start-quiz-button').html('Rozpocznij'); $('.letters-warning').show(); $('.start-quiz-button-wrapper').before('

'); }); $('#quiz .questions-container').append($tmpq); $('#quiz').append('

'); var c = document.getElementById('ad1'); if(c!=null) $(c).append(ad_code4); var $q = $('#question-1'); $q.find('.question-content').sticky({topSpacing:ts, getWidthFrom:'#quiz'}); var chances = 3; var points = 0; $('.gallery .answer:not(.disabled)').click(function () { var $t = $(this); if (!started) { try { __gaTracker('send', 'event', 'quiz', 'start', window.location.pathname); } catch (err) { console.log(err); } started = true; } if ($t.hasClass('disabled') || $t.hasClass('correct') || $t.hasClass('wrong')) return false; var result; $t.parent().find('.answer').removeClass('checked'); //$t.addClass('active checked'); if($q.data('qid')==$t.data('qid')){ if(chances<0) chances = 0; points+=chances; var stars; switch (chances){ case 1: stars = ''; break; case 2: stars = ''; break; case 3: stars = ''; break; default: stars = ''; break; } stars = '

'+stars+'

'; if(chances==0){ $t.addClass('wrongcorrect'); } chances = 3; var i = $q.data('curq'); i++; $t.addClass('correct'); setTimeout(function(){ $t.removeClass('correct'); $t.addClass('disabled'); setTimeout(function() { $('.starbox').css('max-height', '0'); },300); setTimeout(function() { $('.question-container .sticky-wrapper').height($q.find('.question-content').height()+10); },1000); },800); if(quizData.questions.length>i){ v = quizData.questions[i]; $q.data('curq', i); $q.data('qid', v.id); $q.find('.question-content .text').html(v.text); $q.find('.question-content .text').prepend(stars); setTimeout(function() { $('.starbox').css('max-height', '50px'); },10); }else{ var s = Math.round((points/(quizData.questions.length*3))*100); var final; if(s<31){ final = quizData.results[0]; }else if(s<71){ final = quizData.results[1]; }else{ final = quizData.results[2]; } $('.result-container .result-content').html(final.description.replace(/(?:\r\n|\r|\n)/g, '
')); $('.result-container .result-title').prepend('

Twój wynik: '+ s + '%

'); $('.result-container .result-title h2').html(final.title); $('html, body').animate({ scrollTop: $('#quiz').offset().top - 80 }, 1000); setTimeout(function(){ $('#result.result-container').show(); $('#question-1').hide(400,function(){ $('.score b span').prop('Counter',0).animate({ Counter: $('#result .score b span').text() }, { duration: 4000, easing: 'swing', step: function (now) { $('#result .score b span').text(Math.ceil(now)); } }); }); },800); $('.answer:not(.disabled)').off('click'); try { if(!Cookies.get('seensuper')) { $('.postvote[data-toggle="tooltip"]').tooltip('show'); Cookies.set('seensuper', 'true', {expires: Infinity}); } __gaTracker('send', 'event', 'quiz', 'end', window.location.pathname); $(document).trigger('optad360_inter'); } catch (err) { console.log(err); } } }else{ chances--; if(chances==0){ $wc = $('.answer:data(qid)').filter(function(){ return $(this).data('qid')==$q.data('qid')}); setTimeout(function() { if(postid!=2180907) { $('html, body').animate({ scrollTop: $wc.offset().top - window.innerHeight / 2 }, 400).promise().then(function () { $wc.trigger('click'); }); }else{ $wc.trigger('click'); } },600); } $t.addClass('wrong'); setTimeout(function(){ $t.removeClass('wrong'); },600); } $('.question_box_done:last').next('.question_box').addClass('question_box_done'); }); }else{ var allLettersLength = 0; $.each(quizData.questions, function (i, v) { var $tmpq = $qu.clone().removeClass('empty'); $tmpq.show(); $tmpq.attr('id', 'question-' + (i + 1)); if (v.image.length > 0) $tmpq.find('.question-content .image').append('Test biologia klasa 6 dział 4 (2)'); if ((v.result_image != null || v.result_text != null) && (v.result_image.length>0 || v.result_text.length>0)){ var $tmpe = $ex.clone().removeClass('empty'); if(v.result_image!=null && v.result_image.length>0){ $tmpe.find('.image').append('Test biologia klasa 6 dział 4 (3)'); } if(v.result_text!=null){ $tmpe.find('.text').text(v.result_text); } $tmpq.append($tmpe); } $tmpq.find('.question-content .text').append(v.text); var cols = 3; switch (v.answers.length) { case 2: $tmpq.find('.question-answers').addClass('col-2'); cols = 2; break; default: $tmpq.find('.question-answers').addClass('col-3'); cols = 3; break; } if ($(window).width() < 690) cols = 2; if (v.type === "text" || quizData.type === 'letters') { if(quizData.type === 'letters'){ var words = v.answers[0].text.trim().toUpperCase().split(' '); var $words = $('

'); for(var j = 0; j < words.length; j++){ var word = words[j]; var $word = $('

'); for(var k = 0; k < word.length; k++){ var $letter = $('

'); $letter.data('correct', word[k]); $word.append($letter); } $words.append($word); } $tmpq.find('.question-answers .answers-inner').append($words); var letters = v.answers[0].text.trim().toUpperCase().replace(/ /g, ''); allLettersLength += letters.length; v.phraseToGuess = letters; var m = 16; while(letters.length>m){ m+=8; } var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; for ( j = letters.length; j < m; j++ ) { letters += characters.charAt(Math.floor(Math.random() * characters.length)); } letters = shuffleArray(letters.split('')); var $lettersAvailable= $('

'); for(j = 0; j < letters.length; j++){ $letter = $('

'+letters[j]+'

').attr('data-letter', letters[j]); $lettersAvailable.append($letter); } $tmpq.find('.question-answers .answers-inner').append($lettersAvailable); $tmpq.find('.question-answers .answers-inner').append('

'); }else { var long = false; $.each(v.answers, function (i, v) { var $tmpa = $a.clone().removeClass('empty').show(); $tmpa.attr('id', 'answer-' + (i + 1)); $tmpa.data('results', v.result); $tmpa.data('correct', v.correct); $tmpa.data('id', v.id); $tmpa.find('.text').append(v.text); if (v.text.length > 30) { long = true; } $tmpq.find('.question-answers .answers-inner').append($tmpa); if ((i + 1) % cols == 0) $tmpq.find('.question-answers .answers-inner').append('

'); }); if (long) { $tmpq.find('.question-answers').addClass('long-answers'); } } } else { $.each(v.answers, function (i, v) { var $tmpa = $ai.clone().removeClass('empty').show(); $tmpa.attr('id', 'answer-' + (i + 1)); $tmpa.data('results', v.result); $tmpa.data('correct', v.correct); $tmpa.data('id', v.id); $tmpa.find('.image img').attr('src', v.image.replace('http:', '')); $tmpa.find('.text').append(v.text); if (jQuery("

" + v.text + "

").text().length == 0) { $tmpa.find('.text').remove(); } $tmpq.find('.question-answers .answers-inner').append($tmpa); if ((i + 1) % cols == 0) $tmpq.find('.question-answers .answers-inner').append('

'); }); if (v.type == "longtext") { $tmpq.find('.question-answers').addClass('long-answers'); } if (v.type == "noanswers") { $tmpq.addClass('noanswers'); } } $('.question_boxes_inner').append('

' + (i + 1) + '

'); if(quizData.type === "survive" && i > 0){ $tmpq.hide(); } if((quizData.type === "timetest" || quizData.type === "letters") && i > 0){ $tmpq.hide(); } $('#quiz .questions-container').append($tmpq); if(i>0 && i%2!==0 && i+2 < quizData.questions.length){ if(!$tmpq.hasClass('noanswers')) $('#quiz .questions-container').append('

'); else $('.question:not(.empty):last').after('

'); } }); if(quizData.type==='letters'){ } if(quizData.type==='survive' || quizData.type==='timetest' || quizData.type==='letters'){ $('#ad1,#ad2,#ad3,.optad-container').hide(); } try { var width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; if(typeof window._qasp == 'undefined') { window._qasp = _qasp || []; }else{ if(width<690){ window._qasp[1][0] = 'setFastPAID'; }else{ window._qasp[1][0] = 'setFastPAID';//.push(['setFastPAID', 'sadsameQuizy']); } } }catch(err){ console.log(err); } $('.question_box:first-child').addClass('question_box_done'); $('#quiz').on('click', '.quiz-nav', function (e) { e.preventDefault(); if ($('.question:visible').prev('.question').length > 0) { $('.question:visible').hide().prev('.question').show(); $('.question_box_done:last-child').removeClass('question_box_done'); } return false; }); var tipsUsed = 0; function checkLetters($words){ $words.removeClass('incorrect'); $correct = 0; $words.find('.letter').each(function () { if($(this).data('correct')===$(this).text()){ $correct++; } }); if($correct===$words.find('.letter').length){ if($words.parents('.question').hasClass('questionad')){ $words.parents('.question').find('.text').html('Narysuj nowe hasło:'); $words.parents('.question').find('.question-answers').remove(); var $video = $('.video-question'); $video.attr('src', '/wp-content/themes/filing/img/kalambury-video/start.mp4'); $video.attr('autoplay', true); $video.attr('loop', true); $video.off('ended'); $video.on('ended', function (){ this.play(); }); return; } $words.parents('.question').addClass('answered'); setTimeout(function () { var $curq = $('#quiz .question:not(.empty):visible').hide(); $curq.nextAll('.question:first').show().addClass('fadeIn animated'); $('html, body').animate({ scrollTop: $('#quiz').offset().top - 80 }, 1000); progressQuestions($('#quiz .question.answered').length+1, quizData.questions.length, $('#progressBar')); if ($('#quiz .question:not(.empty):not(.noanswers)').length === $('#quiz .question.answered').length) { var s = Math.round((allLettersLength-tipsUsed)/allLettersLength*100); var final; if(s<65){ final = quizData.results[0]; }else if(s<85){ final = quizData.results[1]; }else{ final = quizData.results[2]; } try { if(!Cookies.get('seensuper')) { $('.postvote[data-toggle="tooltip"]').tooltip('show'); Cookies.set('seensuper', 'true', {expires: Infinity}); } __gaTracker('send', 'event', 'quiz', 'end', window.location.pathname); $(document).trigger('optad360_inter'); } catch (err) { console.log(err); } $('#progressBar').hide(); $('.result-container .result-content').html(final.description.replace(/(?:\r\n|\r|\n)/g, '
')); $('.result-container .result-title').prepend('

Twój wynik: '+ s + '%

'); $('.result-container .result-title h2').html(final.title); $('#result.result-container').show(); $('.score b span').prop('Counter',0).animate({ Counter: $('#result .score b span').text() }, { duration: 4000, easing: 'swing', step: function (now) { $('#result .score b span').text(Math.ceil(now)); } }); } },1000); // $('html, body').animate({ // scrollTop: $('#quiz').offset().top - 100 // }, 1000); }else if($words.find('.letter').length===$words.find('.letter.filled').length){ $words.addClass('incorrect'); } } $(document).on('click', '.question:not(.answered) .lettersAvailable .letter:not(.emptied)', function () { var $letter = $(this).parent().parent().find('.words .letter:not(.filled)').first(); if($letter.length===0){ return; } $letter.text($(this).text()).addClass('filled'); $letter.data('letterIndex', $(this).attr('data-index')); $(this).addClass('emptied'); $(this).data('word', $letter.attr('data-word')); $(this).data('letterindex', $letter.attr('data-index')); $(this).html(''); checkLetters($(this).parent().parent().find('.words').first()); }); $(document).on('click', '.question:not(.answered) .words .letter.filled:not(.locked)', function () { $index = $(this).data('letterIndex'); $(this).parents('.words').removeClass('incorrect'); var $letter = $(this).parent().parent().parent().find('.lettersAvailable .letter[data-index='+$index+']').first(); $letter.removeClass('emptied').text($(this).text()); $(this).removeClass('filled'); $(this).html(''); }); $(document).on('click', '.question:not(.answered) .gettip', function () { var random = Math.floor(Math.random()*$(this).parent().find('.words .letter:not(.filled)').length); var $letter = $(this).parent().find('.words .letter:not(.filled)').eq(random); if($letter.length>0){ tipsUsed++; var correct = $letter.data('correct'); var $letterAvailable = $(this).parent().find('.lettersAvailable .letter[data-letter="'+correct+'"]:not(.emptied)').first(); if($letterAvailable.length===0){ $letterAvailable = $(this).parent().parent().parent().find('.lettersAvailable .letter[data-letter="'+correct+'"]:not(.locked)').first(); var wordIndex = $letterAvailable.data('word'); var letterIndex = $letterAvailable.data('letterindex'); var $letterInWord = $(this).parent().parent().parent().find('.words .letter[data-word='+wordIndex+'][data-index='+letterIndex+']:not(.locked)').first(); var index = $letterInWord.data('letterIndex'); $letterAvailable = $letterInWord.parent().parent().parent().find('.lettersAvailable .letter[data-index='+index+']').first(); $letterAvailable.removeClass('emptied').text($letterInWord.text()); $letterInWord.removeClass('filled'); $letterInWord.html(''); } $letter.text($letterAvailable.text()).addClass('filled locked'); $letter.data('letterIndex', $letterAvailable.attr('data-index')); $letterAvailable.addClass('emptied locked'); $letterAvailable.html(''); checkLetters($(this).parent().find('.words').first()); return; } var incorrects = []; $(this).parent().find('.words .letter:not(.locked)').each(function (i, el) { if($(this).data('correct')!==$(this).text()){ incorrects.push(i); } }); random = Math.floor(Math.random()*incorrects.length); var $el = $(this).parent().find('.words .letter:not(.locked)').eq(incorrects[random]); index = $el.data('letterIndex'); $letter = $el.parent().parent().parent().find('.lettersAvailable .letter[data-index='+index+']').first(); $letter.removeClass('emptied').text($el.text()); $el.removeClass('filled'); $el.html(''); correct = $el.data('correct'); $letterAvailable = $el.parent().parent().parent().find('.lettersAvailable .letter[data-letter="'+correct+'"]:not(.emptied)').first(); if($letterAvailable.length===0){ $letterAvailable = $el.parent().parent().parent().find('.lettersAvailable .letter[data-letter="'+correct+'"]:not(.locked)').first(); wordIndex = $letterAvailable.data('word'); letterIndex = $letterAvailable.data('letterindex'); $letterInWord = $el.parent().parent().parent().find('.words .letter[data-word='+wordIndex+'][data-index='+letterIndex+']:not(.locked)').first(); index = $letterInWord.data('letterIndex'); $letter = $letterInWord.parent().parent().parent().find('.lettersAvailable .letter[data-index='+index+']').first(); $letter.removeClass('emptied').text($letterInWord.text()); $letterInWord.removeClass('filled'); $letterInWord.html(''); } $el.text($letterAvailable.text()).addClass('filled locked'); $el.data('letterIndex', $letterAvailable.attr('data-index')); $letterAvailable.addClass('emptied locked'); $letterAvailable.html(''); checkLetters($(this).parent().find('.words').first()); }); $('#quiz .answer:not(.disabled)').click(function () { if (!started) { try { __gaTracker('send', 'event', 'quiz', 'start', window.location.pathname); } catch (err) { console.log(err); } started = true; } if ($(this).hasClass('disabled')) return false; var result; if (!(quizData.type === "story" || quizData.type === "survive" || quizData.type === "timetest" || quizData.type === "letters")){ $('#missing-answers').show(); } $qexp = $(this).parents('.question').find('.explanation'); $(this).parent().find('.answer').removeClass('checked'); $(this).addClass('active checked'); $(this).parents('.question').addClass('answered'); if (quizData.type === "trivia") { $(this).parent().find('.answer').addClass('disabled'); if ($(this).data('correct') == "1") { $(this).addClass('correct'); $qexp.addClass('correct'); } else { $(this).addClass('wrong'); $qexp.addClass('wrong'); $(this).parent().find('.answer').each(function () { if ($(this).data('correct') == "1") $(this).addClass('correct'); }); } $qexp.show(); } if (quizData.type === "timetest") { $(this).parent().find('.answer').addClass('disabled'); if ($(this).data('correct') == "1") { $(this).addClass('correct'); } else { $(this).addClass('wrong'); $(this).parent().find('.answer').each(function () { if ($(this).data('correct') == "1") $(this).addClass('correct'); }); } setTimeout(function () { var $curq = $('.question:not(.empty):visible').hide(); $curq.nextAll('.question:first').show().addClass('fadeIn animated'); progress(quizData.timetoanswer, quizData.timetoanswer, $('#progressBar')); $('html, body').animate({ scrollTop: $('#progressBar').offset().top - 100 }, 1000); }, 1000); clearTimeout(progressTimeout); } if (quizData.type === "survive") { $(this).parent().find('.answer').addClass('disabled'); if ($(this).data('correct') == "1") { $(this).addClass('correct'); var nq = $('.question:not(:visible):not(.empty)').first(); nq.show(); if(nq.next().hasClass('text-align-center') || nq.next().hasClass('optad-container')){ nq.next().show(); } } else { try { if(!Cookies.get('seensuper')) { $('.postvote[data-toggle="tooltip"]').tooltip('show'); Cookies.set('seensuper', 'true', {expires: Infinity}); } __gaTracker('send', 'event', 'quiz', 'end', window.location.pathname); $(document).trigger('optad360_inter'); } catch (err) { console.log(err); } $('.under-quiz-note.survive').hide(); $(this).addClass('wrong'); if($(this).data("results").length>0){ var final = getObjects(quizData.results, 'id', $(this).data("results")); if(final[0].description.length>0) $('.result-container .result-content').html(final[0].description.replace(/(?:\r\n|\r|\n)/g, '
')+' Spróbuj ponownie!'); $('.result-container .result-title h2').html(' Spróbuj ponownie ' +final[0].title); $('.result-container').show(); }else{ var final = quizData.results[0]; if(final.description.length>0) $('.result-container .result-content').html(final.description.replace(/(?:\r\n|\r|\n)/g, '
')+' Spróbuj ponownie!'); $('.result-container .result-title h2').html(' Spróbuj ponownie ' +final.title); $('.result-container').show(); } $('html, body').animate({ scrollTop: $('#result').offset().top - 80 }, 1000); } } $('.question_box_done:last').next('.question_box').addClass('question_box_done'); if ($('#quiz .question:not(.empty):not(.noanswers)').length === $('#quiz .checked').length) { if(quizData.type==='timetest'){ setTimeout(showResult, 1000); }else { showResult(); } }else{ $('#missing-answers span').text(quizData.questions.length-$('.question.answered').length); } }); $('#missing-answers a').click(function (e) { e.preventDefault(); $('html, body').animate({ scrollTop: $('.question:not(.answered):first').offset().top - 80 }, 1000); }); } function showResult() { try { if(!Cookies.get('seensuper')) { $('.postvote[data-toggle="tooltip"]').tooltip('show'); Cookies.set('seensuper', 'true', {expires: Infinity}); } __gaTracker('send', 'event', 'quiz', 'end', window.location.pathname); $(document).trigger('optad360_inter'); } catch (err) { console.log(err); } if (quizData.type === "survive"){ $('.under-quiz-note.survive').hide(); if(!$('.result-container').is(':visible')) { var final = quizData.results[1]; $('.result-container .result-content').html(final.description.replace(/(?:\r\n|\r|\n)/g, '
')); $('.result-container .result-title h2').html(final.title); $('.result-container').show(); } }else if (quizData.type === "person" || quizData.type==="story") { var r = {}; for (res in quizData.results) { r[quizData.results[res].id] = 0; } $('.answer.checked').each(function () { var rr = $(this).data('results'); rr = rr.split(','); for (var tmp in rr) { r[rr[tmp]]++; } }); var b = 0; for (var k in r) { if (r[k] > b) { b = r[k]; result = k; } } var final = getObjects(quizData.results, 'id', result); $('.result-container .result-content').html(final[0].description.replace(/(?:\r\n|\r|\n)/g, '
')); $('.result-container .result-title h2').html(final[0].title); $('.result-container').show(); } else { var s = 0; var final; $('.answer.checked').each(function () { if ($(this).data('correct') == "1") { s++; } }); $.each(quizData.results, function (i, v) { if (parseInt(v.from) <= s && parseInt(v.to) >= s) { final = v; return false; } }); $('.result-container .result-content').html(final.description.replace(/(?:\r\n|\r|\n)/g, '
')); $('.result-container .result-title h2').html('Twój wynik: ' + s + '/' + $('#quiz .question:not(.empty)').length + ' ' + final.title); if(quizData.type==="timetest"){ var end = performance.now(); var time = (end - start)/1000; var minutes = Math.floor(time / 60); var seconds = Math.round(time - minutes * 60); var finalTime = str_pad_left(minutes,'0',2)+':'+str_pad_left(seconds,'0',2); $('#progressBar').hide(); $('.result-container .result-title h2').html('Twój wynik: ' + s + '/' + $('#quiz .question:not(.empty)').length + ' Twój czas: ' + finalTime + '

' + final.title); } $('.result-container').show().addClass('fadeIn animated'); } $('#missing-answers').hide(); $('html, body').animate({ scrollTop: $('#result').offset().top - 80 }, 1000); $('.answer:not(.disabled)').off('click'); } function getObjects(obj, key, val) { var objects = []; for (var i in obj) { if (!obj.hasOwnProperty(i)) continue; if (typeof obj[i] == 'object') { objects = objects.concat(getObjects(obj[i], key, val)); } else if (i == key && obj[key] == val) { objects.push(obj); } } return objects; } });

'); $letter.data('correct', word[k]); $word.append($letter); } $words.append($word); } if($tmpq.find('.question-answers .answers-inner').length===0){ var tipsUsed = 0; $tmpq.find('.question-content').after('

'); $(document).on('click', '.question:not(.answered) .lettersAvailable .letter:not(.emptied)', function () { var $letter = $(this).parent().parent().find('.words .letter:not(.filled)').first(); if($letter.length===0){ return; } $letter.text($(this).text()).addClass('filled'); $letter.data('letterIndex', $(this).attr('data-index')); $(this).addClass('emptied'); $(this).data('word', $letter.attr('data-word')); $(this).data('letterindex', $letter.attr('data-index')); $(this).html(''); checkLetters($(this).parent().parent().find('.words').first()); }); $(document).on('click', '.question:not(.answered) .words .letter.filled:not(.locked)', function () { $index = $(this).data('letterIndex'); $(this).parents('.words').removeClass('incorrect'); var $letter = $(this).parent().parent().parent().find('.lettersAvailable .letter[data-index='+$index+']').first(); $letter.removeClass('emptied').text($(this).text()); $(this).removeClass('filled'); $(this).html(''); }); $(document).on('click', '.question:not(.answered) .gettip', function () { var random = Math.floor(Math.random()*$(this).parent().find('.words .letter:not(.filled)').length); var $letter = $(this).parent().find('.words .letter:not(.filled)').eq(random); if($letter.length>0){ tipsUsed++; var correct = $letter.data('correct'); var $letterAvailable = $(this).parent().find('.lettersAvailable .letter[data-letter="'+correct+'"]:not(.emptied)').first(); if($letterAvailable.length===0){ $letterAvailable = $(this).parent().parent().parent().find('.lettersAvailable .letter[data-letter="'+correct+'"]:not(.locked)').first(); var wordIndex = $letterAvailable.data('word'); var letterIndex = $letterAvailable.data('letterindex'); var $letterInWord = $(this).parent().parent().parent().find('.words .letter[data-word='+wordIndex+'][data-index='+letterIndex+']:not(.locked)').first(); var index = $letterInWord.data('letterIndex'); $letterAvailable = $letterInWord.parent().parent().parent().find('.lettersAvailable .letter[data-index='+index+']').first(); $letterAvailable.removeClass('emptied').text($letterInWord.text()); $letterInWord.removeClass('filled'); $letterInWord.html(''); } $letter.text($letterAvailable.text()).addClass('filled locked'); $letter.data('letterIndex', $letterAvailable.attr('data-index')); $letterAvailable.addClass('emptied locked'); $letterAvailable.html(''); checkLetters($(this).parent().find('.words').first()); return; } var incorrects = []; $(this).parent().find('.words .letter:not(.locked)').each(function (i, el) { if($(this).data('correct')!==$(this).text()){ incorrects.push(i); } }); random = Math.floor(Math.random()*incorrects.length); var $el = $(this).parent().find('.words .letter:not(.locked)').eq(incorrects[random]); index = $el.data('letterIndex'); $letter = $el.parent().parent().parent().find('.lettersAvailable .letter[data-index='+index+']').first(); $letter.removeClass('emptied').text($el.text()); $el.removeClass('filled'); $el.html(''); correct = $el.data('correct'); $letterAvailable = $el.parent().parent().parent().find('.lettersAvailable .letter[data-letter="'+correct+'"]:not(.emptied)').first(); if($letterAvailable.length===0){ $letterAvailable = $el.parent().parent().parent().find('.lettersAvailable .letter[data-letter="'+correct+'"]:not(.locked)').first(); wordIndex = $letterAvailable.data('word'); letterIndex = $letterAvailable.data('letterindex'); $letterInWord = $el.parent().parent().parent().find('.words .letter[data-word='+wordIndex+'][data-index='+letterIndex+']:not(.locked)').first(); index = $letterInWord.data('letterIndex'); $letter = $letterInWord.parent().parent().parent().find('.lettersAvailable .letter[data-index='+index+']').first(); $letter.removeClass('emptied').text($letterInWord.text()); $letterInWord.removeClass('filled'); $letterInWord.html(''); } $el.text($letterAvailable.text()).addClass('filled locked'); $el.data('letterIndex', $letterAvailable.attr('data-index')); $letterAvailable.addClass('emptied locked'); $letterAvailable.html(''); checkLetters($(this).parent().find('.words').first()); }); function checkLetters($words){ $words.removeClass('incorrect'); $correct = 0; $words.find('.letter').each(function () { if($(this).data('correct')===$(this).text()){ $correct++; } }); if($correct===$words.find('.letter').length){ if($words.parents('.question').hasClass('questionad')){ $words.parents('.question').find('.text').html('Narysuj nowe hasło:'); $words.parents('.question').find('.question-answers').remove(); var $video = $('.video-question'); $video.attr('src', '/wp-content/themes/filing/img/kalambury-video/start.mp4'); $video.attr('autoplay', true); $video.attr('loop', true); $video.off('ended'); if(isiPhone()){ $video.attr('controls', true); $video.attr('playsinline', true); } $video.on('ended', function (){ this.play(); }); return; } }else if($words.find('.letter').length===$words.find('.letter.filled').length){ $words.addClass('incorrect'); } } } $tmpq.find('.question-answers .answers-inner').append($words); var letters = slowa[v].toUpperCase().replace(/ /g, ''); allLettersLength += letters.length; var phraseToGuess = letters; var m = 16; while(letters.length>m){ m+=8; } var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; for ( j = letters.length; j < m; j++ ) { letters += characters.charAt(Math.floor(Math.random() * characters.length)); } letters = shuffleArray(letters.split('')); var $lettersAvailable= $('

'); for(j = 0; j < letters.length; j++){ $letter = $('

'+letters[j]+'

').attr('data-letter', letters[j]); $lettersAvailable.append($letter); } $tmpq.find('.question-answers .answers-inner').append($lettersAvailable); $tmpq.find('.question-answers .answers-inner').append('

'); if(isiPhone()){ $tmpq.find('a').attr('href', 'https://apps.apple.com/app/apple-store/id1549670280?pt=117980003&ct=podquizem_'+video[v]+'&mt=8'); } $('#kalamburyad').append($tmpq); var $video = $('.video-question'); $video.on('ended', function(){ $video.addClass('ended'); }); $(window).scroll(function() { if ($video.is(":in-viewport") && !$video.hasClass('ended')) { if(isiPhone()){ $video.attr('controls', true); $video.css('pointer-events', 'none'); $video.attr('playsinline', true); } $video[0].play(); if(isiPhone()){ $video.attr('controls', false); } if(!$video.hasClass('played')){ Cookies.set('kalamburyWatched', watched+1, {expires: 9999}); } $video.addClass('played'); } else { $video[0].pause(); } }); } });

Quiz w Poczekalni. Zawiera nieodpowiednie treści? Wyślij zgłoszenie

kiniacze.-.

Zobacz profil

Zobacz podobne quizy: #biologia #kartkowka #sprawdzian #szkola #test #wiedza

Czy masz problem z rozróżnianiem kolorów?
Czy to zaszkodzi kotu? Sprawdź, czy wiesz, któr...
Natsu czy Multi? - O kim mowa?
TRIBBS - ile o nim wiesz?
Hey, I'm yandere • 012
Hey, I'm yandere • 011
Czy zdrapka zgadnie, ile masz punktów w rekruta...
Jak dobrze pamiętasz światowe tradycje ślubne?
Tylko 1% fanów uzyska 100% w tym teście - Wersj...
Z której piosenki Izabeli Kisio-Skorupy pochodz...
Masz świetny pomysł na quiz? Dodaj quiz

Komentarze sameQuizy: 0

Masz świetny pomysł na quiz?

+ Dodaj quiz

poprzedni następny

Jaki jest Twój wiek umysłowy? SPRAWDŹ
Z kim zawalczysz na Prime MMA?
Czy znany influencer na Instagrmie Cię zaobserwuje?
Przypominasz bardziej żółwia czy żyrafę?
Kreator: Twoje życie w alternatywnym świecie
Co związanego z wakacjami wolisz już nigdy nie móc zrobić?
Jaki jest Twój przepis na udane wakacje?
Rozpoznaj doktorów, wynalazców i naukowców ze świata Marvela!
Jaka pogoda zastanie Cię nad morzem?
Wylosuj film lub serial do obejrzenia z każdej z czterech faz Marvela!
Czy masz problem z rozróżnianiem kolorów?
Ujawnimy Twoją miłość do kawy!
Obstaw, kto wygra walki na Prime MMA 2!
Stwórz swój outfit w stylu…! – Grunge
Co wolisz? – Wersja wakacyjna!
Czy to zaszkodzi kotu? Sprawdź, czy wiesz, którymi produktami absolutnie nie możesz poczęstować pupila!
Stwórz własnego smoka, a ja wybiorę dla niego moc
Natsu czy Multi? – O kim mowa?
Zdrap wymijającą odpowiedź na pytanie ,,dlaczego się rumienisz?”
Piosenka LOONA dla każdego znaku zodiaku!
Top Articles
Latest Posts
Article information

Author: Ray Christiansen

Last Updated: 12/24/2022

Views: 6300

Rating: 4.9 / 5 (69 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.