Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
76 lines (68 sloc) 2.26 KB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<title>Truth Table Generator</title>
<link href="/css/bootstrap.min.css" rel="stylesheet">
<link href="/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="/css/truthtable.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="/js/html5shiv.js"></script>
<script src="/js/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Truth Table Generator</a>
</div>
</div>
</div>
<div class="container">
<br>
<br>
<h1>Truth Table Generator, version 0.1</h1>
<p>Originally written in 2002, refreshed in 2013</p>
<br>
<p>This tools builds a truth table for your logic expression. Enter the expression you want to evaluate. See syntax guide below.</p>
<br>
<input type="text" onKeyDown="seeEvaluate()" id="expr" size="70">
&nbsp; <input type="button" value="evaluate" onClick="evaluateMe()">
<br>
<br>
<div id="logictable"></div>
<br>
<div id="results"></div>
<br>
<p>Use single lowercase letters as variables (e.g. <tt>w</tt>, <tt>x</tt>, <tt>g</tt>...).
<br>
Examples of syntax:</p>
<pre>
a+b ...... a or b
ab ....... a and b
a(b+c)d .. a and (b or c) and d
a' ....... not a (either a backtick or a single quote will work)
a'bc' .... (not a) and b and (not c)
a^b ...... a xor b
(ab)' .... not (a and b)</pre>
</div>
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery-1.9.1.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/truthtable.js"></script>
<script language="javascript">
$(document).ready(function() {
$('#expr').focus();
});
</script>
</body>
</html>