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.wpc_url, 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 _ajax_nonce: wpcAjax.wpc_nonce, 20 }, 21 success : function( data ) { 22 if ( data.success ) { 23 jQuery( '#wpc-weather-id-' + data.data.weather ).append( data.data.html ); 24 } else { 25 console.log( data.data ); 26 } 27 }, 28 beforeSend: function(){ 29 jQuery(".wpc-loading-spinner").show(); 30 jQuery("#wpc-weather").hide(); 31 }, 32 complete: function(){ 33 jQuery(".wpc-loading-spinner").hide(); 34 jQuery("#wpc-weather").show(); 35 }, 36 }); 37 } 38});
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.