1const getTodayDate = () => { 2const months = { 3 Jan: 'January', 4 Feb: 'February', 5 Mar: 'March', 6 Apr: 'April', 7 May: 'May', 8 Jun: 'June', 9 Jul: 'July', 10 Aug: 'August', 11 Sep: 'September', 12 Oct: 'October', 13 Nov: 'November', 14 Dec: 'December' 15 } 16 const days = { 17 Sun:"Sunday", 18 Mon:"Monday", 19 Tue:"Tuesday", 20 Wed:"Wednesday", 21 Thu:"Thursday", 22 Fri:"Friday", 23 Sat:"Saturday" 24 } 25 26 const d = new Date() 27 const today = d.toDateString().split(" ") 28 $('.paper_date').html(`<p>${days[today[0]]}, ${months[today[1]]} ${today[2]} ${today[3]} </p>`) 29} 30 31getTodayDate(); 32 33const setURLActive = (linkName) => { 34 $(linkName).addClass('active') 35} 36 37const setScreenMenu = () => { 38 if ($(window).width() < 600) { 39 $('.newsDropDown').attr('href', '#') 40 } 41 else { 42 $('.newsDropDown').attr('href', 'news') 43 } 44} 45 46setScreenMenu()
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.