fix function name
This commit is contained in:
parent
ab5510e8a7
commit
d96cae0ce7
@ -38,7 +38,7 @@
|
|||||||
<label for="freqInput">freq</label>
|
<label for="freqInput">freq</label>
|
||||||
<input type="text" class="form-control" id="freqInput" placeholder="frequency">
|
<input type="text" class="form-control" id="freqInput" placeholder="frequency">
|
||||||
</div>
|
</div>
|
||||||
<button type="button" class="btn btn-primary" href="javascript:void(0);" onclick="convert_usb_pcm_data()">
|
<button type="button" class="btn btn-primary" href="javascript:void(0);" onclick="calc_distance()">
|
||||||
|
|
||||||
calc
|
calc
|
||||||
|
|
||||||
@ -82,7 +82,7 @@
|
|||||||
</body>
|
</body>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function convert_usb_pcm_data() {
|
function calc_distance() {
|
||||||
var input1 = document.getElementById("lossInput");
|
var input1 = document.getElementById("lossInput");
|
||||||
var input2 = document.getElementById("freqInput");
|
var input2 = document.getElementById("freqInput");
|
||||||
var output = document.getElementById("resultOut");
|
var output = document.getElementById("resultOut");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user