<!--
 Copyright 2019 Novartis Institutes for BioMedical Research Inc. Licensed
 under the Apache License, Version 2.0 (the "License"); you may not use
 this file except in compliance with the License. You may obtain a copy
 of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless
 required by applicable law or agreed to in writing, software distributed
 under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
 OR CONDITIONS OF ANY KIND, either express or implied. See the License for
 the specific language governing permissions and limitations under the License.
-->

<html>
<head>
     <title>Cellxgene Gateway - Loading</title>
     <link rel="icon" type="image/png" href="nibr.png">
	<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">

     <meta http-equiv="refresh" content="5">
</head>
<body>
     <header class="navbar navbar-expand navbar-dark flex-column flex-md-row bd-navbar">
       <h3>Cellxgene Gateway - Loading<span id='dots'></span></h3>
     </header>

     <br>
     <div style="margin-left:20px">
     
     <br>     
     <h4>Output:</h4>
     <pre>{{ all_output }}</pre>
     <p>
          Launch Time: <span id="launch_time"> {{ launchtime.isoformat(' ') }} </span>
     </p>
     <p>
          The page will refresh shortly.
     </p>

     <a href="{{ url_for('filecrawl') }}">
          Please click here to be redirected to the file directory.
     </a>
     <br>
     <a href="{{ url_for('index') }}">
          Please click here to return to the homepage.
     </a>
     </div>
     <script>
          var count = 0;
          window.setInterval(function(){
               var dots = document.getElementById('dots');
               dots.textContent = dots.textContent + '.';
               if (count++ > 5) {
                    window.location.reload();
               }
          }, 1000);
     </script>
</body>
</html>
