<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8" />
  <title>Current</title>
  <link rel="icon" href="/logo/favicon.ico" type="image/png">

  <!-- CSS libraries -->
  <link href="https://cdn.jsdelivr.net/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"/>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/fontawesome/4.1.0/css/font-awesome.min.css" />
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/jquery.bootstrapvalidator/0.5.0/css/bootstrapValidator.min.css"/>

  <!-- JS libraries -->
  <script src="https://cdn.jsdelivr.net/jquery/1.11.1/jquery.min.js"></script>
  <script src="https://cdn.jsdelivr.net/bootstrap/3.2.0/js/bootstrap.min.js"></script>
  <script src="https://cdn.jsdelivr.net/jquery.bootstrapvalidator/0.5.0/js/bootstrapValidator.min.js"></script>

  <style>
    h1 {
      text-align: left;
      font-size: 18px;
    }

    .button {
      border: none;
      color: white;
      padding: 16px 32px;
      text-align: center;
      text-decoration: none;
      display: inline-block;
      font-size: 16px;
      margin: 4px 2px;
      transition-duration: 0.4s;
      cursor: pointer;
    }

    .button1 {
      background-color: white;
      color: black;
      border: 2px solid #4CAF50;
    }

    .button1:hover {
      background-color: #4CAF50;
      color: white;
    }

    .button2 {
      background-color: white;
      color: black;
      border: 2px solid #008CBA;
    }

    .button2:hover {
      background-color: #008CBA;
      color: white;
    }
  </style>

  <script>
    function loaded() {
      setTimeout(() => window.close(), 1000);
    }
  </script>
</head>

<body>
  <div class="container">
    <div class="row">
      <div class="col-lg-12">
        <h1>Current Ticker Titles</h1>
        <img src="/logo/logo.png" alt="logo" style="float:right;width:150px;height:50px;">
      </div>
    </div>

    <hr>

    <!-- Optimised loop rendering -->
    {% for item in textdisplay %}
      <p dir="rtl">{{ item }}</p>
    {% endfor %}

    <p>
      <a href="/">
        <button class="button button2">Back to login</button>
      </a>
    </p>
  </div>
</body>

</html>
