1(function ($) { 2 var lang = $('html').attr('lang'); 3 var prefix = $('body').data('lang-prefix'); 4 if($('#mobile-stock-value').length) { 5 $.getJSON(prefix + '/finance-stock-data/json', function (response) { 6 console.log(response.data); 7 if(!response.data.code_mnemo) { 8 return 9 } 10 if(lang == 'en' || lang == 'it') { 11 $('#stock-value').text('⬠' + response.data.daily_last.replace( ' â¬', '')) 12 $('#stock-date').text('⬠' + response.data.daily_last.replace( ' â¬', '')) 13 } else { 14 $('#stock-value').text(response.data.daily_last) 15 $('#stock-date').text(response.data.daily_date) 16 } 17 $('#mobile-stock-value').text(response.data.daily_last) 18 $('#mobile-stock-date').text(response.data.daily_date) 19 }); 20 } 21 22})(jQuery, Drupal);
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.