Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style media="screen">
- /* The console container element */
- #console {
- position: absolute;
- width: 400px;
- height: 500px;
- background-color:black;
- }
- /* The inner console element. */
- .jqconsole {
- padding: 10px;
- }
- /* The cursor. */
- .jqconsole-cursor {
- background-color: gray;
- }
- /* The cursor color when the console looses focus. */
- .jqconsole-blurred .jqconsole-cursor {
- background-color: #666;
- }
- /* The current prompt text color */
- .jqconsole-prompt {
- color: #0d0;
- }
- /* The command history */
- .jqconsole-old-prompt {
- color: #0b0;
- font-weight: normal;
- }
- /* The text color when in input mode. */
- .jqconsole-input {
- color: #dd0;
- }
- /* Previously entered input. */
- .jqconsole-old-input {
- color: #bb0;
- font-weight: normal;
- }
- /* The text color of the output. */
- .jqconsole-output {
- color: white;
- }
- </style>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
- <script src="pypyjs-0.4.0/lib/Promise.min.js" type="text/javascript"></script>
- <!-- shim for off-main-thread function compilation -->
- <script src="pypyjs-0.4.0/lib/FunctionPromise.js" type="text/javascript"></script>
- <script src="pypyjs-0.4.0/lib/pypyjs.js" type="text/javascript"></script>
- <script src="jqc/jqconsole.min.js" type="text/javascript"></script>
- <script type="text/javascript">
- $(function () {
- var jqconsole = $('#console').jqconsole('Hin', '>>>');
- var startPrompt = function () {
- // Start the prompt with history enabled.
- jqconsole.Prompt(true, function (input) {
- // Output input with the class jqconsole-output.
- jqconsole.Write(input + 'n', 'jqconsole-output');
- // Restart the prompt.
- startPrompt();
- });
- };
- startPrompt();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement