Advertisement
Guest User

jquery-terminal

a guest
May 12th, 2015
412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE HTML>
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.   <head>
  4.     <meta charset="utf-8" />
  5.     <title>GSA</title>
  6.     <meta name="author" content="Jakub Jankiewicz - jcubic&#64;onet.pl"/>
  7.     <meta name="Description" content="Demonstration for JQuery Terminal Emulator using call automaticly JSON-RPC service (in php) with authentication."/>
  8.     <script src="../master/js/jquery-1.7.1.min.js"></script>
  9.     <script src="../master/js/jquery.mousewheel-min.js"></script>
  10.     <script src="../master/js/jquery.terminal-min.js"></script>
  11.     <link href="../master/css/jquery.terminal.css" rel="stylesheet"/>
  12.     <script>
  13.     jQuery(function($, undefined) {
  14.      $('html').terminal(function(cmd, term) {
  15.     if (cmd == 'help') {
  16.       term.echo("available commands are help, ls, more, exit");
  17.     } else if (cmd == 'ls') {
  18.       term.echo("report001.txt, report002.txt, report003.txt");
  19.     } else if (cmd == "more") {
  20.       //i have no idea what to put here!
  21.       } else if (cmd == 'exit') {
  22.        term.echo("");
  23.       }
  24.         }, {
  25.           greetings: "GSA Terminal" });
  26.      
  27.     });
  28.    
  29.     </script>
  30.   </head>
  31. <body>
  32.     <!-- Piwik -->
  33.     <script type="text/javascript">
  34.     /*
  35.       var _paq = _paq || [];
  36.       _paq.push(['trackPageView']);
  37.       _paq.push(['enableLinkTracking']);
  38.       (function() {
  39.         var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.jcubic.pl/";
  40.         _paq.push(['setTrackerUrl', u+'piwik.php']);
  41.         _paq.push(['setSiteId', 1]);
  42.         var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript';
  43.         g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
  44.       })();
  45.       */
  46.     </script>
  47.     <noscript><p><img src="http://piwik.jcubic.pl/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
  48.     <!-- End Piwik Code -->
  49. </body>
  50. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement