Get Programming with JavaScript - Listing 18.07

Listing 18.07 - Adding controls to The Crypt

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>The Crypt</title> </head> <body> <h1>The Crypt</h1> <div id="place"></div> <div id="player"></div> <div id="messages"></div> <div id="controls"> <input type="text" id="txtCommand"> <button id="btnCommand">Make it so</button> </div> <!-- Modules --> <!-- spacer --> <script src="http://output.jsbin.com/juneqo.js"></script> <!-- Place constructor --> <script src="http://output.jsbin.com/vuwave.js"></script> <!-- Player constructor --> <script src="http://output.jsbin.com/nonari.js"></script> <!-- player view --> <script src="http://output.jsbin.com/cehexi.js"></script> <!-- place view --> <script src="http://output.jsbin.com/cakine.js"></script> <!-- message view --> <script src="http://output.jsbin.com/nocosej.js"></script> <!-- map data --> <script src="http://output.jsbin.com/hozefe.js"></script> <!-- map builder --> <script src="http://output.jsbin.com/paqihi.js"></script> <!-- game controller --> <script src="http://output.jsbin.com/yeqicu.js"></script> <!-- Web Page Controls --> <script src="http://output.jsbin.com/qedubi.js"></script> </body> </html>