Replacing code for old Module & Page Stylers
Updates to Firefox have resulted in Unit Content displaying with duplicated headings. At the time of writing, this is only happening in Firefox. Rather than converting the affected site to the new content styler and all the associated coding please replace the html code of the following items as directed.
Module styler (also LG loader in some units) - edit and replace the html with:
LG-Loader
<div id="lg-loader"> <p>The content in this learning guide is best viewed with a modern web browser.</p> <p><strong>Do not edit this item.</strong></p> <div style="visibility: hidden;"> <p id="courseRole">@X@course.role@X@</p> </div> <p> <script>/*<![CDATA[*/(function(){const c=document.createElement('script');c.src=`https://${window.location.hostname}/bbcswebdav/institution/global-resources/scripts/learningGuideLoader/commons.js`;c.defer=true;c.type ='text/javascript';document.head.appendChild(c);})()/*]]>*/</script> <script>/*<![CDATA[*/(function(){const s=document.createElement('script');s.src=`https://${window.location.hostname}/bbcswebdav/institution/global-resources/scripts/learningGuideLoader/learning_guide.js`;s.defer=true;s.type ='text/javascript';document.head.appendChild(s);})()/*]]>*/</script> <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML" async=""></script> </p> </div>
Page styler – edit and replace the html with:
LP-Loader
<div id="lp-loader"> <p>The content in this learning guide is best viewed with a modern web browser.</p> <p><strong>Do not edit this item.</strong></p> <div style="visibility: hidden;"> <p id="courseRole">@X@course.role@X@</p> </div> <p> <script>/*<![CDATA[*/(function(){const c=document.createElement('script');c.src=`https://${window.location.hostname}/bbcswebdav/institution/global-resources/scripts/learningGuideLoader/commons.js`;c.defer=true;c.type ='text/javascript';document.head.appendChild(c);})()/*]]>*/</script> <script>/*<![CDATA[*/(function(){const s=document.createElement('script');s.src=`https://${window.location.hostname}/bbcswebdav/institution/global-resources/scripts/learningGuideLoader/learning_page.js`;s.defer=true;s.type ='text/javascript';document.head.appendChild(s);})()/*]]>*/</script> <script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?config=TeX-MML-AM_CHTML" async=""></script> </p> </div>