page.html 1.6 KB
Newer Older
 JosephK's avatar
JosephK committed
1
2
3
4
{% extends template.self %}

{% block body %}
    {{ super() }}
5
    <script type="text/javascript">
 JosephK's avatar
JosephK committed
6
7
8
9
    var loc = window.location.href+'';
    if (loc.indexOf('http://') > -1 && window.location.host.indexOf('framasoft.') > -1){
        window.location.href = loc.replace('framasoft.frama.io/docs','docs.framasoft.org').replace('http://','https://');
    }
10
11
12
    var l$ = {
      js: {
        j$: 'noConflict',
 JosephK's avatar
JosephK committed
13
        video : true,
 JosephK's avatar
JosephK committed
14
        ext: function(){ setTimeout(function() {
 JosephK's avatar
JosephK committed
15
16
17
18
19
20
21
22
            if (jQuery(window).width() <= 768) {
                jQuery('.with-summary').removeClass('with-summary');
            }
            jQuery(window).resize(function(){
                if (jQuery(window).width() <= 768) {
                    jQuery('.with-summary').removeClass('with-summary');
                }
            });
 JosephK's avatar
JosephK committed
23
24
25
26
27
28
29
30
31
32
33
34
            // Popovers
            for (var k in d$.f) {
                if(d$.f[k].doc != undefined) {
                    jQuery('.page-inner a[href*="'+d$.f[k].doc.replace(window.location.href,'').replace('/','')+'"]')
                       .popover({
                           'content':d$.f[k].d1,
                           'title':d$.f[k].t1,
                           'trigger':'hover',
                           'placement':'top'
                        });
                }
            }
 JosephK's avatar
JosephK committed
35
        }, 1000)}
36
37
38
39
      },
      mute: true,
      footer: false
    }
40
41
42
43
44
    var script = document.createElement('script');
        script.type = "text/javascript";
        script.src="https://framasoft.org/nav/nav.js";
        document.getElementsByTagName('head')[0].appendChild(script);
    </script>
 JosephK's avatar
JosephK committed
45
{% endblock %}