OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html{% if public_key and signature %} data-adblockkey="{{ public_key + "_" + si
gnature }}"{% endif %}> |
| 3 <head> |
| 4 <title>{{ title }}</title> |
| 5 <style> |
| 6 html, body { margin: 0; height: 100%; } |
| 7 #iframe { display: block; width: 100%; height: 100%; border: none; } |
| 8 </style> |
| 9 {{ head|safe }} |
| 10 </head> |
| 11 <body> |
| 12 <iframe id="iframe"></iframe> |
| 13 |
| 14 {% block body %}{{ body|safe }}{% endblock %} |
| 15 |
| 16 <script type="text/javascript"> |
| 17 var iframe = document.getElementById("iframe") |
| 18 |
| 19 function update_iframe_location() |
| 20 { |
| 21 if (window.location.hash) |
| 22 iframe.src = transform_url(window.location.href, |
| 23 window.location.hash); |
| 24 } |
| 25 window.addEventListener("hashchange", update_iframe_location); |
| 26 update_iframe_location(); |
| 27 </script> |
| 28 </body> |
| 29 </html> |
OLD | NEW |