December 2018
Intermediate to advanced
222 pages
6h 6m
English
To raise funds, we need to call the fund function, which is defined in our crowdfunding smart contract. In our web page, we use the HTML range input slider component to contribute fund amounts, as follows:
<form id="fund-form" method="post" role="form" style="display: block;"> <div class="form-group row"> <div class="row"> <div class="col-lg-12"> <input type="range" name="ageInputName" id="ageInputId" value="0" min="1" max="100" oninput="ageOutputId.value = ageInputId.value"> <div style="display: inline;"><output name="ageOutputName" id="ageOutputId">0</output> <span>ether</span></div> </div> </div> </div> <div class="form-group"> <div class="row"> <div class="col-lg-12"> <button type="button" id="fundBtn" class="btn ...
Read now
Unlock full access