|
@@ -132,9 +132,9 @@
|
|
|
<div class="col-sm-11 col-lg-11">
|
|
|
|
|
|
<!-- Search form -->
|
|
|
- <form id="searchform" class="d-flex input-group w-auto" onsubmit="check_form();">
|
|
|
+ <form id="searchform" class="d-flex input-group w-auto" >
|
|
|
<input type="search" class="form-control" placeholder="Search" aria-label="Domain Name" id="search_query"/>
|
|
|
- <button class="btn btn-primary" type="button" data-mdb-ripple-color="dark">
|
|
|
+ <button class="btn btn-primary" type="button" data-mdb-ripple-color="dark" onclick="check_form();">
|
|
|
Search
|
|
|
</button>
|
|
|
</form>
|
|
@@ -150,13 +150,14 @@
|
|
|
<script>
|
|
|
function check_form(){
|
|
|
var qry=document.getElementById('search_query').value;
|
|
|
- axios.get('http://127.0.0.1:8080/domain/w3.org')
|
|
|
+ axios.get('http://139.162.121.30:8080/domain/'+qry)
|
|
|
.then((response) => {
|
|
|
console.log(response.data);
|
|
|
console.log(response.status);
|
|
|
console.log(response.statusText);
|
|
|
console.log(response.headers);
|
|
|
console.log(response.config);
|
|
|
+ alert(response.data);
|
|
|
});
|
|
|
|
|
|
}
|