From 8820dc24b33c330f0e4017056b02986da58568cb Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Thu, 24 Mar 2011 22:22:31 -0400 Subject: [PATCH] Began adding 'try easejs' block --- scripts/ui.js | 24 ++++++++++++ style.css | 106 ++++++++++++++++++++++++++++++++++++-------------- 2 files changed, 101 insertions(+), 29 deletions(-) diff --git a/scripts/ui.js b/scripts/ui.js index f21a3b1..1146677 100644 --- a/scripts/ui.js +++ b/scripts/ui.js @@ -19,6 +19,9 @@ $( '
' ) .attr( 'id', 'try' ) .text( 'Try It!' ) + .addClass( 'btn' ) + .addClass( 'large' ) + .addClass( 'glow' ) .mousedown( function( event ) { // prevent dragging from highlighting the text (so it looks more @@ -43,11 +46,32 @@ function getTry() { + var $txt; + return $trybox || ( function createTryBox() { return $trybox = $( '
' ) .attr( 'id', 'trybox' ) .hide() + .append( $( '

' ).text( 'Try ease.js' ) ) + .append( $txt = $( '