https://academy21.co.uk/wp-content/cache/min/1/wp-content/plugins/…/js/custom-quiz.js?ver=1791288796
1var formCurrentlyBeingSubmitted=!1;function scrollToTheQuiz(){var urlParams=new URLSearchParams(window.location.search);var path=window.location.pathname;var elementClass='.custom_quiz_container';if(jQuery(elementClass).length){var scrollToPosition=jQuery(elementClass).offset().top-160;jQuery('html, body').animate({scrollTop:scrollToPosition},'slow')}} 2jQuery(document).ready(function(){scrollToTheQuiz();jQuery(document.body).on("click","div.quiz-nav button.is-prev",function(event){event.preventDefault();var theClickedButton=jQuery(this);var stepNumber=theClickedButton.data("step-number");window.location.href=customQuizMainPageUrl+"?tab="+stepNumber});jQuery(document.body).on("click","div.quiz-nav button.is-next",function(event){event.preventDefault();if(formCurrentlyBeingSubmitted==!1){formCurrentlyBeingSubmitted=!0;var theClickedButton=jQuery(this);var closestTabContent=theClickedButton.closest("div.tabContent");if(theClickedButton.attr("id")==="quiz-step-5-next"){var dynamicsSubmitButton=closestTabContent.find("div.dynamics-form button[type='submit'], div.dynamics-form input[type='submit']").first();if(dynamicsSubmitButton.length){dynamicsSubmitButton.trigger("click");return} 3var dynamicsForm=closestTabContent.find("div.dynamics-form form").first();if(dynamicsForm.length){dynamicsForm.trigger("submit")} 4return} 5var theForm=closestTabContent.find("form.cq-form");if(theForm.length){theForm.submit()}}});jQuery(document.body).on('click','.nw-a21-quiz .quiz-option-card',function(event){const clickedCard=jQuery(this);const clickedInput=clickedCard.find('input[type="radio"], input[type="checkbox"]').first();if(!clickedInput.length){return} 6const inputType=clickedInput.attr('type');const clickedInputName=clickedInput.attr('name');const closestForm=clickedInput.closest('form');if(inputType==='radio'){const radioGroupInputs=closestForm.find('input[type="radio"]').filter(function(){return jQuery(this).attr('name')===clickedInputName});radioGroupInputs.each(function(){const radioCard=jQuery(this).closest('.quiz-option-card');radioCard.removeClass('is-selected');radioCard.find('.chip-text').text('Select')});radioGroupInputs.not(clickedInput).prop('checked',!1);clickedCard.addClass('is-selected');clickedCard.find('.chip-text').text('Remove');clickedInput.prop('checked',!0);return} 7if(inputType==='checkbox'){let shouldBeChecked=!clickedInput.prop('checked');if(jQuery(event.target).is('input[type="checkbox"]')){shouldBeChecked=clickedInput.prop('checked')}else{clickedInput.prop('checked',shouldBeChecked)} 8clickedCard.toggleClass('is-selected',shouldBeChecked);clickedCard.find('.chip-text').text(shouldBeChecked?'Remove':'Select')}});jQuery("select.localAuthorityName").each(function(){if(this.choicesInstance){this.choicesInstance.destroy()} 9this.choicesInstance=new Choices(this,{searchEnabled:!0,searchResultLimit:10,shouldSort:!0,itemSelectText:'',searchFields:['label']})})})
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.