$(document).ready(function(){$('#send').click(function(){var name=$('#name').val();var email=$('#email').val();var message=$('#message').val();$.post("http://10.0.1.198:8888/codypchristian/contact/process",{name:name,email:email,message:message},function(data){$('#result').html(data);});});var textArray=['<div class="qtext">A jack of all trades, Cody P. Christian has spent nearly a decade learning and working in web design and post-production. Besides his many projects (including assisting on Stranger Things), he owns and operates CPC Studios, a company specializing in innovation design and development.</div><div class="qtextauth">- Earl Newton<br /><span class="smaller">Creator/Executive Producer<br />StrangerThings.tv</span></div>','<div class="qtext">Cody P. Christian is a true professional whom is a stickler for detail, passionate about his craft, and is well-rounded with various types of technologies. He is prodigiously thorough at every stage of the development process. He demands nothing but the absolute best from himself and for his clients.</div><div class="qtextauth">- Steve Miller<br /><span class="smaller">Systems Administrator<br />Convergys</span></div>'];$('div#qcont').loadText(textArray,10000);});$.fn.loadText=function(textArray,interval){return this.each(function(){var obj=$(this);obj.fadeOut('slow',function(){obj.empty().html(random_array(textArray));obj.fadeIn('slow');});timeOut=setTimeout(function(){obj.loadText(textArray,interval)},interval);$("#text-reload").click(function(){if(!obj.is(':animated')){clearTimeout(timeOut);obj.loadText(textArray,interval);}});});}
function random_array(aArray){var rand=Math.floor(Math.random()*aArray.length+ aArray.length);var randArray=aArray[rand- aArray.length];return randArray;}
