mirror of
https://github.com/gwenhael-le-moine/c-urs_-toil-s.git
synced 2025-01-13 08:01:08 +01:00
display_level builds a self-contained html part
This commit is contained in:
parent
aad2f4a3e0
commit
9ff67413b5
2 changed files with 2 additions and 3 deletions
|
@ -28,7 +28,6 @@
|
|||
</header>
|
||||
|
||||
<div id="main" role="main">
|
||||
<p id="blackboard"></p>
|
||||
</div>
|
||||
|
||||
<footer>
|
||||
|
@ -50,7 +49,7 @@
|
|||
<script src="js/star.js"></script>
|
||||
<script>
|
||||
state = load_level( levels, 0 );
|
||||
start_loop( state, "#blackboard" );
|
||||
start_loop( state, "#main" );
|
||||
$( document ).focus();
|
||||
</script>
|
||||
</body>
|
||||
|
|
|
@ -137,7 +137,7 @@ function load_level( levelset, nb ) {
|
|||
}
|
||||
|
||||
function display_level( state, elt ) {
|
||||
$( elt ).html( format_level( state, false ) );
|
||||
$( elt ).html( '<p id="blackboard">' + format_level( state, false ) + '</p>' );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue