1class Interface_News extends Interface { 2 3 constructor(_socket, _name) { 4 super(_socket, _name) 5 6 this.allobjects = [ 7 {Title: 'All', Url: 'All'}, 8 {Title: 'Acquisitions', Url: 'Acquisition'}, 9 {Title: 'Curating', Url: 'Curating'}, 10 {Title: 'Exhibitions', Url: 'Exhibition'}, 11 {Title: 'Film Showings', Url: 'Film'}, 12 {Title: 'Lectures', Url: 'Lecture'}, 13 {Title: 'Performances', Url: 'Performance'}, 14 {Title: 'Publications', Url: 'Publication'}, 15 {Title: 'Residencies', Url: 'Residency'}, 16 {Title: 'Workshops', Url: 'Workshop'}, 17 18 {Title: 'Discussions', Url: 'Discussion'}] 19 20 this.socket.on(this.name, (data) => { 21 this.allnews = [] 22 this.allnews = data.news 23 if (this.backward) this.allnews = this.allnews.reverse() 24 // this.allnewsimages = [] 25 // this.allnewsimages = data.news_images 26 // if (this.backward) this.allnewsimages = this.allnewsimages.reverse() 27 28 counter(1) 29 }); 30 } 31 32 async getPage(pagename) { 33 34 // â¼ March 26 35 if (window.activeSoundPlayer) { 36 window.activeSoundPlayer.stop() 37 window.activeSoundPlayer = null 38 } 39 40 menu.retract() 41 42 currentCategory = this.name 43 this.lastclick = pagename 44 let p = this.allobjects.find(p => p.Url === pagename) // The correct page 45 let num = this.allobjects.map(obj => obj.Url).indexOf(pagename) // Its index in allobjects 46 var toggle = 0 47 48 currentpagenumber = num // NEW 49 50 await setUpFields() 51 await classer() 52 53 54 $("#" + num).removeClass("grey").addClass("black"); 55 56 $('.title').html("NEWS") 57 $('.date').html(p.Title) 58 59 var k = 'News' 60 if (p.Title !== 'All') k = p.Title 61 document.title = "Jeff Guess - " + k 62 63 var texts = select('#contourholder') // TEXTS 64 65 for (let a = 0; a < this.allnews.length; a++) { 66 67 let d = this.allnews[a] 68 toggle = 0 69 70 if ((p.Title === 'All') || (d.Type.includes(p.Url))) toggle = 1 71 72 if (toggle) { 73 var holder = createDiv(''); 74 holder.class('contour') 75 holder.parent(texts) 76 77 var contenttitledate = createDiv(''); 78 contenttitledate.parent(holder) 79 contenttitledate.class('newscontenttitledate') 80 81 if (d.Type !== "") { 82 var div = createDiv(''); 83 div.parent(contenttitledate) 84 div.class('title') 85 div.html(d.Type) 86 }; 87 88 if (d.Date !== "") { 89 var div = createDiv(''); 90 div.parent(contenttitledate) 91 div.class('date') 92 div.html(d.Date) 93 }; 94 95 if (d.Brief !== "") { 96 var div = createDiv(''); 97 div.parent(holder) 98 div.class('brief') 99 div.html(d.Brief) 100 }; 101 } 102 } 103 104 // $('body').css({ visibility: "visible" }); // NEW may25 105 } 106}
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.