2017-03-24 04:22:02 -05:00
|
|
|
{% extends "!layout.html" %}
|
2018-02-11 12:31:58 -05:00
|
|
|
{% set css_files = css_files + ["_static/tablefix.css"] %}
|
2026-01-25 18:04:51 -06:00
|
|
|
{%- block extrahead %}
|
|
|
|
|
{{ super() }}
|
|
|
|
|
{%- if ga4_measurement_id %}
|
|
|
|
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ ga4_measurement_id|e }}"></script>
|
|
|
|
|
<script>
|
|
|
|
|
window.dataLayer = window.dataLayer || [];
|
|
|
|
|
function gtag(){dataLayer.push(arguments);}
|
|
|
|
|
gtag('js', new Date());
|
|
|
|
|
gtag('config', '{{ ga4_measurement_id|e }}');
|
|
|
|
|
</script>
|
|
|
|
|
{%- endif %}
|
|
|
|
|
{%- endblock %}
|
2022-11-30 12:21:54 -06:00
|
|
|
{%- block footer %}
|
2022-12-11 13:25:45 -06:00
|
|
|
<script src="https://cdn.openshot.org/static/vendor/iframeSizer/iframeResizer.contentWindow.min.js"></script>
|
2022-11-30 12:21:54 -06:00
|
|
|
<script>
|
|
|
|
|
$( document ).ready(function() {
|
2022-11-30 17:22:38 -06:00
|
|
|
<!-- Adds target=_blank to external links -->
|
|
|
|
|
$('a[href^="http://"], a[href^="https://"]').not('a[class*=internal]').attr('target', '_blank');
|
2022-11-30 12:21:54 -06:00
|
|
|
});
|
2022-12-01 12:21:08 -06:00
|
|
|
|
|
|
|
|
// *** iFrame resize & scrolling support ***
|
|
|
|
|
// Send the current page href to the parent site (if found)
|
|
|
|
|
// Give up after 5 tries (for example, if viewing these pages
|
|
|
|
|
// by themselves, with no parent openshot.org iFrame
|
|
|
|
|
let messageAttempts = 0;
|
|
|
|
|
function trySendMessage(){
|
|
|
|
|
messageAttempts++;
|
|
|
|
|
if ('parentIFrame' in window) {
|
2022-12-01 12:32:35 -06:00
|
|
|
const href = window.location.href;
|
2022-12-01 12:21:08 -06:00
|
|
|
const type = "document-loaded";
|
|
|
|
|
window.parentIFrame.sendMessage({href, type});
|
|
|
|
|
} else {
|
|
|
|
|
// If not, try again in one second
|
|
|
|
|
if (messageAttempts < 5) {
|
|
|
|
|
setTimeout(trySendMessage, 250);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
trySendMessage();
|
|
|
|
|
|
2022-11-30 12:21:54 -06:00
|
|
|
</script>
|
|
|
|
|
{% endblock %}
|