1jQuery(document).ready(function() { 2 jQuery('.loader').hide(); 3 jQuery('#acf-field_5aaca0ef9aa41').prop('readonly', true); 4 5 jQuery(":radio").change(function() { 6 var names = {}; 7 jQuery(':radio').each(function() { 8 names[jQuery(this).attr('name')] = true; 9 }); 10 var count = 0; 11 jQuery.each(names, function() { 12 count++; 13 }); 14 if (jQuery(':radio:checked').length === count) { 15 jQuery("#match_me_submit").trigger("click"); 16 } 17 }).change(); 18 19 var $radioButtons = jQuery('input[type="radio"]'); 20 $radioButtons.click(function() { 21 jQuery(this).parents("li").children("input[value='answer']").attr("name",jQuery(this).attr('data-result')); 22 $radioButtons.each(function() { 23 jQuery(this).parent().toggleClass('active', this.checked); 24 }); 25 }); 26 27 jQuery('#match_me_submit').on('click', function (e) { 28 jQuery('.loader').show(); 29 e.preventDefault(); 30 jQuery.ajax({ 31 type: 'post', 32 url: getdataurl, 33 data: jQuery('#match-me-form').serialize(), 34 success: function (result) { 35 jQuery('.loader').hide(); 36 jQuery('#result').html(result); 37 jQuery("#match-me-form ol li.questions").find('input[type="radio"]').attr('disabled', 'disabled'); 38 setTimeout(function(){ 39 jQuery('html, body').animate({ 40 scrollTop: jQuery("#result").offset().top 41 }); 42 }); 43 }, 44 }); 45 }); 46 47 equalheight = function(container){ 48 49 var currentTallest = 0, 50 currentRowStart = 0, 51 rowDivs = new Array(), 52 $el, 53 topPosition = 0; 54 jQuery(container).each(function() { 55 56 $el = jQuery(this); 57 jQuery($el).height('auto') 58 topPostion = $el.position().top; 59 60 if (currentRowStart != topPostion) { 61 for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { 62 rowDivs[currentDiv].height(currentTallest); 63 } 64 rowDivs.length = 0; // empty the array 65 currentRowStart = topPostion; 66 currentTallest = $el.height(); 67 rowDivs.push($el); 68 } else { 69 rowDivs.push($el); 70 currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest); 71 } 72 for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) { 73 rowDivs[currentDiv].height(currentTallest); 74 } 75 }); 76 } 77 78 jQuery(window).load(function() { 79 equalheight('#match-me-form ul li.questions .answers.image'); 80 }); 81 jQuery(window).resize(function(){ 82 equalheight('#match-me-form ul li.questions .answers.image'); 83 }); 84});
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.