PageSourceSearch

https://www.ridingthebeast.com/common/article.js

js ridingthebeast.com collected 2026-10-02 09:58:50 UTC 7,496 bytes, 1 lines download raw bytes

1function addEvent(t,e,n){t.addEventListener&&t.addEventListener(e,n,!1)}function processEvent(t,e){var n=(t=t||window.event).target||t.srcElement;return e&&preventDefault(t),n}function preventDefault(t){t&&(t.preventDefault&&t.preventDefault(),t.returnValue=!1)}var sweetTitles={xCord:0,yCord:0,obj:Object,tip:Object,active:0,init:function(){if(document.getElementById&&document.createElement&&document.getElementsByTagName){var t;this.tip=document.createElement("div"),this.tip.id="toolTip",document.getElementsByTagName("body")[0].appendChild(this.tip),this.tip.style.top="-20em",this.tip.style.visibility="hidden";var e=document.getElementsByTagName("a");for(t=0;t<e.length;t++)"tip"==e[t].className&&(addEvent(e[t],"mouseover",this.tipOver),addEvent(e[t],"mouseout",this.tipOut),e[t].setAttribute("tip",e[t].title),e[t].removeAttribute("title"))}},updateXY:function(t){document.captureEvents?(sweetTitles.xCord=t.pageX,sweetTitles.yCord=t.pageY):window.event.clientX&&(sweetTitles.xCord=window.event.clientX+document.documentElement.scrollLeft+document.body.scrollLeft,sweetTitles.yCord=window.event.clientY+document.documentElement.scrollTop+document.body.scrollTop)},tipOut:function(){window.tID&&clearTimeout(tID),window.opacityID&&clearTimeout(opacityID),sweetTitles.tip.style.visibility="hidden",sweetTitles.tip.style.top="-10em"},tipOver:function(t){sweetTitles.obj=this,tID=window.setTimeout("sweetTitles.tipShow()",200),sweetTitles.updateXY(t)},tipShow:function(){var t=Number(this.xCord),e=Number(this.yCord),n=parseInt(e+15),i=parseInt(t+10),o=this.obj;this.tip.innerHTML="<p>"+o.getAttribute("tip")+"</p>",parseInt(document.body.clientWidth+document.body.scrollLeft)<parseInt(this.tip.offsetWidth+i)?this.tip.offsetWidth<i?this.tip.style.left=parseInt(i-(this.tip.offsetWidth+10))+"px":this.tip.style.left="10px":this.tip.style.left=i+"px",parseInt(document.documentElement.clientHeight+document.documentElement.scrollTop)<parseInt(this.tip.offsetHeight+n)?this.tip.style.top=parseInt(n-(this.tip.offsetHeight+10))+"px":this.tip.style.top=n+"px",this.tip.style.visibility="visible",this.tip.style.opacity=".1",this.tipFade(10)},tipFade:function(t){var e=parseInt(t),n=parseInt(e+10);n<80?(this.tip.style.opacity="."+n,this.tip.style.filter="alpha(opacity:"+n+")",opacityID=window.setTimeout("sweetTitles.tipFade('"+n+"')",20)):(this.tip.style.opacity=".80",this.tip.style.filter="alpha(opacity:80)")}};function newWin(t,e,n){var i="status=no,menubar=no,resizable=no,scrollbars=no,location=no,width="+e+",height="+n;i+=",top="+Math.floor((screen.height-n)/2)+",left="+Math.floor((screen.width-e)/2),myWin=window.open(t,"_blank",i)}addEvent(window,"load",(function(){sweetTitles.init()})),function(){var t,e,n,i=!1,o=0,r=0,s=!1,a=!1;function l(){t=window.innerHeight,e=window.innerWidth}function c(){return window.pageYOffset}function d(t){n.innerHTML=t}function u(l){if(a&&s){var d=23;document.height+27-window.innerHeight<0&&(d=15);var u=l.clientX,p=l.clientY,f=i?u-r/2:u+5,m=p+o+30-c()+d>=t?-15-o:30;h=Math.min(e-r-d,Math.max(2,f))+window.pageXOffset,v=p+m+c(),n.style.left=h+"px",n.style.top=v+"px",n.style.visibility="visible"}var h,v}window.writetxt=function(t){a&&(0!=t?(s=!0,d(t)):(n.style.visibility="hidden",d(""),s=!1))},addEvent(window,"load",(function(){if(!(n=document.getElementById("navtxt")))return!1;r=n.style.width?parseInt(n.style.width):parseInt(n.offsetWidth),o=parseInt(n.offsetHeight),l(),a=!0,n.style.padding="0px",document.onmousemove=u,window.onresize=l}))}(),function(){var t,e;SimpleUtil=(t=document,e="className",{byName:function(e){var n=t.getElementsByName(e);return n?n[0]:{}},byTag:function(e,n){var i=(n||t).getElementsByTagName(e);return i?i[0]:{}},byId:function(e){return t.getElementById(e)},updateEl:function(t,i,o){if(t){if(i)for(var r in i)switch(r){case e:case"innerHTML":t[r]=i[r];break;case"parentNode":i[r].appendChild(t);break;default:t.setAttribute(r,i[r])}if(o)for(var s in o)n.listen(t,s,o[s])}return t},createEl:function(e,i,o){return e=t.createElement(e),n.updateEl(e,i,o)},removeEl:function(t){n.parent(t).removeChild(t)},parent:function(t,e){e=e||1;do{t=t.parentNode}while(--e);return t||{}},addScript:function(t){var e=n.createEl("script",{src:t});n.listen(e,"load",(function(){n.removeEl(this)})),n.byTag("head").appendChild(e)},listen:function(t,e,n){var i="addEventListener",o="attachEvent",r="on"+e;t[i]?t[i](e,n,!1):t[o]?t[o](r,(function(){n(window.event)})):t[r]=n},processEvent:function(t,e){var n=(t=t||window.event).target||t.srcElement;return e&&(t.preventDefault&&(t.preventDefault(),t.stopPropagation()),t.returnValue=!1,t.cancelBubble=!0),n},parseQuery:function(){var t={},e="split",n=location.href[e](/[?#]/)[1];if(n)for(var i in n=n[e](/&/))t[(i=n[i][e](/=/))[0]]=i[1]||1;return t},isUndefined:function(t){return void 0===t},show:function(t,n){t[e]=t[e].replace(/ ?(show|hide)/g,"")+" "+(n||"show")},hide:function(t){n.show(t,"hide")},getScroll:function(){var t=document,e=t.documentElement,n=t.body,i="scrollTop";return e[i]||n[i]},getOffsetTop:function(t){var e=t,n=0;if(t)for(n=t.offsetTop;e=e.offsetParent;)n+=e.offsetTop;return n}});var n=SimpleUtil}(),SimpleComments=function(){var t,e,n,i,o,r,s,a,l,c,d=SimpleUtil,u=d.byId,p=d.byTag,f=d.listen,m=d.parent,h=d.createEl,v=d.updateEl,w=d.addScript,y=d.processEvent,g=d.getOffsetTop,b="className",T="innerHTML",E="value",I="cmt-",x=!1,N=0,H=0,C=76;function L(t){var n=y(t),i=p("h3",m(n,2))[T];
1"hidden"!=o.type&&(e.value=n.rel,o.value="RE: "+i,v(s,{innerHTML:"<strong>Note:</strong> You're replying to a comment, you can also ",className:"msg"}),h("a",{href:"New: Thread",innerHTML:"start a new thread.",parentNode:s},{click:M})),setTimeout((function(){r.focus()}),10)}function M(t){y(t,!0),s[T]=s[b]=o.value="",e.value="0",o.focus()}function D(t){var e=y(t)[b];"reply"==e?L(t):-1!==e.indexOf("dynamic")&&function(t){var e=y(t,!0),n=m(e,2).id.replace("cmt","");e[b]+=" loading",w("/comments/"+n+".js")}(t)}function O(t){var e,n,i,o=y(t,!1),r=o.value.split("\n"),s=r.length;for(i=0,n=s;i<n;i++)(e=r[i].length)>=C&&(s+=Math.floor(e/C));s!==o.rows&&(o.rows=s+1)}function S(t){if(j())a[b]="";else{var e=document,n=e.body,i=Math.min,o="scrollHeight",r="clientHeight";d.getScroll()+(window.innerHeight||i(e[o],e[r])||i(n[r],n[o]))>N&&!x&&(a[b]="loading",w("/comments/"+c+".js?skip="+B()),x=!0)}}function j(){return!!u("comments-end")}function B(t){return t&&(H+=t),H}function k(){var t=g(u("comments-bottom"));return N=t,t}return{init:function(){e=u(I+"pid"),n=u(I+"tid"),i=u(I+"name"),o=u(I+"subj"),r=u(I+"body"),s=u(I+"msg"),a=u("comments-bottom")||{},l=u("comments"),c=p("form",u("comment-box")).content[E],H=u("threads").children.length,t&&(e[E]=t.parent||"",n[E]=t.thread||"",o[E]=t.subj||"",r[E]=t.body||"",i[E]=t.name||"",v(s,{innerHTML:t.msg||"",className:"msg"}),setTimeout((function(){location.href="#comment-box"}),100),O({target:r})),H&&!j()&&a.id&&(k(),B(H),f(window,"scroll",S)),f(l,"click",D),f(r,"scroll",O)},populate:function(e){t=e},replaceComment:function(t,e){e&&(p("blockquote",u("cmt"+t))[T]=e)},appendComments:function(t){t?(B(h("div",{innerHTML:t,parentNode:u("threads")}).children.length),x=!1):(x=!0,a[b]=""),k()},addCount:function(t){var e,n,i,o=u(t),r=u("total-comments");o&&r&&(i=h("a",{href:"#comment-box",id:"comment-now",title:"Add a comment",innerHTML:r[T],parentNode:o}),f(i,"click",(function(){setTimeout((function(){u("cmt-subj").focus()}),100)})),n=g(i),e=function(){i[b]=d.getScroll()>n?"fixed":""},f(window,"scroll",e),e())}}}();

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.