|
@@ -20,6 +20,7 @@
|
|
type="text/javascript"
|
|
type="text/javascript"
|
|
src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.3.0/mdb.min.js"
|
|
src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.3.0/mdb.min.js"
|
|
></script>
|
|
></script>
|
|
|
|
+<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
|
|
</head>
|
|
</head>
|
|
<body>
|
|
<body>
|
|
|
|
|
|
@@ -131,8 +132,8 @@
|
|
<div class="col-sm-11 col-lg-11">
|
|
<div class="col-sm-11 col-lg-11">
|
|
|
|
|
|
<!-- Search form -->
|
|
<!-- Search form -->
|
|
- <form class="d-flex input-group w-auto">
|
|
|
|
- <input type="search" class="form-control" placeholder="Search" aria-label="Domain Name" />
|
|
|
|
|
|
+ <form id="searchform" class="d-flex input-group w-auto" onsubmit="check_form();">
|
|
|
|
+ <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">
|
|
Search
|
|
Search
|
|
</button>
|
|
</button>
|
|
@@ -145,6 +146,22 @@
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
+
|
|
|
|
+<script>
|
|
|
|
+ function check_form(){
|
|
|
|
+ var qry=document.getElementById('search_query').value;
|
|
|
|
+ axios.get('http://127.0.0.1:8080/domain/w3.org')
|
|
|
|
+ .then((response) => {
|
|
|
|
+ console.log(response.data);
|
|
|
|
+ console.log(response.status);
|
|
|
|
+ console.log(response.statusText);
|
|
|
|
+ console.log(response.headers);
|
|
|
|
+ console.log(response.config);
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
|
|
+
|
|
</body>
|
|
</body>
|
|
|
|
|
|
|
|
|