1app.addModule(function(){var HIDE_TIMEOUT=5000;var ANIMATION_TIMEOUT=250;var node=null;var hideTimer=null;var removeTimer=null;var remove=function(){if(!node){return} 2node.parentNode&&node.parentNode.removeChild(node);node=null};var hide=function(){if(!node){return} 3node.classList.remove('toast--visible');clearTimeout(removeTimer);removeTimer=setTimeout(remove,ANIMATION_TIMEOUT)};var show=function(params){var text=params&¶ms.text;if(!text){return} 4clearTimeout(hideTimer);clearTimeout(removeTimer);if(!node){node=document.createElement('div');node.className='toast';node.addEventListener('click',hide);document.body.appendChild(node)} 5node.textContent=text;requestAnimationFrame(function(){node&&node.classList.add('toast--visible')});hideTimer=setTimeout(hide,HIDE_TIMEOUT)};PubSub.subscribe('showToast',function(e,params){show(params)})});
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.