Testing out the new WordPress SyntaxHighlighter vs. Gist from Github

September 27, 2012 at 9:40 am | blabbing.

JS tag in syntaxhighlighter with the 7th line highlighted. Which is easier or better?

<script type="text/javascript">
	getGravity = function(){
		//alert("I have the input.");
		if(document.getElementById('og-slider').value != ''){
			var og = document.getElementById('og-slider').value;			
		}else {
			alert("Please Enter an Original Gravity");
		}
		if(document.getElementById('fg-slider').value != ''){
			var fg = document.getElementById('fg-slider').value;
		}else {
			alert("Please Enter an Final Gravity");
		}
	        var subTotal = og - fg;
		subTotal = subTotal.toFixed(3);
		var abw = subTotal *105;
		abw = abw.toFixed(2);
		abv = abw * 1.25;
		abv = abv.toFixed(1);
		document.getElementById('abw').innerHTML = abw + "%";
		document.getElementById('abv').innerHTML = abv + "%";
	}
</script>

Embed of Gist from Github

The care of a phone, computer,…

September 13, 2012 at 5:52 pm | web.

The care of a phone, computer, email inbox is in direct proportion to a persons digital life. Some people are just digital slobs.