1class SmileTimerService { 2 constructor() { 3 this.firstTimer = null; 4 this.secondTimer = null; 5 } 6 7 setFirstTimer() { 8 this.firstTimer = setTimeout(() => { 9 const now = new Date(); 10 console.log("ended firstTimer at " + now.toISOString()); 11 document.dispatchEvent(new Event("smileClose")); 12 }, 60 * 1000); 13 14 const now = new Date(); 15 console.log("setFirstTimer at " + now.toISOString()); 16 } 17 18 clearFirstTimer() { 19 clearTimeout(this.firstTimer); 20 21 const now = new Date(); 22 console.log("clearFirstTimer at " + now.toISOString()); 23 } 24 25 setSecondTimer() { 26 this.secondTimer = setTimeout(() => { 27 const now = new Date(); 28 console.log("ended secondTimer at " + now.toISOString()); 29 document.dispatchEvent(new Event("smileClose")); 30 }, 60 * 4 * 1000); 31 32 const now = new Date(); 33 console.log("setSecondTimer at " + now.toISOString()); 34 } 35 36 clearSecondTimer() { 37 clearTimeout(this.secondTimer); 38 39 const now = new Date(); 40 console.log("clearSecondTimer at " + now.toISOString()); 41 } 42 43 clearAllTimers() { 44 this.clearFirstTimer(); 45 this.clearSecondTimer(); 46 47 const now = new Date(); 48 console.log("clearAllTimers at " + now.toISOString()); 49 } 50}
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.