123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <html>
- <head>
- <!-- Font Awesome -->
- <link
- href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
- rel="stylesheet"
- />
- <!-- Google Fonts -->
- <link
- href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
- rel="stylesheet"
- />
- <!-- MDB -->
- <link
- href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.3.0/mdb.min.css"
- rel="stylesheet"
- />
- <!-- MDB -->
- <script
- type="text/javascript"
- src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.3.0/mdb.min.js"
- ></script>
- <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
- </head>
- <body>
- <!-- Navbar -->
- <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
- <!-- Container wrapper -->
- <div class="container-fluid">
- <!-- Navbar brand -->
- <a class="navbar-brand" href="#">Googo Website Traffic</a>
-
- <!-- Toggle button -->
- <button class="navbar-toggler" type="button" data-mdb-toggle="collapse"
- data-mdb-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
- aria-label="Toggle navigation">
- <i class="fas fa-bars text-light"></i>
- </button>
-
- <!-- Collapsible wrapper -->
- <div class="collapse navbar-collapse" id="navbarSupportedContent">
- <!-- Left links -->
- <ul class="navbar-nav me-auto d-flex flex-row mt-3 mt-lg-0">
- <li class="nav-item text-center mx-2 mx-lg-1">
- <a class="nav-link active" aria-current="page" href="#!">
- <div>
- <i class="fas fa-home fa-lg mb-1"></i>
- </div>
- Home
- </a>
- </li>
- <li class="nav-item text-center mx-2 mx-lg-1">
- <a class="nav-link" href="#!">
- <div>
- <i class="fas fa-globe-americas fa-lg mb-1"></i>
- <span class="badge rounded-pill badge-notification bg-success">11</span>
- </div>
- News
- </a>
- </li>
- </ul>
- <!-- Right links -->
-
- </div>
- <!-- Collapsible wrapper -->
- </div>
- <!-- Container wrapper -->
- </nav>
- <!-- Navbar -->
- </br>
- <div class="container">
- <div class="row">
- <div class="col-1 col-lg-1"></div>
- <div class="col-sm-11 col-lg-11">
- <!-- Search 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" onclick="check_form();">
- Search
- </button>
- </form>
-
- <div class="card text-center">
- <div class="card-header" id="sitename"></div>
- <div class="card-body">
- <h5 class="card-title">Special title treatment</h5>
- <p class="card-text">
- With supporting text below as a natural lead-in to additional content.
- </p>
- <a href="#" class="btn btn-primary">Button</a>
- </div>
- <div class="card-footer text-muted">2 days ago</div>
- </div>
- </div>
- </div>
- </div>
- <div class="container">
- <div class="row">
- <div class="col-1 col-lg-1"></div>
- <div class="col-sm-11 col-lg-11">
- <!--
- <button type="button" class="btn btn-primary btn-block mb-4 ripple-surface">Place order</button>
- -->
- </div>
- </div>
- </div>
- <script>
- function check_form(){
- var qry=document.getElementById('search_query').value;
- axios.get('http://www.googo.org:8080/domain/'+qry)
- .then((response) => {
- var sitename = document.getElementById('sitename');
- var obj = JSON.parse(response.data);
- sitename.innerHTML =obj.SiteName;
- // sitename.innerHTML =response.data
- console.log(response.data);
- console.log(response.status);
- console.log(response.statusText);
- console.log(response.headers);
- console.log(response.config);
- alert(obj);
- });
- }
- </script>
- </body>
-
- </html>
|