<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Температура</title>
  <meta name="description" content="Temp conditions - RPi">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
  <link rel="stylesheet" href="/static/css/normalize.css">
  <link rel="stylesheet" href="/static/css/skeleton.css">
  <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/addtohomescreen.css') }}">
  <script src="{{ url_for('static', filename='js/addtohomescreen.js') }}"></script>
  <style>
  ::-webkit-scrollbar {
      display: none;
  }
 
  div {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10+ and Edge */
    user-select: none; /* Standard syntax */
  }
  </style>
  <script>
  setTimeout(() => {
      window.location.reload(true);
  },2000);
  </script>
  <script>

      document.addEventListener('contextmenu', event => event.preventDefault());

  </script>
</head>
<body class="animated-gradient"><br><br>
  <div class="container">
    <div class="row">
      <div class="one-third column" style="margin-top: 5%">
        <strong>Все данные</strong>
        <h2>Температура</h2>
        <table class="u-full-width">
          <thead style="display:block;">
            <tr>
              <th>Дата</th>
              <th> &deg;С</th>
            </tr>
          </thead>
          <tbody style="height:450px; overflow:scroll; display:block;">
            {% for row in tempdata %}
            <tr>
              <td>{{row[0]}}</td>
              <td>{{'%0.2f'|format(row[1])}}</td>
            </tr>
            {% endfor %}
          </tbody>
        </table>
      </div>
    </div>
  </body>
  </html>
