Advertisement
Guest User

Untitled

a guest
Feb 19th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. <style media="screen">
  2. /* The console container element */
  3. #console {
  4. position: absolute;
  5. width: 400px;
  6. height: 500px;
  7. background-color:black;
  8. }
  9. /* The inner console element. */
  10. .jqconsole {
  11. padding: 10px;
  12. }
  13. /* The cursor. */
  14. .jqconsole-cursor {
  15. background-color: gray;
  16. }
  17. /* The cursor color when the console looses focus. */
  18. .jqconsole-blurred .jqconsole-cursor {
  19. background-color: #666;
  20. }
  21. /* The current prompt text color */
  22. .jqconsole-prompt {
  23. color: #0d0;
  24. }
  25. /* The command history */
  26. .jqconsole-old-prompt {
  27. color: #0b0;
  28. font-weight: normal;
  29. }
  30. /* The text color when in input mode. */
  31. .jqconsole-input {
  32. color: #dd0;
  33. }
  34. /* Previously entered input. */
  35. .jqconsole-old-input {
  36. color: #bb0;
  37. font-weight: normal;
  38. }
  39. /* The text color of the output. */
  40. .jqconsole-output {
  41. color: white;
  42. }
  43. </style>
  44.  
  45.  
  46. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  47. <script src="pypyjs-0.4.0/lib/Promise.min.js" type="text/javascript"></script>
  48. <!-- shim for off-main-thread function compilation -->
  49. <script src="pypyjs-0.4.0/lib/FunctionPromise.js" type="text/javascript"></script>
  50. <script src="pypyjs-0.4.0/lib/pypyjs.js" type="text/javascript"></script>
  51. <script src="jqc/jqconsole.min.js" type="text/javascript"></script>
  52. <script type="text/javascript">
  53.  
  54. $(function () {
  55. var jqconsole = $('#console').jqconsole('Hin', '>>>');
  56. var startPrompt = function () {
  57. // Start the prompt with history enabled.
  58. jqconsole.Prompt(true, function (input) {
  59. // Output input with the class jqconsole-output.
  60. jqconsole.Write(input + 'n', 'jqconsole-output');
  61. // Restart the prompt.
  62. startPrompt();
  63. });
  64. };
  65. startPrompt();
  66. });
  67.  
  68.  
  69. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement