javascript:jquery:terminal_emulator_plugin

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
javascript:jquery:terminal_emulator_plugin [2019/08/17 17:37] ともやんjavascript:jquery:terminal_emulator_plugin [2019/09/05 01:09] (現在) ともやん
行 1: 行 1:
-<ifauth !@loggedinusers><html> 
-<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> 
-<script> 
-     (adsbygoogle = window.adsbygoogle || []).push({ 
-          google_ad_client: "ca-pub-0791334967460971", 
-          enable_page_level_ads: true 
-     }); 
-</script></html></ifauth> 
 <html> <html>
-  <script src="https://www.tomoyan.net/_media/javascript/jquery/jquery.terminal-2.7.1.min.js"></script> +  <script src="/_media/javascript/jquery/terminal/jquery.terminal-2.7.1.min.js?cache=-1"></script> 
-  <link href="https://www.tomoyan.net/_media/javascript/jquery/jquery.terminal-2.7.1.css" rel="stylesheet"/>+  <link href="/_media/javascript/jquery/terminal/jquery.terminal-2.7.1.css?cache=-1" rel="stylesheet"/>
   <script>   <script>
     jQuery(function($, undefined) {     jQuery(function($, undefined) {
       term = $('#term_demo');       term = $('#term_demo');
-      term.terminal(function(command) { +      term.terminal(function(command, term) { 
-        if (command !== '') {+        if (command == 'help') { 
 +          term.echo('cls, clear - Clear Terminal'); 
 +        } 
 +        else if (command !== '') {
           try {           try {
             var result = window.eval(command);             var result = window.eval(command);
行 27: 行 22:
         }         }
       }, {       }, {
-        greetings: 'JavaScript Interpreter Version ' + $.terminal.version,+        greetings: 'JavaScript Interpreter Version ' + $.terminal.version + '\r\n'
 +        navigator.userAgent,
         name: 'js_demo',         name: 'js_demo',
-        height: 200+        height: 400
-        prompt: 'js> '+        prompt: 'js > '
       });       });
 +      
       function dir(object) {       function dir(object) {
         var result = '';         var result = '';
行 65: 行 62:
 Copyright (c) 2011-2019 Jakub T. Jankiewicz <https://jcubic.pl/me> Copyright (c) 2011-2019 Jakub T. Jankiewicz <https://jcubic.pl/me>
  
 +js > help
 +load python - Python Interpreter
 js > js >
 </code> </code>
 </WRAP> </WRAP>
- 
  • javascript/jquery/terminal_emulator_plugin.1566031060.txt.gz
  • 最終更新: 2019/08/17 17:37
  • by ともやん