Hiding header while testing

master
Mike Gerwitz 2012-03-03 16:16:19 -05:00
parent 1e87ec531e
commit 7e5be7745c
3 changed files with 9 additions and 1 deletions

View File

@ -34,9 +34,12 @@ $( document ).ready( function()
$( this ).parent().hide(); $( this ).parent().hide();
hideNotice(); hideNotice();
$( 'body' ).addClass( 'testing' );
runner.run( testcase, options, function( history ) runner.run( testcase, options, function( history )
{ {
$( 'body' ).removeClass( 'testing' );
console.log( history ); console.log( history );
console.log( 'done' ); console.log( 'done' );
} ); } );

View File

@ -24,6 +24,11 @@ dd {
display: block; display: block;
} }
/* display idle elements only until testing */
.testing .while-idle {
display: none;
}
.topbox { .topbox {
position: absolute; position: absolute;

View File

@ -5,7 +5,7 @@
<link rel="stylesheet" href="style.css" /> <link rel="stylesheet" href="style.css" />
</head> </head>
<body> <body>
<h1>Recollection Test</h1> <h1 class="while-idle">Recollection Test</h1>
<noscript> <noscript>
<p>It appears that you have JavaScript disabled. Please consult your <p>It appears that you have JavaScript disabled. Please consult your
browser's documentation to enable it before continuing. Don't worry - it browser's documentation to enable it before continuing. Don't worry - it