https://www.kartoonchannel.com/themes/contrib/codes_themes/codesba…/date-and-time.meridiem.js?tlrr2m
1(function (global) { 2 'use strict'; 3 4 var exec = function (date) { 5 date.plugin('meridiem', { 6 res: { 7 A: ['AM', 'PM', 'A.M.', 'P.M.', 'am', 'pm', 'a.m.', 'p.m.'] 8 }, 9 formatter: { 10 AA: function (d) { 11 // A.M. / P.M. 12 return this.res.A[d.getHours() > 11 | 0 + 2]; 13 }, 14 a: function (d) { 15 // am / pm 16 return this.res.A[d.getHours() > 11 | 0 + 4]; 17 }, 18 aa: function (d) { 19 // a.m. / p.m. 20 return this.res.A[d.getHours() > 11 | 0 + 6]; 21 } 22 }, 23 parser: { 24 A: function (str) { 25 var result = this.find(this.res.A, str); 26 result.value %= 2; 27 return result; 28 } 29 } 30 }); 31 }; 32 33 if (typeof module === 'object' && typeof module.exports === 'object') { 34 (module.paths || []).push('./'); 35 exec(require('date-and-time')); 36 } else if (typeof define === 'function' && define.amd) { 37 define(['date-and-time'], exec); 38 } else { 39 exec(global.date); 40 } 41 42}(this));
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.