1// JavaScript Document 2$(function () { 3 //Get Year, Volume, Issue from URL and populate it on page 4 var url = window.location.href; 5 6 //Declare volume, issue, and archive variables 7 var volume 8 var issue 9 var archive 10 var CQFooter = "" 11 12 //domain split 1: for current issues 13 //domain split 2 for archive issues (the URLs are different) 14 var domain = url.split('/'); 15 var domain2 = url.split('/'); 16 17 //determine location of volume/issue in URL 18 domain = domain[domain.length - 2]; 19 domain2 = domain2[domain2.length - 3]; 20 21 //2nd split for clarity 22 domain = domain.split('-'); 23 domain2 = domain2.split('-'); 24 25 //Find the word 'issues' in URL; If exists, then it is an archive issue 26 archive = domain2[domain2.length - 1]; 27 28 //If 'issues' exists, then it is an archive issue 29 if (archive == 'issues') { 30 volume = domain[domain.length - 3]; 31 issue = domain[domain.length - 1]; 32 //Else, it is a current issue 33 } else { 34 volume = domain2[domain2.length - 4]; 35 issue = domain2[domain2.length - 2]; 36 } 37 38 //Set Season (month) 39 var month = new Array(); 40 month[1] = "September"; 41 month[2] = "October"; 42 month[3] = "November"; 43 month[4] = "December"; 44 month[5] = "January"; 45 month[6] = "March"; 46 month[7] = "May"; 47 month[8] = "June"; 48 49 //Determine Issue Year based on the beginning year and issue number (changes aat issue 5) 50 var year_base = 1971; 51 if (Number(issue) >= 5) { 52 year_base += 1; 53 } 54 var issue_year = year_base + Number(volume); 55 var season = month[issue] 56 57 if (volume >= 37) { 58 if (issue == 5) { 59 season = 'January/February'; 60 } else if (issue == 6) { 61 season = 'March/April'; 62 } 63 } 64 65 //Populate Volume and Issue fields 66 CQFooter = "<div class='CQfooterDiv'>" 67 CQFooter += "<div class='footerLeft'>© " + issue_year + ", National Association of School Psychologists</div>" 68 CQFooter += "<div class='footerRight'>" + season + ' ' + issue_year + ', Volume ' + volume + ', Number ' + issue + " | <span class='CQFooterName'>Communiqué</span></div>" 69 CQFooter += "</div>" 70 71 $('.CQfooterContainer').html(CQFooter) 72 73});
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.