| Index: templates/frame.tmpl | 
| diff --git a/templates/frame.tmpl b/templates/frame.tmpl | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..fc90f6b8940901b4b3104efb0ecf3fe11b3bb819 | 
| --- /dev/null | 
| +++ b/templates/frame.tmpl | 
| @@ -0,0 +1,32 @@ | 
| +<!DOCTYPE html> | 
| +<html> | 
| +  <head> | 
| +    <title>{{ title }}</title> | 
| +    <style> | 
| +      html, body { margin: 0; height: 100%; } | 
| +      #iframe { display: block; width: 100%; height: 100%; border: none; } | 
| +    </style> | 
| +    {{ head|safe }} | 
| +  </head> | 
| +  <body> | 
| +    <iframe id="iframe"></iframe> | 
| + | 
| +    {% block body %}{{ body|safe }}{% endblock %} | 
| + | 
| +    <script type="text/javascript"> | 
| +      var iframe = document.getElementById("iframe") | 
| + | 
| +      function update_iframe_location() | 
| +      { | 
| +        if (window.location.hash) | 
| +          iframe.src = transform_url(window.location.href, | 
| +                                     window.location.hash); | 
| +      } | 
| +      window.addEventListener("hashchange", update_iframe_location); | 
| +      update_iframe_location(); | 
| +    </script> | 
| +  </body> | 
| +</html> | 
| + | 
| + | 
| + | 
|  |