Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
<table style='width:90%!important' class='table table-striped table-bordered bootstrap-datatable datatable responsive dataTable' border='1'>
<tr>
<td>Enter ammount in $</td>
</tr>
<tr>
<td>
<form method="POST" id="add_balance" action="payments/index.php">
<table align="center">
<tr>
<td><input type="text" style="text-align:center" class="form-control" value="10" name="add_value" placeholder="10"></td><td> $ </td><td><input type='submit' class='btn btn-default' value='Add'></td>
</tr>
</table>
</form>
</td>
</tr>
<tr><td>10$ = <? echo $price_in_btc; ?> BTC</td></tr>
</table>
<script>
$(function(){
$('#add_balance').on('submit', function(e){
e.preventDefault();
var $that = $(this),
fData = $that.serialize();
$.ajax({
url: $that.attr('action'),
type: $that.attr('method'),
data: {form_data: fData},
dataType: 'json',
success: function(json){
if(json){
$that.replaceWith(json);
}
}
});
});
});
</script>