Commit 591aec21 authored by weibel manuel - mweibel's avatar weibel manuel - mweibel
Browse files

Update paul.js

adding edwiser-script for expanding course-sections by url-hash
parent 68f043f2
<script type="text/javascript"> <script type="text/javascript">
// // // // // // // // // //
// Version 2019/09/19 by Voma // Version 2019/10/01 by Wema
// // // // // // // // // //
var headers1 = document.getElementsByTagName('h1'); var headers1 = document.getElementsByTagName('h1');
var headers2 = document.getElementsByTagName('h2'); var headers2 = document.getElementsByTagName('h2');
...@@ -301,4 +301,14 @@ if(location.href.includes("user/index.php?")){ ...@@ -301,4 +301,14 @@ if(location.href.includes("user/index.php?")){
/*document.getElementById('site-navbar-collapse').insertAdjacentHTML('beforeend','<div style="font-size: 9px; color: #D71964; padding-top: 1.5715rem;"><strong>Wartungsfenster: </strong>Heute Abend wird PAUL aktualisiert. Dabei kann es kurzfristig zu Unterbrechungen kommen. LG, PAUL</div>');*/ /*document.getElementById('site-navbar-collapse').insertAdjacentHTML('beforeend','<div style="font-size: 9px; color: #D71964; padding-top: 1.5715rem;"><strong>Wartungsfenster: </strong>Heute Abend wird PAUL aktualisiert. Dabei kann es kurzfristig zu Unterbrechungen kommen. LG, PAUL</div>');*/
/* Wema Ende: Maintenance-Info */ /* Wema Ende: Maintenance-Info */
/* Wema Start: Expand collapsible course-sections by url (from Edwiser) */
if (document.querySelector('body').id == 'page-course-view-remuiformat') {
window.onhashchange = function() {
var elid = window.location.hash;
if (document.querySelector(elid) && document.querySelector(elid).querySelector('.fa-angle-down')) {
document.querySelector(elid).querySelector('.fa-angle-down').click();
}
};
}
/* Wema Ende: Expand collapsible course-sections by url (from Edwiser) */
</script> </script>
Supports Markdown
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