index.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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="#">Googo Website Traffic</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="fas fa-globe-americas fa-lg mb-1"></i>
  54. <span class="badge rounded-pill badge-notification bg-success">11</span>
  55. </div>
  56. News
  57. </a>
  58. </li>
  59. </ul>
  60. <!-- Right links -->
  61. </div>
  62. <!-- Collapsible wrapper -->
  63. </div>
  64. <!-- Container wrapper -->
  65. </nav>
  66. <!-- Navbar -->
  67. </br>
  68. <div class="container">
  69. <div class="row">
  70. <div class="col-1 col-lg-1"></div>
  71. <div class="col-sm-11 col-lg-11">
  72. <!-- Search form -->
  73. <form id="searchform" class="d-flex input-group w-auto" >
  74. <input type="search" class="form-control" placeholder="Search" aria-label="Domain Name" id="search_query"/>
  75. <button class="btn btn-primary" type="button" data-mdb-ripple-color="dark" onclick="check_form();">
  76. Search
  77. </button>
  78. </form>
  79. <div class="card text-center">
  80. <div class="card-header" id="sitename"></div>
  81. <div class="card-body">
  82. <h5 class="card-title">Special title treatment</h5>
  83. <p class="card-text">
  84. With supporting text below as a natural lead-in to additional content.
  85. </p>
  86. <a href="#" class="btn btn-primary">Button</a>
  87. </div>
  88. <div class="card-footer text-muted">2 days ago</div>
  89. </div>
  90. </div>
  91. </div>
  92. </div>
  93. <div class="container">
  94. <div class="row">
  95. <div class="col-1 col-lg-1"></div>
  96. <div class="col-sm-11 col-lg-11">
  97. <!--
  98. <button type="button" class="btn btn-primary btn-block mb-4 ripple-surface">Place order</button>
  99. -->
  100. </div>
  101. </div>
  102. </div>
  103. <script>
  104. function check_form(){
  105. var qry=document.getElementById('search_query').value;
  106. axios.get('http://www.googo.org:8080/domain/'+qry)
  107. .then((response) => {
  108. var sitename = document.getElementById('sitename');
  109. sitename.innerHTML =response.data.SiteName;
  110. // sitename.innerHTML =response.data
  111. console.log(response.data);
  112. console.log(response.status);
  113. console.log(response.statusText);
  114. console.log(response.headers);
  115. console.log(response.config);
  116. alert(response.data);
  117. });
  118. }
  119. </script>
  120. </body>
  121. </html>