Created
May 24, 2017 11:10
-
-
Save smashkins/5c9bf28ea2f21e888126b1a2bf72c188 to your computer and use it in GitHub Desktop.
Hello World Voting DApp
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hello World DApp</title> | |
<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'> | |
<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>Candidati</th> | |
<th>Voti</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr> | |
<td>Orlando</td> | |
<td id="candidate-1"></td> | |
</tr> | |
<tr> | |
<td>Ferrandelli</td> | |
<td id="candidate-2"></td> | |
</tr> | |
<tr> | |
<td>Trump</td> | |
<td id="candidate-3"></td> | |
</tr> | |
</tbody> | |
</table> | |
</div> | |
<input type="text" id="candidate" /> | |
<a href="#" onclick="voteForCandidate()" class="btn btn-primary">Vota</a> | |
</body> | |
<script src="https://cdn.rawgit.com/ethereum/web3.js/develop/dist/web3.js"></script> | |
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.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