0
0
Fork 0

Implement the choosing system.

This commit is contained in:
Tyler-A 2019-09-10 20:33:20 -06:00
parent 2776e10f80
commit 3297c70db4
2 changed files with 59 additions and 1 deletions

View file

@ -12,6 +12,7 @@
<!-- JAVASCRIPT -->
<script src="./js/add_choice.js"></script>
<script src="./js/choosing.js"></script>
</head>
<body>
<template id="choice-template">
@ -26,14 +27,16 @@
<h2>Choices:</h2>
<button onclick="add_choice()">Add New Choice</button>
<br>
<div class="line"></div>
<div id="choices">
<div class="choice">
<div class="line"></div>
<input class="left" type="text" id="text-in-0" placeholder="Choice Name">
<input class="right" type="text" id="weight-in-0" placeholder="Choice Weighting">
<div class="line"></div>
</div>
</div>
<button onclick="choose_option()">Choose</button>
<h2>Chosen Entry: <span id="result"></span></h2>
</div>
</body>
</html>