This commit is contained in:
唐钰豆豆 2018-05-12 18:25:53 +08:00
parent 14d7d3663e
commit b0914fe01a

View file

@ -20,6 +20,16 @@
</p>
</div>
</div>
<div class="container">
<div class="form-group">
<label for="domainInput">Domain</label>
<input type="text" class="form-control" id="domainInput" placeholder="uiisc.com">
<input type="button" class="btn btn-default check-domain" value="Check" />
</div>
<button class="btn btn-default check-domain">Check</button>
</div>
<div class="container">
<div class="row">
<div class="col-md-6">
@ -38,5 +48,23 @@
</div>
</div>
<?php include ("footer.php"); ?>
<script type="text/javascript">
$('.check-domain').click(function () {
var domain = $('#domainInput').val()
if (domain) {
$.ajax({
method: 'post',
url: 'http://api.uiisc.com/DomainCheck?i=1',
dataType: 'json',
data: {
domain: domain
},
success: function (x) {
console.log(x);
}
})
}
})
</script>
</body>
</html>