File size: 990 Bytes
402daee
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eee32fb
 
402daee
 
 
 
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
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{% if title %}{{ title }} - {% endif %}ReaSpeech</title>
    <link href="/static/css/bootstrap.min.css" rel="stylesheet">
    <link href="/static/css/bootstrap-icons.min.css" rel="stylesheet">
    <style>
      .navbar-brand img {
        height: 50px;
      }
    </style>
  </head>

  <body>
    <script src="/static/js/bootstrap.bundle.min.js"></script>

    {% include "nav.html" %}

    {% block content %}{% endblock %}

    <script>
      const reascriptLinks = document.querySelectorAll(".reascript-link");

      reascriptLinks.forEach((reascriptLink) => {
        const name = reascriptLink.dataset.name;
        const host = location.host;
        const protocol = location.protocol;
        reascriptLink.href = '/reascript?name=' + name + '&host=' + host + '&protocol=' + protocol;
      });
    </script>
  </body>
</html>