diff --git a/scripts/RecTest.js b/scripts/RecTest.js index 4090eb6..a658d59 100644 --- a/scripts/RecTest.js +++ b/scripts/RecTest.js @@ -56,30 +56,6 @@ rectest.RecTest = Class( 'RecTest', }, - 'public displayNotice': function( str ) - { - this._jQuery( '.notice' ) - .text( str ) - .slideDown( 250, function() - { - $( this ).addClass( 'active' ); - } ); - - return this; - }, - - - 'public hideNotice': function() - { - $( '.notice' ).slideUp( 250, function() - { - $( this ).removeClass( 'active' ); - } ); - - return this; - }, - - 'bindContinue': function( $element, callback ) { var _self = this, @@ -100,7 +76,7 @@ rectest.RecTest = Class( 'RecTest', console.log( 'done' ); } ); - callback.call( _self.__inst ); + callback && callback.call( _self.__inst ); } ); return this; diff --git a/scripts/main.js b/scripts/main.js index c2c9850..df39eec 100644 --- a/scripts/main.js +++ b/scripts/main.js @@ -9,12 +9,6 @@ $( document ).ready( function() { rectest.RecTest( jQuery, rectest.cases ).init() .listCases( $( '#case' ) ) - .displayNotice( - 'Please configure the test using the form below.' - ) - .bindContinue( $( '#continue' ), function() - { - this.hideNotice(); - } ) + .bindContinue( $( '#continue' ) ) ; } ); diff --git a/style.css b/style.css index e24a936..f77bf92 100644 --- a/style.css +++ b/style.css @@ -79,16 +79,11 @@ dd { } .notice { - display: none; - background-color: #fce94f; border-bottom: 2px solid #f4d030; color: black; } -.notice.active { - display: block; -} #interval, diff --git a/test.html b/test.html index f149061..94eda78 100644 --- a/test.html +++ b/test.html @@ -18,8 +18,8 @@ -
-   +
+ Please configure the test using the form below.