From d7156405c1fe528a80da3f94853bd53a1227dd2f Mon Sep 17 00:00:00 2001
From: Mike Gerwitz
+
ease.js is a framework, not a compiler. It may be used wherever JavaScript may be used, including with other compilers/parsers. ease.js also provides support for older, pre-ES5 environments by gracefully diff --git a/scripts/ex/class.js b/scripts/ex/class.js index 09c35fb..8330869 100644 --- a/scripts/ex/class.js +++ b/scripts/ex/class.js @@ -26,4 +26,3 @@ Dog( 'Fluffy' ).bark(); // alternatively, we can use the 'new' keyword var inst = new Dog( 'Bob' ); inst.bark(); - diff --git a/scripts/ui.js b/scripts/ui.js index f9d63db..c1c2196 100644 --- a/scripts/ui.js +++ b/scripts/ui.js @@ -25,89 +25,28 @@ $( document ).ready( function() { - appendTry(); + var $ex = $( '.ex' ), + content = $ex.text().replace( /^ *\n/, '' ), + $txt; - if ( document.location.href.substr( -6 ) === '#tryit' ) - { - console.log( 'ok' ); - toggleTry(); - } - } ); - - - function appendTry() - { - $trybtn = $( '