Victor, can you please fix tabs being stripped out within the [code] tags. It's making quite a bit of my code look ugly. (Besides the code it's self looking ugly, ergo it needs all the help it can get.)
<script type="text/javascript">
function autoresize(txtbox)
{
var cols = txtbox.cols ;
var content = txtbox.value ;
var lineCount = 5 ;
var lastEOL = -1 ;
do {
var begin = lastEOL+1 ;
lastEOL = content.indexOf("\n",lastEOL+1) ;
var line = "" ;
if(lastEOL != -1) {
line = content.substring(begin,lastEOL) ;
} else {
line = content.substring(begin,content.length) ;
}
var rows_in_line = Math.floor(line.length/cols)+1 ;
lineCount += rows_in_line
} while (lastEOL != -1) ;
txtbox.rows = lineCount ;
}
</script>
<textarea class="QuickReplyField" id="PostEditTextArea" onkeyup="autoresize(this)" onmouseup="autoresize(this)" name="PostText" placeholder="Reply!"></textarea>
function ()
{txtOb=document.getElementById(this.id+'T');if(!txtOb.style.display||txtOb.style.display=='none')
{this.innerHTML='Spoiler - click to hide';txtOb.style.display='inline';txtOb.style.visibility='visible';}
else
{this.innerHTML='Spoiler - click to reveal';txtOb.style.display='none';txtOb.style.visibility='hidden';}}