var comments={"debug":{},"comments":[{"comment":"THE BURNS!","image_path":null,"author":"Jim Burns","likes":0,"key":"11897043","date":1491260557.0,"approved":true}]}["comments"];if(typeof hcb_user==="undefined"){hcb_user={}}var extend=function(o1,o2){for(var i in o2){if(typeof o1[i]==='undefined'){o1[i]=o2[i]}}return o1};hcb_user=extend(hcb_user,{comments_header:'Comments',name_label:'Name',content_label:'Enter your comment here',submit:'Comment',logout_link:'[logout]',admin_link:'[login]',no_comments_msg:'No one has commented yet. Be the first!',add:'Add your comment',again:'Post another comment',rss:'rss ',said:'said:',prev_page:'[prev]',next_page:'[next]',showing:'Showing',to:'to',website_label:'website (optional)',email_label:'email',anonymous:'Anonymous',mod_label:'(mod)',subscribe:'email me replies',are_you_sure:'Do you want to flag this comment as inappropriate?',reply:' reply',flag:' flag',like:' like',days_ago:'days ago',hours_ago:'hours ago',minutes_ago:'minutes ago',within_the_last_minute:'within the last minute',msg_thankyou:'Thank you for commenting!',msg_approval:'(this comment is not published until approved)',msg_approval_required:'Thank you for commenting! Your comment will appear once approved by a moderator.',err_bad_html:'Your comment contained bad html.',err_bad_email:'Please enter a valid email address.',err_too_frequent:'You must wait a few seconds between posting comments.',err_comment_empty:'Your comment was not posted because it was empty!',err_denied:'Your comment was not accepted.',MAX_CHARS:8192,PAGE:'',ON_COMMENT:function(){},RELATIVE_DATES:true});var OPTS={'opt_watermark':256,'opt_field_website':1024,'opt_date':4,'opt_field_email':512,'opt_top':2,'opt_sub':8,'opt_collapse':1,'opt_rss':128,'opt_site':32,'opt_gravatar':64,'opt_email_required':4096,'opt_querystring':2048,'opt_pfilter':16,'opt_stop':8192,'opt_replies':16384},opts=16862,likes=true,pagenum=0,host='//www.htmlcommentbox.com',msg='',mod='$1$wq1rdBcg$peNk/vXgBQFszlqP9d47m/',user={name:'',email:'',is_mod:false,subscribed:false},removed_backlink=false,auth_link='https://accounts.google.com/o/oauth2/auth?scope=email&state=http%3A//jimburns-hunts-monsters.bitballoon.com/&redirect_uri=http%3A//www.htmlcommentbox.com%2Foauth2callback&response_type=code&client_id=1058610383547-jradgb7j4d5t6ia6dq8gaoh9fvgl01kb.apps.googleusercontent.com&approval_prompt=force',page_link='http://www.htmlcommentbox.com/jread?page=http%3A%2F%2Fjimburns-hunts-monsters.bitballoon.com%2F&mod=%241%24wq1rdBcg%24peNk%2FvXgBQFszlqP9d47m%2F&opts=16862&num=10&ts=1491180078997',pagination='',gravatar_url='',image_policy='allow';var hcb={};(function(){var page=hcb_user.PAGE||(window.location+'').replace(/\'/g,"%27");var get_option=function(name){return opts&OPTS['opt_'+name]},_hcb=hcb,_hcb_user=hcb_user,_document=document,collapsed_link=function(){if(!_hcb_user.again)return'';return'
'+(posted?_hcb_user.again:_hcb_user.add)+'
'},rss_link=''+_hcb_user.rss+'',shadow_start='
',shadow_end='
',head=_document.getElementsByTagName("head")[0],is_tablet=function(){return(navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i))},get_element=function(id){return(_document.all&&_document.all[id])||_document.getElementById(id)},remove_element=function(node){if(node)node.parentNode.removeChild(node)},instr=function(haystack,needle){return(haystack||'').indexOf(needle)!==-1},insert_script=function(src){s=_document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src",src);head.appendChild(s)},textfield=function(name,value){return'
'+shadow_start+'':'>')+shadow_end+'
'},hiddenfield=function(name,value){return''},http_get=function(strURL,query){insert_script(strURL+"?"+query)},xd_post=function(url,data){var input,iframe=_document.createElement("iframe");var uniqueString=""+Math.random();_document.body.appendChild(iframe);iframe.style.display="none";iframe.contentWindow.name=uniqueString;var form=_document.createElement("form");form.target=uniqueString;form.action=url;form.enctype='multipart/form-data';form.method="POST";form.style="display:none";for(var item in data){input=_document.createElement("input");input.type=(item=='hcb_file'?'file':"hidden");input.style="display:none";input.name=item;input.value=data[item];form.appendChild(input)}_document.body.appendChild(form);form.submit()},fields=['email','name','website','content'],by_class=function(elements,cls){for(var i=0;i24*3600*7||!_hcb_user.RELATIVE_DATES){var d=new Date(timestamp*1000);return months[d.getMonth()]+' '+d.getDate()+', '+d.getFullYear()}if(diff>24*3600)return Math.floor(diff/(24*3600))+' '+_hcb_user.days_ago;if(diff>3600)return Math.floor(diff/3600)+' '+_hcb_user.hours_ago;if(diff>60)return Math.floor(diff/60)+' '+_hcb_user.minutes_ago;return _hcb_user.within_the_last_minute},get_charset=function(){return _document.inputEncoding||_document.characterSet||_document.charset||_document.defaultCharset||'utf-8'},stop=function(){return get_option('stop')},render_comment=function(C){h='
';if(user.is_mod){h+='[delete] ';if(!C.approved){h+='[approve] '}}if(C.date)h+='('+render_date(C.date)+') ';h+=''+(C.website?'':'')+C.author.replace('(mod)',_hcb_user.mod_label)+(C.website?' ':' ')+(C.email?''+C.email+'':'')+' '+_hcb_user.said+'
'+(C.gravatar?'':'')+(C.comment+' ').replace(/(https?:\/\/|)((?:[a-z0-9][a-z0-9-]{0,61}[a-z0-9]\.|[a-z0-9]\.)+(?:[a-z]{2}|ASIA|BIZ|COM|COOP|EDU|GOV|INFO|JOBS|MOBI|NAME|NET|ORG|XXX))([\/#?][-A-Z0-9+&@#\/%?=~_|!:.;]*[-A-Z0-9+&@#\/%=~_|]|)([\s\.])/ig,function(match,protocol,site,path,delimiter){return""+site+path+""+delimiter})+'
'+(C.image_path?'':'');if(!C.approved)h+='

'+_hcb_user.msg_approval+'

';h+='

';h+=''+_hcb_user.flag+' ';if(likes)h+=''+_hcb_user.like+' ';if(get_option('replies'))h+=''+_hcb_user.reply+' ';h+='

';if(likes)h+='';by[C.key]=C.author;by[C.author]=C.key;return h+'
'},init=function(){var eventMethod=window.addEventListener?"addEventListener":"attachEvent";var eventer=window[eventMethod];var messageEvent=eventMethod=="attachEvent"?"onmessage":"message";eventer(messageEvent,function(e){if(instr(e.origin+'/',host)){if(e.data.success===false){write_msg(eval('('+e.data.msg+')'))}else if(e.data.comments[0]&&e.data.comments[0].author){if(typeof console!=='undefined')console.log(e.data.debug);write_msg(_hcb_user.msg_thankyou);var cl=get_element('comments_list');if(get_option('top')){cl.innerHTML=render_comment(e.data.comments[0])+cl.innerHTML}else{cl.innerHTML=cl.innerHTML+render_comment(e.data.comments[0])}remove_element(get_element('no_comments'));posted=true;get_element('HCB_comment_form_box').innerHTML=collapsed_link();hcb_user.ON_COMMENT()}}},false);var hcb_wrapper,i,C,p=hcb_wrapper=get_element('HCB_comment_box');while(p.parentNode&&p.tagName!=='HTML'){p=p.parentNode;if(p.tagName==='FORM'){alert("Warning: The HTML Comment Box code is inside a form element. Comments won't be submitted.")}}if(instr(page,'opensocial.googleusercontent')){alert("Warning: It looks like you are using HTML Comment Box with Google Sites but didn't specify the page before copying your code. Re-copy your code with the correct options from http://www.htmlcommentbox.com.")}width=hcb_wrapper.offsetWidth;var H='#HCB_comment_box ';var h='

'+(_hcb_user.comments_header||'Comments')+'

'+'';h+='

'+(msg?msg:'')+'

';if(get_option('top')&&!stop()){h+=collapsed_link()}h+='
';if(comments.length===0){h+='

'+_hcb_user.no_comments_msg+'

'}else{for(var ii=0;ii";if(!get_option('top')&&!stop()){h+=collapsed_link()}h+=pagination;if(get_option('rss'))h+=rss_link;hcb_wrapper.innerHTML=h;(typeof _hcb_user.onload==='function')&&_hcb_user.onload()},by={};extend(hcb,{rsp_cb:function(){if(!(_hcb.rsp||{}).success){alert((_hcb.rsp||{}).reason)}},approve:function(key){comment=get_element('comment_'+key);for(i=0;i(mod)","").replace(" (mod)","")+',\n'+ta.value},changepage:function(rel){insert_script(page_link+"&pagenum="+(pagenum+rel))},make_comment_form:function(){var submit_html='';if(new String(window.location).substring(0,8)=='file:///')submit_html='';var f='
';f+=hiddenfield('page',page)+''+hiddenfield("opts",opts)+hiddenfield("mod",mod)+hiddenfield("replies_to","")+hiddenfield("charset",get_charset());f+=textfield('name',user.name);if(get_option('field_website'))f+=textfield('website','');if(get_option('field_email'))f+=textfield('email',user.email);var s='';f+='
'+shadow_start+''+shadow_end+'
'+'
'+submit_html+' ';if(!removed_backlink){f+=' by Html Comment Box ';if(user.is_mod){f+='remove link '}}if('allow'===image_policy){f+=''}if(user.email){f+=' account'}if(get_option('replies')&&(get_option('field_email')||user.email)){f+=' '+_hcb_user.subscribe+''}if(auth_link&&!_hcb_user.iframe){f+='
'}f+='
';get_element("HCB_comment_form_box").innerHTML=f;_hcb.interactive_file_elements()},interactive_file_elements:function(){var inputs=document.querySelectorAll('.inputfile');Array.prototype.forEach.call(inputs,function(input){var label=input.nextElementSibling;input.addEventListener('change',function(e){var fileName=e.target.value.split('\\').pop();if(fileName){label.innerHTML=fileName}})})}});var posted=instr(msg,_hcb_user.msg_thankyou)||instr(msg,_hcb_user.msg_approval_required);init();if(!get_option('collapse')&&!stop()&&!posted){_hcb.make_comment_form()}})();;var cached=true;