kim jesteś z Ricka i Morty'ego (2023)

'); $letter.data('σωστό', λέξεις[k]); $word.append($litera); } $słowo.append($słowo); } $tmpq.find('.pytanie-odpowiedź.odpowiedź-wewnętrzna').append($word); var litery = v.answers[0].text.trim().toUpperCase().replace(/ /g, ''); allLettersLength += litery.długość; v.phraseToGuess = γράμματα; ήταν m = 16; while(litery.długość>m){ m+=8; } var χαρακτήρες = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; for ( j = litery.długość; j < m; j++ ) { litery += znaki.charAt(Math.floor(Math.random() * znaki.długość)); } litery = shuffleArray(lettery.split('')); var $availablelettery = $('

'); for(j = 0; j < długości liter; j++){ $litera = $('

'+litery[j]+'

').attr('litera-dados', litery[j]); $letrasDisponíveis.append($letras); } $tmpq.find('.pytanie-odpowiedź .odpowiedź-wewnętrzna').append($letterAvailable); $tmpq.find('.perguntas-respostas.respostas-inner').append('

'); }else { var long = falsk; $.each(v.respostas, função (i, v) { var $tmpa = $a.clone().removeClass('empty').show(); $tmpa.attr('id', 'resposta-' + (i + 1)); $tmpa.data („wyniki”, v.wyniki), $tmpa.data („correto”, v.correto); $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('lange-svar'); } } } else { $.each(v.odpowiedzi, funkcja (i, v) { var $tmpa = $ai.clone().removeClass('empty').show(); $tmpa.attr('id' , 'odpowiedź-' + (i + 1)); $tmpa.data('wyniki', v.result); $tmpa.data('poprawne', v.poprawne); $tmpa.data('id', v.id); $tmpa.find('.image img').attr('src', v.image.replace('http:', '')); $tmpa.find('.text'). dołącz(v.tekst); if (jQuery("

" + v.texto + "

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

'); }); if (v.type == "texto longo") { $tmpq.find('.question-answers').addClass('long-answers'); } if (v.type == "nenhum svar") { $tmpq.addClass('ingen svar'); } } $('.question_boxes_inner').append('

' + (eu + 1) + '

'); if(quizData.type === "overlev" && i > 0){ $tmpq.hide(); } if((quizData.type === "timetest" || quizData.type === "bogstaver") && i > 0){ $tmpq.hide(); } $('#quiz .pytania-kontener').append($tmpq); if (i === 1) { if(!$tmpq.hasClass('noanswers')) $('#quiz .questions-container').append('

'); senão $('.pytanie:nie(.noodpowiedzi):nie(.puste):ostatnie).po('

'); } if(i>1 && i%2!==0 && i+2 < quizData.questions.length){ if(!$tmpq.hasClass('noanswers')) $('#quiz .questions-container') .Tilføj('

'); senão $('.pytanie:nie(.puste):ostatnie').after('

'); } }); if(quizData.type==='letras'){ } if(quizData.type==='sobreviver' || quizData.type==='timetest' || quizData.type==='letras'){ $ („#ad1,#ad2,#ad3,.optad-container”).hide(); } passo { var szerokość = window.innerWidth || document.documentElement.clientWidth || dokument.body.clientWidth; if(τύπος παραθύρου._qasp == 'udefineret') {παράθυρο._qasp = _qasp || []; }else{ if(szerokość<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('kliknij', '.quiz-nav', funkcja (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' ) } επιστροφής falsk; }); var dicasUsado = 0; Sprawdź checkLetters($words){ $words.removeClass('forkert'); $korekta = 0; $words.find('.γράμμα').each(function () {if($(this).data('correto')===$(este).text()){ $correto++; } }); if($correct===$words.find('.γράμμα').length){ if($words.parents('.question').hasClass('questionad')){ $words.parents('.question ').find('.text').html('Narysuj nowe hasło:'); $palavras.parents('.pytanie').find('.pytanie-odpowiedzi').remove(); var $video = $('.video-spørgsmål'); $video.attr('src', '/wp-content/themes/filing/img/kalambury-video/start.mp4'); $video.attr('reprodukcja automatyczna', obszar); $video.attr('pętla', obszar); $video.off('τελείωσε'); $video.on('finalizado', funkcja (){ this.play(); }); Uprawa Vende? } $palavras.parents('.question').addClass('besvaret'); setTimeout(function () { var $curq = $('#quiz .question:not(.empty):visible').hide(); $curq.nextAll('.question:first').show().addClass ('fadeIn animado'); $('html, body').animate({ scrollTop: $('#quiz').offset().top - 80 }, 1000); ProgressQuestions($('#quiz .question ) .respondido').length+1, quizData.questions.length, $('#progressBar')); if ($('#quiz .pytanie:not(.empty):not(.noanswers)').length = == $('#quiz .pytanie.odpowiedziano').length) { var s = Math.round( (todas as pontas de comprimento de letras usadas)/allLettersLength*100); var τελικό? if(s<65){ final = quizData.resultados [0]; }else if(s<85){ final = quizData.results[1]; }else{ final = quizData.resultados[2]; } primeiro { if(!Cookies.get('seensuper')) { $('.postvote[data-toggle="tooltip"]').tooltip('show'); Cookies.set('seesuper', 'true', {expira: Infinity}); } $(documento).trigger('optad360_inter'); startCollectionCountdown(); __gaTracker('enviar', 'evento', 'quiz', 'fim', window.location.pathname); gtag('evento', 'quiz_end', { 'página': okno.lokalizacja.nazwa ścieżki }); } catch (błąd) { console.log (błąd); } $('#pasek postępu').hide(); $('.result-container .result-content').html(final.description.replace(/(?:\r\n|\r|\n)/g, '
')); $('.result-container.result-title').prepend('

Wynik dziekana:„+s+”%

'); $('.result-container.result-title h2').html(final.title); $('#result.result-container').show(); $('.score b span').prop('Licznik',0).animate({ Nível: $('#result .score b span').text() }, { czas trwania: 4000, easing: 'swing ', βήμα: συνάρτηση (nu) { $('#result .score b span').text(Math.ceil(now)); } }); } },1000); // $('html, body').animate({ // scrollTop: $('#quiz').offset().top - 100 // }, 1000); }else if($words.find('.γράμμα').length===$words.find('.γράμμα.γεμισμένο').length){ $words.addClass('forkert'); } } $(dokument).on('click', '.question:not(.answered) .lettesAvailable .letter:not(.emptied)', funkcja () { var $letter = $(this).parent() .parent().find('.words .letter:not(.filled)').first(); if($letter.length===0){ return; } $letter.text($(this). tekst()).addClass('preenchido'); $letter.data('letterIndex', $(this).attr('indeks-danych')); $(this).addClass('tømt'); $( this).data('palavra', $letter.attr('słowo-danych')); $(this).data('letterindex', $letter.attr('indeks-danych')); $(this) .html(''); checkLetters($(this).parent().parent().find('.words').first()); }); $(document).on('click', '.question:not(.απαντήθηκε) .words .letter.filled:not(.locked)', funkcja () { $index = $(this).data('letterIndex '); $(this).parents('.words').removeClass('λάθος'); var $letter = $(this).parent().parent().parent().find('.lettersAvailable . Carta[data-index='+$index+']').first(); $letter.removeClass('opróżnione').text($(this).text()); $(this).removeClass('wypełnione '); $(dette).html(''); }); $(document).on('click', '.question:not(.answered) .gettip', funkcja () { var random = Math.floor(Math.random()*$(this).parent(). find('.words .list:nie(.wypełniony)').length); var $litera = $(this).parent().find('.words .list:nie(.wypełniony)').eq( τυχαία); if($letter.length>0){ dicasUsadas++; var correto = $letter.data('correto'); var $letterAvailable = $(this).parent().find('.lettersAvailable .letter[dados -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('λέξη'); var letterIndex = $letterAvailable.data('letterindex'); var $letterInWord = $(this).parent().parent().parent().find('.words .letter[data-word='+wordIndex+' ][data-index='+letterIndex+']:not(.locked)').first(); var indeks = $letterInWord.data('letterIndex'); $letterAvailable = $letterInWord.parent().parent() .parent().find('.lettersAvailable .letter[data-index='+indeks+']').first(); $letterAvailable.removeClass('tømt').text($letterInWord.text()); $letterInWord.removeClass('preenchido'); $letraInWord.html(''); } $letter.text($letterAvailable.text()).addClass('preenchido bloqueado'); $letter.data('letterIndex', $letterAvailable.attr('indeks-danych')); $letterAvailable.addClass('dane końcowe'); $letraDisponível.html(''); checkLetters($(this).parent().find('.words').first()); Uprawa Vende? } var incorretos = []; $(this).parent().find('.words .letter:not(.locked)').each(function (i, el) {if($(this).data('correto')!== $(this).text()){ incorretos.push(i); } }); aleatório = Math.floor(Math.random()*incorretos.comprimento); var $el = $(this).parent().find('.words .letter:not(.locked)').eq(forkerter[tilfældig]); indeks = $el.data('letraIndex'); $letra = $el.parent().parent().parent().find('.lettersAvailable .letter[data-index='+indeks+']').first(); $letter.removeClass('tømt').text($el.text()); $el.removeClass('preenchido'); $el.html(''); korrekt = $el.data('korrekt'); $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+'"]: não(.último)').primeiro(); wordIndex = $letterAvailable.data('λέξη'); letterIndex = $letterAvailable.data('letterindex'); $letterInWord = $el.parent().parent().parent().find('.words .letter[data-word='+wordIndex+'][data-index='+letterIndex+']:not(.locked )').primeiro(); índice = $letterInWord.data('letterIndex'); $letter = $letterInWord.parent().parent().parent().find('.lettersAvailable .letter[data-index='+indeks+']').first(); $letter.removeClass('tømt').text($letterInWord.text()); $letterInWord.removeClass('preenchido'); $letraInWord.html(''); } $el.text($letterAvailable.text()).addClass('preenchido bloqueado'); $el.data('letterIndex', $letterAvailable.attr('indeks-danych')); $letterAvailable.addClass('dane końcowe'); $letraDisponível.html(''); checkLetters($(this).parent().find('.words').first()); }); $('#quiz .answer:not(.disabled)').click(function () { if (!started) { try { __gaTracker('wyślij', 'zdarzenie', 'quiz', 'start', window. lokalizacja.ścieżka); gtag('event', 'quiz_start', { 'strona': okno.lokalizacja.ścieżka }); } catch (err) {consol.log(err); } start = true; } if ($ (this).hasClass('disabled')) το στοιχείο επιστροφής false; var wynikado; if (!(quizData.type === "historie" || quizData.type === "overlev" || quizData.type == = "test czasu" || quizData.type === "bogstaver")){ $('#missing-answers').show(); } $qexp = $(this).parents('.question').find („ .wyjaśnienie”); $(this).parent().find('.answer').removeClass('checked'); $(this).addClass('ενεργό ελεγμένο'); $(this).pais (' .question').addClass('besvaret'); if (quizData.type === "ciekawostki") { $(this).parent().find('.answer').addClass('disabled') ; if ($(this).data('correto') == "1") { $(este).addClass('correto'); $qexp.addClass('σωστό'); } else { $(este) .addClass ('λάθος'); $qexp.addClass('λάθος'); $(this).parent().find('.answer').each(function () {if ($(this).data( 'σωστό ') == "1") $(this).addClass('korrekt'); }); } $qexp.show(); } if (quizData.type === "tidstest") { $(this).parent().find('.answer').addClass('disabled'); if ($(this).data('correto') == "1") { $(este).addClass('correto'); } else { $(this).addClass('λάθος'); $(this).parent().find('.answer').each(function () {if ($(this).data('correto') == "1") $(this).addClass(' correto'); }); } setTimeout(function () { var $curq = $('.question:not(.empty):visible').hide(); $curq.nextAll('.question:first').show().addClass( 'fadeIn animado'); postęp(quizData.timetoanswer, quizData.timetoanswer, $('#progressBar')); $('html, body').animate({ scrollTop: $('#progressBar').offset() .top - 100}, 1000);}, 1000); clearTimeout(timeout postępu); } if (quizData.type === "overleve") { $(this).parent().find('.answer').addClass('disabled'); if ($(this).data('correto') == "1") { $(este).addClass('correto'); var nq = $('.spørgsmål:ikke(:synlig):ikke(.tom)').first(); nq.pokaż(); if(nq.next().hasClass('text-align-center') || nq.next().hasClass('optad-container')){ nq.next().show(); } } else {if(!Cookies.get('seensuper')) { $('.postvote[data-toggle="tooltip"]').tooltip('show'); Cookies.set('seesuper', 'true', {nazwa: Nieskończoność}); } $(documento).trigger('optad360_inter'); startCollectionCountdown(); __gaTracker('enviar', 'evento', 'quiz', 'fim', window.location.pathname); gtag('evento', 'quiz_end', { 'página': okno.lokalizacja.nazwa ścieżki }); } catch (fejl) {console.log(err); } $('.pod-notatką-quiz.survive').hide(); $(this).addClass('forkert'); if($(this).data("wyniki").length>0){ var final = getObjects(quizData.results, 'id', $(this).data("wyniki")); if(final[0].description.length>0) $('.result-container .result-content').html(final[0].description.replace(/(?:\r\n|\r| \n)/g, '
')+' następnie ponownie!'); $('.result-container .result-title h2').html('Ponownie wynik ' +final[0].title); $('.kontener-wyników').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, '
')+' następnie ponownie!'); $('.result-container .result-title h2').html('Resultado ponownie ' +final.title); $('.kontener-wyników').show(); } $('html, corpo').animate({ scrollTop: $('#result').offset().top - 80 }, 1000); } } $('.question_box_done:last').next('.question_box').addClass('question_box_done'); if ($('#κουίζ .question:not(.empty):not(.noanswers)').length === $('#quiz .checked').length) {if(quizData.type===' test czasu'){ setTimeout(visResultat, 1000); }else {pokażWynik(); } }else{ $('#zakres brakujących odpowiedzi').text(quizData.questions.length-$('.pytanie.odpowiedzi').length); } }); $('#brakujące-odpowiedzi a').click(function (e) { e.preventDefault(); $('html, body').animate({ scrollTop: $('.question:not(.answered): primeiro').offset().top - 80 }, 1000); }); } funkcja startCollectionCountdown(){ if($("#next_quiz").length>0){ var timer = null; var drugi = 5; var Observer = new IntersectionObserver(funkcja(wpisy) { if(wpisy[0].isIntersecting === true) { segundos = 5; timer = setInterval(funkcja () {$('#next_quiz .next-countdown').text („+sekunder+”)”); if (--sekunder < 0) {clearInterval(timer); window.location = $('#next_quiz').attr('href');} }, 1000); }else{clearInterval(temporizador); } }, {κατώφλι: [1] }); Observer.observe(document.querySelector("#next_quiz")); } } zabawa showResult() { zabawa {if(!Cookies.get('seensuper')) { $('.postvote[data-toggle="tooltip"]').tooltip('show'); Cookies.set('seesuper', 'true', {nazwa: Nieskończoność}); } $(documento).trigger('optad360_inter'); startCollectionCountdown(); __gaTracker('enviar', 'evento', 'quiz', 'fim', window.location.pathname); gtag('evento', 'quiz_end', { 'página': okno.lokalizacja.nazwa ścieżki }); } catch (fejl) {console.log(err); } if (quizData.type === "overleve"){ $('.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); $('.kontener-wyników').show(); } }else if (quizData.type === "pessoa" || quizData.type==="historie") { var r = {}; for (res em quizData.results) { r[quizData.results[res].id] = 0; } $('.answer.checked').each(function () { var rr = $(this).data('resultater'); rr = rr.split(','); for (var tmp i rr) {r[rr[tmp]]++; } }); zmienna b = 0; para (var k i r) { if (r[k] > b) { b = r[k]; wynik = k; } } var final = getObjects(quizData.results, 'id', αποτέλεσμα); $('.result-container .result-content').html(final[0].description.replace(/(?:\r\n|\r|\n)/g, '
')); $('.result-container .result-title h2').html(final[0].title); $('.kontener-wyników').show(); } andet { zm. s = 0; var endelige; $('.answer.checked').each(function () { if ($(this).data('correct') == "1") { s++; } }); $.each(quizData.results, συνάρτηση (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('Wynik dziekana:' + s + '/' + $('#quiz .question:not(.empty)').długość + '' + koniec.tytuł); if(quizData.type==="test godzinowy"){ var end = wydajność.now(); var czas = (koniec - początek)/1000; var minuty = Math.floor(time/60); var sekundy = Math.round(czas - minuty * 60); var finalTime = str_pad_left(minuty,'0',2)+':'+str_pad_left(sekundy,'0',2); $('#pasek postępu').hide(); $('.result-container.result-title h2').html('Wynik dziekana:' + s + '/' + $('#quiz .question:not(.empty)').długość + ' Twój czas:' + godzina zakończenia + '

' + koniec.tytuł); } $('.result-container').show().addClass('animowane zanikanie'); } $('#brakujące odpowiedzi').hide(); $('html, body').animate({ scrollTop: $('#result').offset().top - 80 }, 1000); $('.answer:not(.disabled)').off('click'); } funkcja getObjects(obj, klucz, wartość) { var obiekty = []; for (var i in obj) { if (!obj.hasOwnProperty(i)) kontynuuj; if (typeof obj[i] == 'obiekt') {obiekty = obiekty.concat(getObjects(obj[i], klucz, wartość)); } else if (i == klucz && obj[klucz] == val) {objects.push(obj); } } zwraca obiekty; } });

Ankieta w poczekalni. Czy zawiera nieodpowiednie treści?Złożyć wniosek

References

Top Articles
Latest Posts
Article information

Author: Dan Stracke

Last Updated: 21/09/2023

Views: 6688

Rating: 4.2 / 5 (63 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Dan Stracke

Birthday: 1992-08-25

Address: 2253 Brown Springs, East Alla, OH 38634-0309

Phone: +398735162064

Job: Investor Government Associate

Hobby: Shopping, LARPing, Scrapbooking, Surfing, Slacklining, Dance, Glassblowing

Introduction: My name is Dan Stracke, I am a homely, gleaming, glamorous, inquisitive, homely, gorgeous, light person who loves writing and wants to share my knowledge and understanding with you.