1+function ($) { 2 3 'use strict'; 4 5$( document ).ready(function() { 6 7 8 9 10 11 12 13$('#checkall').change(function () { 14 15 $('.cb-element').prop('checked',this.checked); 16 17}); 18 19 20 21$('.cb-element').change(function () { 22 23 if ($('.cb-element:checked').length == $('.cb-element').length){ 24 25 $('#checkall').prop('checked',true); 26 27 } 28 29 else { 30 31 $('#checkall').prop('checked',false); 32 33 } 34 35}); 36 37 38$(document).ready(function() { 39 // Intercept the form submission event safely 40 $('#geneologyform').on('submit', function(event) { 41 // Prevent the default browser page reload 42 event.preventDefault(); 43 44 // Serialize the inputs into a transmission string 45 var formData = $(this).serialize(); 46 var thestate = $('#currentstate').val(); 47 // Post the data asynchronously 48 $.ajax({ 49 type: 'POST', 50 url: lshajax.ajaxurl, 51 data : {action: "lshajax", mode: 'results', thedata: formData}, 52 success: function(response) { 53 $('#geneologybox').html(response); 54 }, 55 error: function(xhr, status, error) { 56 console.error('Submission failed:', error); 57 } 58 }); 59 60 $.ajax({ 61 type: 'POST', 62 url: lshajax.ajaxurl, 63 data : {action: "lshajax",mode: 'background', thedata: formData}, 64 success: function(response2) { 65 console.log(response2); 66 $('#statesbackgroundimage').css('background', 'linear-gradient(0deg, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.50)),url(' +response2+')'); 67 $('#statesbackgroundimage').addClass('statephoto'); 68 }, 69 error: function(xhr, status, error) { 70 console.error('Submission failed:', error); 71 } 72 }); 73 74 75 }); 76 77 78 $(window).on('load', function(event) { 79 // Prevent the default browser page reload 80 event.preventDefault(); 81 82 // Serialize the inputs into a transmission string 83 var formData = $(this).serialize(); 84 var thestate = $('#currentstate').val(); 85 // Post the data asynchronously 86 $.ajax({ 87 type: 'POST', 88 url: lshajax.ajaxurl, 89 data : {action: "lshajax", mode: 'results', thedata: formData}, 90 success: function(response) { 91 $('#geneologybox').html(response); 92 }, 93 error: function(xhr, status, error) { 94 console.error('Submission failed:', error); 95 } 96 }); 97 98 $.ajax({ 99 type: 'POST', 100 url: lshajax.ajaxurl, 101 data : {action: "lshajax",mode: 'background', thedata: formData}, 102 success: function(response2) { 103 console.log(response2); 104 $('#statesbackgroundimage').css('background', 'linear-gradient(0deg, rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.50)),url(' +response2+')'); 105 $('#statesbackgroundimage').addClass('statephoto'); 106 }, 107 error: function(xhr, status, error) { 108 console.error('Submission failed:', error); 109 } 110 }); 111 112 113 }); 114 115 116 117 118}); 119 120 121 122 123 124 125}); 126 127}( jQuery ); 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142
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.