Created
September 19, 2017 23:00
-
-
Save bczulauf/be9679d0e198713174d178e612238b59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Hello World DApp</title> | |
<link href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css' rel='stylesheet' type='text/css'> | |
</head> | |
<body class="container"> | |
<h1>A Simple Hello World Voting Application</h1> | |
<div class="table-responsive"> | |
<table class="table table-bordered"> | |
<thead> | |
<tr> | |
<th>Candidate</th> | |
<th>Votes</th> | |
</tr> | |
</thead> | |
<tbody id="table-body"> | |
</tbody> | |
</table> | |
</div> | |
<form id="vote-form"> | |
<select id="candidate-options" name="candidate"></select> | |
<button type="submit" class="btn btn-primary">Vote</button> | |
</form> | |
</body> | |
<script src="https://cdn.rawgit.com/ethereum/web3.js/develop/dist/web3.js"></script> | |
<script src="./index.js"></script> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment