1function xmlhttpPost(e,t,n,o){var i=this;window.XMLHttpRequest?i.xmlHttpReq=new XMLHttpRequest:window.ActiveXObject&&(i.xmlHttpReq=new ActiveXObject("Microsoft.XMLHTTP")),i.xmlHttpReq.open("POST",e,!0),i.xmlHttpReq.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8"),i.xmlHttpReq.onreadystatechange=function(){4==i.xmlHttpReq.readyState?updatepage(i.xmlHttpReq.responseText,n):updatepage(o,n)},i.xmlHttpReq.send(getquerystring(t)),updatepage(o||"<img src='/img/i/a/processing-1.gif'>",n)}function getquerystring(e){function t(e,t){n+=(n.length>0?"&":"")+encodeURIComponent(e).replace(/\+/g,"%2B")+"="+encodeURIComponent(t||"").replace(/\+/g,"%2B")}if(void 0!==e&&null!==e){for(var n="",o=document.forms[e].elements,i=0;i<o.length;i++){var a=o[i],d=a.type.toUpperCase(),s=a.name;if(s)if("TEXT"==d||"TEXTAREA"==d||"PASSWORD"==d||"BUTTON"==d||"RESET"==d||"SUBMIT"==d||"FILE"==d||"IMAGE"==d||"EMAIL"==d||"HIDDEN"==d)t(s,a.value);else if("CHECKBOX"==d&&a.checked)t(s,a.value?a.value:"On");else if("RADIO"==d&&a.checked)t(s,a.value);else if(-1!=d.indexOf("SELECT"))for(var l=0;l<a.options.length;l++){var r=a.options[l];r.selected&&t(s,r.value)}}return n}}function updatepage(e,t){if(t&&(document.getElementById(t).innerHTML=e,"ef"===t||"scff"===t)){if(document.documentElement.clientWidth>640&&void 0!=document.getElementById("wmd-editor")&&($(".formFields").addClass("wmd-wide"),wmd(),$("textarea.resizable:not(.processed)").TextAreaResizer()),document.documentElement.clientWidth<641&&(void 0!=document.getElementById("wmd-preview")&&$("#wmd-preview").hide("wmd-preview"),void 0!=document.getElementById("wmd-button-bar")&&$("#wmd-button-bar").hide("wmd-button-bar")),navigator.userAgent.match(/iPhone|iPad|iPod/i)&&void 0!=$("[data-remodal-id=modal]").remodal())"opened"==$("[data-remodal-id=modal]").remodal().getState()&&remodalIphoneHack();void 0!=document.getElementById("fAVATAR_PHOTO_U")&&handleAvatarUpload()}}function handleAvatarUpload(){if(void 0!=document.getElementById("fAVATAR_PHOTO_U")){var e=document.getElementById("fAVATAR_PHOTO_U");document.getElementById("chooseFileBtn").addEventListener("click",function(e){document.uf.fAVATAR_PHOTO_U.click(e),isDialogOpen=!0,document.getElementById("spinner").innerHTML='<img src="/img/i/a/processing-1.gif" />'}),e.addEventListener("click",function(e){isDialogOpen=!0,document.getElementById("spinner").innerHTML='<img src="/img/i/a/processing-1.gif" />'}),e.addEventListener("change",function(e){document.getElementById("remodal-cancel").style.display="none",document.getElementById("chooseFileBtn").style.display="none",isDialogOpen=!1,document.getElementById("uf").submit()}),void 0!=document.getElementById("ulAvatarChooseWeb")&&document.getElementById("ulAvatarChooseWeb").addEventListener("click",function(e){document.getElementById("ulAvatarFile").style.display="none",document.getElementById("ulAvatarWeb").style.display="block",document.getElementById("avatarUploadMode").value="web"}),void 0!=document.getElementById("ulAvatarChooseUpload")&&document.getElementById("ulAvatarChooseUpload").addEventListener("click",function(e){document.getElementById("ulAvatarWeb").style.display="none",document.getElementById("ulAvatarFile").style.display="block",document.getElementById("avatarUploadMode").value="upload"})}}function handleUpload(){if(void 0!=document.getElementById("sFileU")){var e=document.getElementById("sFileU");document.getElementById("chooseFileBtn").addEventListener("click",function(e){document.uf.sFileU.click(e),isDialogOpen=!0,document.getElementById("spinner").innerHTML='<img src="/img/i/a/processing-1.gif" />'}),e.addEventListener("click",function(e){isDialogOpen=!0,document.getElementById("spinner").innerHTML='<img src="/img/i/a/processing-1.gif" />'}),e.addEventListener("change",function(e){document.getElementById("chooseFileBtn").style.display="none",isDialogOpen=!1,document.getElementById("uf").submit()}),void 0!=document.getElementById("ulChooseWeb")&&document.getElementById("ulChooseWeb").addEventListener("click",function(e){document.getElementById("ulFile").style.display="none",document.getElementById("ulWeb").style.display="block",document.getElementById("uploadMode").value="web"}),void 0!=document.getElementById("ulChooseUpload")&&document.getElementById("ulChooseUpload").addEventListener("click",function(e){document.getElementById("ulWeb").style.display="none",document.getElementById("ulFile").style.display="block",document.getElementById("uploadMode").value="upload"})}}function wmd(){var e={nonAsciiLetters:!0,nofollow:!0},t=Markdown.getSanitizingConverter(e);t.hooks.chain("postNormalization",function(e){return e.replace(/https?:\/\/(?:[
10-9A-Z-]+\.)?(?:youtu\.be\/|youtube\.com(?:\/embed\/|\/v\/|\/watch\?v=|\/ytscreeningroom\?v=|\/feeds\/api\/videos\/|\/user\S*[^\w\-\s]|\S*[^\w\-\s]))([\w\-]{11})[?=&+%\w-]*/gi,"!yt$1yt!")}),t.hooks.chain("postConversion",function(e){return e.replace(/!yt([a-zA-Z0-9_-]{11})yt!/gi,'<iframe width="306" height="172" src="https://www.youtube.com/embed/$1" frameborder="0" allowfullscreen></iframe>')});var n=new Markdown.Editor(t,"",{strings:{quoteexample:"whatever you're quoting, put it right here"}});n.hooks.set("insertImageDialog",function(e){return popup("/inc_upload.asp?t="+$("#wmd-button-bar").data("stgt")+"&mode="+$("#wmd-button-bar").data("mode"),"Upload a File",350,500),e(null),!0}),n.run()}function closeModalClickEsc(){if(void 0!=document.getElementById("emod")){var e=document.getElementById("emod"),t=document.getElementById("emod-bg");document.addEventListener("keyup",function(n){27!==n.keyCode||isDialogOpen||(e.style.display="none",t.style.display="none",void 0!=document.getElementById("crop-avatar")&&abortAvatarProcess()),27===n.keyCode&&isDialogOpen&&(isDialogOpen=!1,document.getElementById("fa").innerHTML="")}),t.addEventListener("click",function(n){n.target===n.currentTarget&&(e.style.display="none",t.style.display="none",void 0!=document.getElementById("crop-avatar")&&abortAvatarProcess())})}}function abortAvatarProcess(){window.location.href=window.location.href}function closeModal(e){void 0!=document.getElementById("ef")&&!0===e&&(window.location.href=window.location.href.replace(window.location.hash,"").replace("#",""))}function disableButtonOnClick(e){var t=document.getElementById(e);return t.disabled=!0,t.setAttribute("disabled","disabled"),t.innerHTML="Processing...",t.value="Processing...",!0}function reloadCaptcha(e){var t=document.getElementById(e);return t.setAttribute("src",t.src),t.src=t.src+"&"+Math.random(),!1}function remodalIphoneHack(){$(".remodal-wrapper").css({position:"absolute",marginTop:$(window).scrollTop()+"px",bottom:"auto"}),setTimeout(function(){$(".remodal-overlay").css({position:"absolute",top:0,left:0,width:"100%",height:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)+"px"})},0)}function success_a(e,t){$(t).html(e[1])}function success_b(e,t){"false"==e[0]&&($("#emailValidIconContainer").html('<img src="/img/i/invalid.gif" style="margin-left: 10px;" />'),$(t).html(e[1])),"true"==e[0]&&($("#emailValidIconContainer").html('<img src="/img/i/valid.gif" style="margin-left: 10px;" />'),$(t).html(""),$("#sEmailTr").removeAttr("class"))}function success_d(e,t){$(t).html(e[1]),"true"==e[0]&&$(t).html("User Name:<i class='fa fa-fw fa-check' style='color:#339933'>")}function success_c(e,t,n,o){"true"==e[0]&&("oaNewUserName"==n.id&&(o="Choose a new user name: "),$(t).html(o+"<i class='fa fa-fw fa-check' style='color:#339933'>"),$(n).css("border","1px solid green"),$(".inputInvalid").removeClass("inputInvalid")),"false"==e[0]&&($(t).html(e[1]),$(n).css("border","1px solid red"))}function ajaxValidation(e,t,n,o,i,a){jQuery.ajax({url:"http://www.billiardsforum.com/inc_ajax.asp?AJAX_ID="+n+"&"+o+"="+encodeURIComponent($(e).val()),type:"get",dataType:"text",success:function(n){a(n.split("|"),t,e,i)}})}function popup(e,t,n,o){window.open(e,t,"width="+n+",height="+o+",scrollbars=yes,toolbars=no,menubar=no,resizable=yes")}function initGallery(e){return $("#galId"+e+" a:first").click(),!1}document.documentElement.clientWidth>640&&void 0!=document.getElementById("wmd-editor")&&($(".formFields").addClass("wmd-wide"),wmd(),$("textarea.resizable:not(.processed)").TextAreaResizer()),document.documentElement.clientWidth<641&&(void 0!=document.getElementById("wmd-preview")&&$("#wmd-preview").hide("wmd-preview"),void 0!=document.getElementById("wmd-preview")&&$("#wmd-button-bar").hide("wmd-button-bar")),$(document).on("closed",".remodal",function(e){window.location.href=window.location.href});var isDialogOpen=!1;void 0!=document.getElementById("sFileU")&&handleUpload(),$(function(){var e=$
1("#loginButton"),t=$("#authArea");e.removeAttr("href"),e.click(function(e){t.toggle()}),t.click(function(e){e.stopPropagation()}),$(this).click(function(e){$(e.target).parent("#loginButton").length>0||t.hide()})}),$(function(){var e=$("#userInfo"),t=$("#userMenu");$("#profileLink").removeAttr("href"),e.click(function(){t.toggle()}),t.click(function(e){e.stopPropagation()}),$(this).click(function(e){$(e.target).parent("#userInfo").length>0||"userInfo"==e.target.id||$(e.target).parent("#profileLink").length>0||t.hide()})}),jQuery(function(e){function t(t){var n=t.parent(),o=t.find("> .submenu");if(!a){var d=t.position();if(n.is(".submenu")?(o.css("top",0),o.css("left",d.left+t.width())):d.left+o.outerWidth()>e(document).outerWidth()&&o.css("left",d.left+t.outerWidth()-o.outerWidth()-1),o.hasClass("hang-left")){var s=t.get(0).getBoundingClientRect();o.css({left:s.left-o.outerWidth()+s.width+"px"})}else if(o.hasClass("hang-right")){s=t.get(0).getBoundingClientRect();o.css({left:s.left+"px"})}}t.siblings().find(" > .submenu").hide().end().find("> a, > span").find(".submenu-indicator").removeClass("submenu-expanded"),o.slideDown(i,"easeOutExpo"),t.find("> a, > span").find(".submenu-indicator").addClass("submenu-expanded")}function n(e){e.find("> .submenu").slideUp(i,"easeOutExpo"),e.find("> a, > span").find(".submenu-indicator").removeClass("submenu-expanded")}function o(t){t.siblings().css("display","");var n=t.data("drillItem");n.find("> .content").length||n.append(t.find("> .submenu")),e(t).remove()}var i=200,a=!1,d=null,s=null;e("ul.menu").each(function(i,d){e(d).find("li").each(function(i,d){var s=e(d);s.find("> .submenu").length&&s.hoverIntent({over:function(){a||t(s)},out:function(){a||n(s)},timeout:200}),s.click(function(i){var d=e(i.target);if(a&&d.is(".submenu-indicator")){i.stopPropagation(),i.preventDefault();var s=e(this);s.parent().is(".menu, .drill-down > .submenu")?d.is(".submenu-expanded")?n(s):t(s):function(t){var n=t.parents("li"),i=e("<li></li").attr("class","drill-down"),a=n.find("> a, > span").clone();a.find("i.submenu-indicator").after('<span class="parent"></span>'),a.find(".parent").text(t.find("> a, > span").text()),i.data("drillItem",t),i.append(a),n.parent().prepend(i),i.siblings().hide();var d=null;t.find("> .content").length?(d=e("<ul></ul>").attr("class","submenu"),t.find("li").each(function(t,n){d.append(e(n).clone())})):d=t.find("> ul.submenu"),i.append(d),i.click(function(t){var n=e(t.target);(n.is(".drill-down")||n.parentsUntil("ul").is(".drill-down"))&&(t.stopPropagation(),t.preventDefault(),o(i))})}(s)}})}),e(this).find(".submenu.advanced > li:first-child").addClass("active"),e(this).find(".submenu.advanced > li").hover(function(){e(this.parentNode).find(".active").removeClass("active"),e(this).addClass("active")}),e(this).find("> li.active, .submenu.simple > li.active").parents("li").addClass("active")}),e("#nav_mobile").click(function(){function t(t){t?(e("#nav_main").css("display","").find("ul.menu").removeClass("mobile").addClass("desktop"),e("#nav_main").find("li.drill-down").each(function(){o(e(this))})):e("#nav_main").slideUp(i,"easeOutExpo",function(){e(this).find("ul.menu").removeClass("mobile").addClass("desktop").end().css("display",""),e(this).find("li.drill-down").each(function(){o(e(this))})}),e("#nav_mobile").removeClass("submenu-expanded"),e(document.body).unbind("click",n),e(window).unbind("resize",l),e("#nav_logo").show(),e("#nav_main").after(e("#nav_other")),e("#topbar").css("position","").closest("header").siblings().each(function(t,n){e(n).css("top","").css("position","").css("z-index","")}),a=!1,e(window).scrollTop(s)}var n=function(n){e(n.target).closest("#topbar").length||t()},l=function(n){e(window).width()!=d&&t(!0)};e(this).is(".submenu-expanded")?t():(a=!0,d=e(window).width(),s=e(window).scrollTop(),e("#topbar").closest("header").siblings().each(function(){e(this).css("top",e(this).offset().top-e("body").scrollTop())}).each(function(){e(this).css("position","fixed").css("z-index",-1)}).end().end().css("position","static"),e("#nav_main").find("ul.menu").addClass("mobile").removeClass("desktop").end().slideDown(i,"easeOutExpo"),e("#nav_mobile").addClass("submenu-expanded"),e(document.body).bind("click",n),e(window).bind("resize",l),e("#nav_logo").hide(),e("#nav_mobile_active").append(e("#nav_other")))}),e("#sn > ul.panels > li:not(.collapsed), ul.cl > li.checked").each(function(t,n){e(n).parents("li").removeClass("collapsed")}),e("body").on("click.collapse-next.data-api","[data-panel=collapse-next]",function(t){t.preventDefault(),t.stopPropagation();e(this).next().stop().slideToggle(400,"easeOutExpo"),e(this).parent().toggleClass("collapsed")})}),$(".subcats").on("click",".newPost",function(e){return $("#contactWrapper").css("display","none"),$(".asr").css("display","none"),xmlhttpPost("/inc_ajax.asp?AJAX_ID=16&src="+window.location.href+"&tgt="+this.getAttribute("data-cat"),null,"scff",'<div style="width:100%; text-align:center;margin:50px auto"><img src="/img/i/a/processing-1.gif" /></div>'),$("#sTitle").focus(),!1}),$(document).on("click","#notifications-switch",function(){var e=$
1("#notifications");$("#inh"),e.hasClass("open")?(e.removeClass("open"),e.css("padding","0")):(e.addClass("open"),e.css("padding","10px"))}),$(document).ready(function(){void 0!=document.getElementById("refineAvatar")&&$("[data-remodal-id=modal]").remodal().open();$(document).on("input blur","#sSignUpPassword, #sPassword",function(e){var t=$(this);$(e.target).val().length>5?(t.data("reach-typing",!0),$("#sNewPasswordResult").html("Password: <i class='fa fa-fw fa-check' style='color:#339933'>"),$(e.target).css("border","1px solid green"),$(".inputInvalid").removeClass("inputInvalid")):"focusout"==e.type?($("#sNewPasswordResult").html('<span style="color:red;">Password must be at least 6 characters</span>'),$(e.target).css("border","1px solid red")):$(e.target).val().length<6&&!0===t.data("reach-typing")&&($("#sNewPasswordResult").html('<span style="color:red;">Password must be at least 6 characters</span>'),$(e.target).css("border","1px solid red"))}),$(document).on("blur","#fEMAIL, #sSignUpEmail",function(e){ajaxValidation(e.target,"#sNewEmailResult","12","email","Email: ",success_c)}),$(document).on("input blur","#fLOGIN_ID, #sSignUpUserName, #oaNewUserName",function(e){var t=$("#iOmOrigId").val();ajaxValidation(e.target,"#sNewUserNameResult","8","iOmOrigId="+t+"&userName","User Name: ",success_c)}),$("#oaNewUserName").length>0&&ajaxValidation("#oaNewUserName","#sNewUserNameResult","8","userName","Choose a new user name: ",success_c),$("#oasCreateNew").click(function(){$("#oAuthNew").show(),$("#oAuthLink").hide(),$(this).addClass("checked").removeClass("unchecked"),$("#oasLinkNative").removeClass("checked").addClass("unchecked")}),$("#oasLinkNative").click(function(){$("#oAuthNew").hide(),$("#oAuthLink").show(),$("#oasLinkNative").addClass("checked").removeClass("unchecked"),$("#oasCreateNew").removeClass("checked").addClass("unchecked")}),$("#userSearch").on("input",function(){$("#user-browser").load("http://www.billiardsforum.com/inc_ajax.asp?AJAX_ID=10&search="+encodeURIComponent(this.value)),$("#userSearch").val().length>0?0==$("#clear-search").length&&$("#userSearch").after('<a id="clear-search" href="/users" class="sm">clear search</a>'):$("#clear-search").length>0&&$("#clear-search").remove()}),0!=$("#userSearch").length&&$("#userSearch").val().length>0&&0==$("#clear-search").length&&$("#userSearch").after(' <a id="clear-search" href="/users" class="sm">clear search</a>'),navigator.userAgent.match(/iPhone|iPad|iPod/i)?$(document).on("opened",".remodal",function(e){remodalIphoneHack()}):$(document).on("opened",".remodal",function(e){$("#ef").fadeTo(1,.5).fadeTo(1,1),$("<style></style>").appendTo($(document.body)).remove()})}),$(window).on("load",function(){function e(e){if($("#x1").val(Math.round(e.x)),$("#y1").val(Math.round(e.y)),$("#x2").val(Math.round(e.x2)),$("#y2").val(Math.round(e.y2)),$("#xw").val(Math.round(e.w)),$("#xh").val(Math.round(e.h)),parseInt(e.w)>0){var t=a/e.w,n=d/e.h;i.css({width:Math.round(t*c)+"px",height:Math.round(n*u)+"px",marginLeft:"-"+Math.round(t*e.x)+"px",marginTop:"-"+Math.round(n*e.y)+"px"}).show()}}if(void 0!=document.getElementById("origImgBox")){var t=$("#origImgBox"),n=$("#origImg"),o=$("#previewImgBox"),i=$("#previewImg"),a=o.width(),d=o.height(),s=t.width(),l=t.height(),r=new Image;r.src=n.attr("src");var c=r.width,u=r.height,m=(Math.max(Math.max(c,u),s),0),p=0,g=s,h=l;Math.min(c,u)==c?(c>=210?g=(m=(c-c/1.25)/2)+c/1.25:(m=0,g=c),h=(p=u/2-(g-m)/2)+(g-m)):(u>=210?h=(p=(u-u/1.25)/2)+u/1.25:(p=0,h=u),g=(m=c/2-(h-p)/2)+(h-p));var f=168,v=168;if(f>c&&(f=c),v>u&&(v=u),$(function(){$("#origImg").Jcrop({onChange:e,onSelect:e,aspectRatio:f/v,minSize:[f,v],setSelect:[m,p,g,h],boxWidth:250,boxHeight:250,bgOpacity:.2})}),void 0!=document.getElementById("crop-avatar"))document.getElementById("crop-avatar").addEventListener("submit",function(e){document.getElementById("cropWorkspace").innerHTML='<br /><br />Please wait while your avatar is being processed...<br /><br /><br /><img src="/img/i/a/processing-1.gif" />',disableButtonOnClick("cropWorkspaceButton")})}jQuery(function(e){function t(t){e("#x1").val(Math.round(t.x)),e("#y1").val(Math.round(t.y)),e("#x2").val(Math.round(t.x2)),e("#y2").val(Math.round(t.y2)),e("#xw").val(Math.round(t.w)),e("#xh").val(Math.round(t.h))}if(void 0!=document.getElementById("origUploadImgBox")){var n=e("#origUploadImgBox"),o=e("#origUploadImg"),i=e("#previewUploadImgBox"),a=(e("#previewUploadImg"),i.width(),i.height(),n.width(),n.height(),new Image);a.src=o.attr("src");var d=a.width,s=a.height,l=300,r=300;
1if(l>d&&(l=d),r>s&&(r=s),e(function(){e("#origUploadImg").Jcrop({onChange:t,onSelect:t,setSelect:[0,0,d,s],boxWidth:300,boxHeight:300,bgOpacity:.2})}),void 0!=document.getElementById("crop-upload"))document.getElementById("crop-upload").addEventListener("submit",function(e){document.getElementById("cropUploadWorkspace").innerHTML='<br /><br />Please wait while your upload is being pro cessed...<br /><br /><br /><img src="/img/i/a/processing-1.gif" />',disableButtonOnClick("cropWorkspaceButton")})}})});var initPhotoSwipeFromDOM=function(e){for(var t=function(e){(e=e||window.event).preventDefault?e.preventDefault():e.returnValue=!1;var t=function e(t,n){return t&&(n(t)?t:e(t.parentNode,n))}(e.target||e.srcElement,function(e){return e.tagName&&"FIGURE"===e.tagName.toUpperCase()});if(t){for(var o,i=t.parentNode,a=t.parentNode.childNodes,d=a.length,s=0,l=0;d>l;l++)if(1===a[l].nodeType){if(a[l]===t){o=s;break}s++}return o>=0&&n(o,i),!1}},n=function(e,t,n,o){var i,a,d=document.querySelectorAll(".pswp")[0];if(a=function(e){for(var t,n,o,i,a=e.childNodes,d=a.length,s=[],l=0;d>l;l++)t=a[l],1===t.nodeType&&(n=t.children[0],o=n.getAttribute("data-size").split("x"),i={src:n.getAttribute("href"),w:parseInt(o[0],10),h:parseInt(o[1],10)},t.children.length>1&&(i.title=t.children[1].innerHTML),n.children.length,i.el=t,s.push(i));return s}(t),i={galleryUID:t.getAttribute("data-pswp-uid"),getThumbBoundsFn:!1,history:!1,modal:!0},o)if(i.galleryPIDs){for(var s=0;s<a.length;s++)if(a[s].pid==e){i.index=s;break}}else i.index=parseInt(e,10)-1;else i.index=parseInt(e,10);isNaN(i.index)||(n&&(i.showAnimationDuration=0),new PhotoSwipe(d,PhotoSwipeUI_Default,a,i).init())},o=document.querySelectorAll(e),i=0,a=o.length;a>i;i++)o[i].setAttribute("data-pswp-uid",i+1),o[i].onclick=t;var d=function(){var e=window.location.hash.substring(1),t={};if(e.length<5)return t;for(var n=e.split("&"),o=0;o<n.length;o++)if(n[o]){var i=n[o].split("=");i.length<2||(t[i[0]]=i[1])}return t.gid&&(t.gid=parseInt(t.gid,10)),t}();d.pid&&d.gid&&n(d.pid,o[d.gid-1],!0,!0)};initPhotoSwipeFromDOM(".gal"); 2function highlight() { 3 let id = window.location.hash.substr(1); 4 let node = document.getElementById(id); 5 if (node) {node.classList.add('flash');} 6} 7highlight();
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.