1
0

index.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <html>
  2. <head>
  3. <!-- Font Awesome -->
  4. <link
  5. href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
  6. rel="stylesheet"
  7. />
  8. <!-- Google Fonts -->
  9. <link
  10. href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
  11. rel="stylesheet"
  12. />
  13. <!-- MDB -->
  14. <link
  15. href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.3.0/mdb.min.css"
  16. rel="stylesheet"
  17. />
  18. <!-- MDB -->
  19. <script
  20. type="text/javascript"
  21. src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.3.0/mdb.min.js"
  22. ></script>
  23. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  24. </head>
  25. <body>
  26. <!-- Navbar -->
  27. <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
  28. <!-- Container wrapper -->
  29. <div class="container-fluid">
  30. <!-- Navbar brand -->
  31. <a class="navbar-brand" href="#">Navbar</a>
  32. <!-- Toggle button -->
  33. <button class="navbar-toggler" type="button" data-mdb-toggle="collapse"
  34. data-mdb-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
  35. aria-label="Toggle navigation">
  36. <i class="fas fa-bars text-light"></i>
  37. </button>
  38. <!-- Collapsible wrapper -->
  39. <div class="collapse navbar-collapse" id="navbarSupportedContent">
  40. <!-- Left links -->
  41. <ul class="navbar-nav me-auto d-flex flex-row mt-3 mt-lg-0">
  42. <li class="nav-item text-center mx-2 mx-lg-1">
  43. <a class="nav-link active" aria-current="page" href="#!">
  44. <div>
  45. <i class="fas fa-home fa-lg mb-1"></i>
  46. </div>
  47. Home
  48. </a>
  49. </li>
  50. <li class="nav-item text-center mx-2 mx-lg-1">
  51. <a class="nav-link" href="#!">
  52. <div>
  53. <i class="far fa-envelope fa-lg mb-1"></i>
  54. <span class="badge rounded-pill badge-notification bg-danger">11</span>
  55. </div>
  56. Link
  57. </a>
  58. </li>
  59. <li class="nav-item text-center mx-2 mx-lg-1">
  60. <a class="nav-link disabled" aria-disabled="true" href="#!">
  61. <div>
  62. <i class="far fa-envelope fa-lg mb-1"></i>
  63. <span class="badge rounded-pill badge-notification bg-warning">11</span>
  64. </div>
  65. Disabled
  66. </a>
  67. </li>
  68. <li class="nav-item dropdown text-center mx-2 mx-lg-1">
  69. <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-mdb-toggle="dropdown"
  70. aria-expanded="false">
  71. <div>
  72. <i class="far fa-envelope fa-lg mb-1"></i>
  73. <span class="badge rounded-pill badge-notification bg-primary">11</span>
  74. </div>
  75. Dropdown
  76. </a>
  77. <!-- Dropdown menu -->
  78. <ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDropdown">
  79. <li><a class="dropdown-item" href="#">Action</a></li>
  80. <li><a class="dropdown-item" href="#">Another action</a></li>
  81. <li>
  82. <hr class="dropdown-divider" />
  83. </li>
  84. <li>
  85. <a class="dropdown-item" href="#">Something else here</a>
  86. </li>
  87. </ul>
  88. </li>
  89. </ul>
  90. <!-- Left links -->
  91. <!-- Right links -->
  92. <ul class="navbar-nav ms-auto d-flex flex-row mt-3 mt-lg-0">
  93. <li class="nav-item text-center mx-2 mx-lg-1">
  94. <a class="nav-link" href="#!">
  95. <div>
  96. <i class="fas fa-bell fa-lg mb-1"></i>
  97. <span class="badge rounded-pill badge-notification bg-info">11</span>
  98. </div>
  99. Messages
  100. </a>
  101. </li>
  102. <li class="nav-item text-center mx-2 mx-lg-1">
  103. <a class="nav-link" href="#!">
  104. <div>
  105. <i class="fas fa-globe-americas fa-lg mb-1"></i>
  106. <span class="badge rounded-pill badge-notification bg-success">11</span>
  107. </div>
  108. News
  109. </a>
  110. </li>
  111. </ul>
  112. <!-- Right links -->
  113. </div>
  114. <!-- Collapsible wrapper -->
  115. </div>
  116. <!-- Container wrapper -->
  117. </nav>
  118. <!-- Navbar -->
  119. </br>
  120. <div class="container">
  121. <div class="row">
  122. <div class="col-1 col-lg-1"></div>
  123. <div class="col-sm-11 col-lg-11">
  124. <!-- Search form -->
  125. <form id="searchform" class="d-flex input-group w-auto" >
  126. <input type="search" class="form-control" placeholder="Search" aria-label="Domain Name" id="search_query"/>
  127. <button class="btn btn-primary" type="button" data-mdb-ripple-color="dark" onclick="check_form();">
  128. Search
  129. </button>
  130. </form>
  131. </div>
  132. </div>
  133. </div>
  134. <script>
  135. function check_form(){
  136. var qry=document.getElementById('search_query').value;
  137. axios.get('http://139.162.121.30:8080/domain/'+qry)
  138. .then((response) => {
  139. console.log(response.data);
  140. console.log(response.status);
  141. console.log(response.statusText);
  142. console.log(response.headers);
  143. console.log(response.config);
  144. alert(response.data);
  145. });
  146. }
  147. </script>
  148. </body>
  149. </html>