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">
<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>
<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>
<a class="navbar-brand" href="#">Truth Table Generator</a>
<div class="container">
<h1>Truth Table Generator, version 0.1</h1>
<p>Originally written in 2002, refreshed in 2013</p>
<p>This tools builds a truth table for your logic expression. Enter the expression you want to evaluate. See syntax guide below.</p>
<input type="text" onKeyDown="seeEvaluate()" id="expr" size="70">
&nbsp; <input type="button" value="evaluate" onClick="evaluateMe()">
<div id="logictable"></div>
<div id="results"></div>
<p>Use single lowercase letters as variables (e.g. <tt>w</tt>, <tt>x</tt>, <tt>g</tt>...).
Examples of syntax:</p>
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>
<!-- 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() {