File size: 1,471 Bytes
28c24a4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
  <head>
    <title>Find Related Domains</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
  </head>
  <body>
    <div class="container">
      <h1 class="mt-5">Find Related Domains</h1>
      <form action="/find-related-domains" method="get" class="mt-5">
        <div class="form-group">
          <label for="domain-input">Enter domain name:</label>
          <input type="text" class="form-control" id="domain-input" name="domain" placeholder="example.com">
        </div>
        <button type="submit" class="btn btn-primary">Search</button>
      </form>
      {% if related_domains is defined %}
        <h2 class="mt-5">Related domains:</h2>
        {% if related_domains %}
          <ul>
            {% for related_domain in related_domains %}
              <li>{{ related_domain }}</li>
            {% endfor %}
          </ul>
        {% else %}
          <p>No related domains found.</p>
        {% endif %}
      {% endif %}
    </div>
    <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper-core.min.js"
            integrity="sha384-8SrqeN7V0IPfo6Uj7LX/zi4br4MvZyo0fZFDjVNH8WmFyVKvCkKjegI+//5OFW6H"
            crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
  </body>
</html>