Skip to content
Snippets Groups Projects
Commit 73c1ced1 authored by DELARUELLE Myriam's avatar DELARUELLE Myriam
Browse files

fix for numoc and quiz: the navigation block is now displayed

parent e1aa82ec
No related branches found
No related tags found
No related merge requests found
......@@ -15,11 +15,18 @@
"#page-footer",
"#nav-drawer",
".drawer.drawer-left",
".drawer-toggles",
".secondary-navigation",
"#theme_boost-drawers-courseindex",
"#theme_boost-drawers-blocks"
".drawer-left-toggle",
".activity-navigation"
];
if(!e.target.dataset.iframe || !e.target.dataset.iframe.includes("mod/quiz/")){
console.log("on est pas dans le quiz");
to_hide.push("#theme_boost-drawers-blocks");
to_hide.push(".drawer-toggles");
}
iframes=document.getElementsByClassName('iena-iframe');
for(var j=0; j<iframes.length; j++){
iframes[j].addEventListener("load", function(e) {
......@@ -31,12 +38,22 @@
}
}
iframe.querySelector('#page').setAttribute('class', '');
iframe.querySelector('#page').style.margin = 0;
if(!iframe["URL"] || !iframe["URL"].includes("mod/quiz/")){
iframe.querySelector('#page').style.margin = 0;
}
else{
iframe.querySelector('#page').style.marginTop = 0;
}
iframe.querySelector('#page-wrapper').setAttribute('class', 'no-after');
iframe.querySelector('#page-content').setAttribute('class', 'no-margin-l-r');
iframe.querySelector('#region-main-box').style.padding = 0;
iframe.querySelector('#region-main').style.border = "none";
iframe.querySelector('#topofscroll').style.maxWidth="100%";
iframe.querySelector('#page').style.paddingLeft=0;
iframe.body.style.marginLeft = 0;
});
......
......@@ -8,6 +8,7 @@
.iena-filter-modal .modal-body {
height: 80vh;
padding: 0;
margin:0 55px;
}
.iena-filter-modal iframe {
width: 100%;
......@@ -23,6 +24,14 @@
color: #ffffff;
font-size: 3rem;*/
}
.iena-filter-modal #page{
padding: 0;
}
.iena-filter-modal #page .drawers{
margin-top: 0 !important;
}
.none-hidden {
display: none;
......@@ -36,3 +45,7 @@
margin-left: 0;
margin-right: 0;
}
.iframe-quiz-iena{
padding-left: 0;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment