1(function (Drupal, once) { 2 Drupal.behaviors.date_now = { 3 attach: function (context, settings) { 4 5 const datesNow = once('date_now', '.date_now_cite', context); 6 datesNow.forEach((dateNow) => { 7 insertDateNow(dateNow); 8 }); 9 function insertDateNow(dateNow) { 10 const dataLanguage = dateNow.getAttribute('data-language'); 11 let options; 12 13 if (dataLanguage === 'es') { 14 options = { day: 'numeric', month: 'long', year: 'numeric' }; 15 } else if (dataLanguage === 'en') { 16 options = { month: 'long', day: 'numeric', year: 'numeric' }; 17 } 18 19 dateNow.textContent = new Intl.DateTimeFormat(dataLanguage, options).format(new Date()); 20 } 21 } 22 }; 23}(Drupal, once)); 24
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.