summaryrefslogtreecommitdiffstats
path: root/index.html
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2013-10-30 06:28:19 +0000
committerEndi S. Dewata <edewata@redhat.com>2013-10-30 20:49:52 +0000
commit02e7b534871ce513f72b0fe038ff824a662cc58b (patch)
tree126bcdd45afc8ca804af08247b41e65fa294c79a /index.html
downloadcli-demo-02e7b534871ce513f72b0fe038ff824a662cc58b.tar.gz
cli-demo-02e7b534871ce513f72b0fe038ff824a662cc58b.tar.xz
cli-demo-02e7b534871ce513f72b0fe038ff824a662cc58b.zip
Initial commit.
Diffstat (limited to 'index.html')
-rw-r--r--index.html105
1 files changed, 105 insertions, 0 deletions
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..628eac4
--- /dev/null
+++ b/index.html
@@ -0,0 +1,105 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>Terminal Animation</title>
+ <link href="https://google-code-prettify.googlecode.com/svn/trunk/styles/sunburst.css" rel="stylesheet" type="text/css" />
+ <link href="css/terminal-animation.css" rel="stylesheet" type="text/css" />
+ <script src="https://google-code-prettify.googlecode.com/svn/loader/run_prettify.js"></script>
+ <script src="http://code.jquery.com/jquery.js"></script>
+ <script src="js/terminal-animation.js"></script>
+ <script src="js/init.js"></script>
+ <style>
+body {
+ font: small sans-serif;
+}
+ </style>
+</head>
+<body>
+<h1>Terminal Animation</h1>
+
+<h2>Overview</h2>
+
+This jQuery plugin provides a simple way to create animations of terminal activities for demonstration purposes.
+
+<h2>Quick Start</h2>
+
+Execute the actual operations in the terminal:
+<pre class="prettyprint" style="width: 700px; margin: 1em 0px;">
+$ ls /usr/lib
+anaconda-runtime games locale rpm sendmail.postfix
+ConsoleKit gcc python2.6 sendmail yum-plugins
+$ ls /var/lib
+alternatives dhclient nfs random-seed stateless
+authconfig games plymouth rhsm udev
+cs logrotate.status polkit-1 rpm up2date
+dbus misc postfix rsyslog yum
+$
+</pre>
+
+Copy and paste the content of the terminal into a &lt;div class="terminal-animation"&gt; in an HTML page. Mark the parts that are manually typed with &lt;span class="terminal-animation-input"&gt;.
+
+<pre class="prettyprint" style="width: 700px; margin: 1em 0px;">
+&lt;html&gt;
+&lt;head&gt; ... &lt;/head&gt;
+&lt;body&gt;
+
+&lt;div class="terminal-animation"&gt;$ &lt;span class="terminal-animation-input"&gt;ls /usr/lib&lt;/span&gt;
+anaconda-runtime games locale rpm sendmail.postfix
+ConsoleKit gcc python2.6 sendmail yum-plugins
+$ &lt;span class="terminal-animation-input"&gt;ls /var/lib&lt;/span&gt;
+alternatives dhclient nfs random-seed stateless
+authconfig games plymouth rhsm udev
+cs logrotate.status polkit-1 rpm up2date
+dbus misc postfix rsyslog yum
+$ &lt;/div&gt;
+
+&lt;/body&gt;
+&lt;/html&gt;
+</pre>
+
+Include the JS and CSS files in the header and execute the plugin:
+
+<pre class="prettyprint" style="width: 700px; margin: 1em 0px;">
+&lt;html&gt;
+&lt;head&gt;
+ &lt;link href="css/terminal-animation.css" rel="stylesheet" type="text/css"/&gt;
+ &lt;script src="http://code.jquery.com/jquery.js"&gt;&lt;/script&gt;
+ &lt;script src="js/terminal-animation.js"&gt;&lt;/script&gt;
+ &lt;script&gt;
+$(function() {
+ $(".terminal-animation").terminal_animation();
+});
+ &lt;/script&gt;
+&lt;/head&gt;
+&lt;body&gt;
+ ...
+&lt;/body&gt;
+&lt;/html&gt;
+</pre>
+
+Result:
+
+<div class="terminal-animation">$ <span class="terminal-animation-input">ls /usr/lib</span>
+anaconda-runtime games locale rpm sendmail.postfix
+ConsoleKit gcc python2.6 sendmail yum-plugins
+$ <span class="terminal-animation-input">ls /var/lib</span>
+alternatives dhclient nfs random-seed stateless
+authconfig games plymouth rhsm udev
+cs logrotate.status polkit-1 rpm up2date
+dbus misc postfix rsyslog yum
+$ </div>
+
+<h2>Examples</h2>
+
+<ul>
+<li><a href="examples/basic.html">Basic example</a></li>
+</ul>
+
+<h2>Repository</h2>
+<pre>
+git://fedorapeople.org/home/fedora/edewata/public_git/pki.git
+</pre>
+
+</body>
+</html>