1jQuery(document).ready(function(){ 2 var wpc_weather_id = document.getElementsByClassName('wpc-weather-id'); 3 for(var i = 0; i < wpc_weather_id.length; i++) { 4 jQuery.ajax({ 5 url : wpcAjax, 6 method : 'POST', 7 data : { 8 action: 'wpc_get_my_weather', 9 wpc_param : wpc_weather_id[i].attributes['data-id'].value, 10 wpc_param2 : wpc_weather_id[i].attributes['data-map'].value, 11 wpc_param3 : wpc_weather_id[i].attributes['data-detect-geolocation'].value, 12 wpc_param4 : wpc_weather_id[i].attributes['data-manual-geolocation'].value, 13 wpc_param5 : wpc_weather_id[i].attributes['data-wpc-lat'].value, 14 wpc_param6 : wpc_weather_id[i].attributes['data-wpc-lon'].value, 15 wpc_param7 : wpc_weather_id[i].attributes['data-wpc-city-id'].value, 16 wpc_param8 : wpc_weather_id[i].attributes['data-wpc-city-name'].value, 17 wpc_param9 : wpc_weather_id[i].attributes['data-custom-font'].value, 18 wpc_param10 : wpc_weather_id[i].attributes['data-post-id'].value, 19 }, 20 success : function( data ) { 21 if ( data.success ) { 22 jQuery( '#wpc-weather-id-' + data.data.weather ).append( data.data.html ); 23 } else { 24 console.log( data.data ); 25 } 26 }, 27 beforeSend: function(){ 28 jQuery(".wpc-loading-spinner").show(); 29 jQuery("#wpc-weather").hide(); 30 }, 31 complete: function(){ 32 jQuery(".wpc-loading-spinner").hide(); 33 jQuery("#wpc-weather").show(); 34 }, 35 }); 36 } 37});
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.