1
This commit is contained in:
parent
14d7d3663e
commit
b0914fe01a
1 changed files with 28 additions and 0 deletions
28
index.php
28
index.php
|
@ -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>
|
Loading…
Reference in a new issue