@Title{Blog}@ @CSS{ #controls{ list-style:none; padding:0; margin:0; } #controls li{ display:inline; } }@ @JavaScript{ var buttonsPosOffset; function setTextAreaHeight(){ $("textarea").height(window.innerHeight-$("h3:first-child").offset().top-buttonsPosOffset-50); //console.log(window.innerHeight-$("h3:first-child").offset().top-buttonsPosOffset-30); } $(function(){ buttonsPosOffset=window.innerHeight-$("#buttons").offset().top; //console.log(buttonsPosOffset); setTextAreaHeight(); $("#controls button").click(function(e){ e.preventDefault(); var tag=$(this).attr("tag"); console.log(tag); console.log($("#draft")); }); }); $(window).resize(setTextAreaHeight); }@ @ButtonsRight{
}@ @Body{

Title

Content

}@