Commit adb1bae2 authored by  JosephK's avatar JosephK
Browse files

Fix Bootstrap

parent e34419a8
......@@ -2,44 +2,14 @@
{% block body %}
{{ super() }}
<script type="text/javascript">
var loc = window.location.href+'';
if (loc.indexOf('http://') > -1 && window.location.host.indexOf('framasoft.') > -1){
<script>
const loc = window.location.href+'';
if (/http:\/\//.test(loc) && /framasoft\./.test(window.location.host)){
window.location.href = loc.replace('framasoft.frama.io/docs','docs.framasoft.org').replace('http://','https://');
}
var l$ = {
js: {
j$: 'noConflict',
video : true,
ext: function(){ setTimeout(function() {
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');
}
});
// 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'
});
}
}
}, 1000)}
},
mute: true,
footer: false
}
var script = document.createElement('script');
script.type = "text/javascript";
script.src="https://framasoft.org/nav/nav.js";
document.getElementsByTagName('head')[0].appendChild(script);
const nav = document.createElement('script');
nav.src="https://framasoft.org/nav/nav.js";
document.getElementsByTagName('head')[0].appendChild(nav);
</script>
{% endblock %}
This diff is collapsed.
@import 'bootstrap.min.css';
.book {
height: calc(100% - 42px);
}
......
......@@ -2,44 +2,14 @@
{% block body %}
{{ super() }}
<script type="text/javascript">
var loc = window.location.href+'';
if (loc.indexOf('http://') > -1 && window.location.host.indexOf('framasoft.') > -1){
<script>
const loc = window.location.href+'';
if (/http:\/\//.test(loc) && /framasoft\./.test(window.location.host)){
window.location.href = loc.replace('framasoft.frama.io/docs','docs.framasoft.org').replace('http://','https://');
}
var l$ = {
js: {
j$: 'noConflict',
video : true,
ext: function(){ setTimeout(function() {
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');
}
});
// 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'
});
}
}
}, 1000)}
},
mute: true,
footer: false
}
var script = document.createElement('script');
script.type = "text/javascript";
script.src="https://framasoft.org/nav/nav.js";
document.getElementsByTagName('head')[0].appendChild(script);
const nav = document.createElement('script');
nav.src="https://framasoft.org/nav/nav.js";
document.getElementsByTagName('head')[0].appendChild(nav);
</script>
{% endblock %}
This diff is collapsed.
@import 'bootstrap.min.css';
.book {
height: calc(100% - 42px);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment