We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e4c7797 + be8cefd commit 311e0b9Copy full SHA for 311e0b9
doc/_templates/layout.html
@@ -1,2 +1,22 @@
1
{% extends "!layout.html" %}
2
{% set css_files = css_files + ["_static/tablefix.css"] %}
3
+{%- block footer %}
4
+ <script>
5
+ $( document ).ready(function() {
6
+ console.log( "OpenShot Documentation page ready" );
7
+ const height = document.body.scrollHeight;
8
+ const href = location.href;
9
+ if (window.parent) {
10
+ location.href.includes('index.html')
11
+ window.parent.postMessage(
12
+ {height, href}
13
+ );
14
+ }
15
+ });
16
+
17
+ <!-- Adds target=_blank to external links -->
18
+ $(document).ready(function () {
19
+ $('a[href^="http://"], a[href^="https://"]').not('a[class*=internal]').attr('target', '_blank');
20
21
+ </script>
22
+{% endblock %}
0 commit comments