Created
January 27, 2018 06:28
-
-
Save tko22/0c7025b8f6effab8149d8dc5dba97ba3 to your computer and use it in GitHub Desktop.
Ethereum 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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> | |
<title>Ethereum Voting Dapp</title> | |
<!-- Bootstrap --> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row"> | |
<div> | |
<h1 class="text-center">Ethereum Voting Dapp</h1> | |
<hr/> | |
<br/> | |
</div> | |
</div> | |
<div class="row"> | |
<div class="col-md-4"> | |
<p>Add ID and click candidate to vote</p> | |
<div class="input-group mb-3"> | |
<input type="text" class="form-control" id="id-input" placeholder="Enter ID"> | |
</div> | |
<div class="candidate-box"></div> | |
<button class="btn btn-primary" onclick="App.vote()">Vote</button> | |
<div class="msg"></div> | |
</div> | |
<div class="col-md-6"> | |
<button class="btn btn-primary" onclick="App.findNumOfVotes()">Count Votes</button> | |
<div id="vote-box"></div> | |
</div> | |
</div> | |
</div> | |
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> | |
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> | |
<!-- Include all compiled plugins (below), or include individual files as needed --> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js" integrity="sha384-a5N7Y/aK3qNeh15eJKGWxsqtnX/wWdSZSKp+81YjTmS15nvnvxKHuzaWwXHDli+4" crossorigin="anonymous"></script> | |
<!-- Custom Scripts --> | |
<script src="app.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment