fixed regression at front page if *not* small screen..
This commit is contained in:
parent
fd32482866
commit
66c4a84f10
|
@ -19,8 +19,13 @@ window.addEventListener('scroll', function(e) {
|
||||||
|
|
||||||
window.addEventListener('DOMContentLoaded', (e) => {
|
window.addEventListener('DOMContentLoaded', (e) => {
|
||||||
if (document.querySelector('.syllabusgrid')) {
|
if (document.querySelector('.syllabusgrid')) {
|
||||||
toggle('syllabus/');
|
if (document.querySelector('body').clientWidth > 1024) {
|
||||||
|
document.querySelector('.syllabusgrid').classList.remove('syllabusgrid')
|
||||||
|
} else {
|
||||||
|
toggle('syllabus/');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let par = document.querySelector("#TableOfContents > ol:first-child > li:first-child");
|
let par = document.querySelector("#TableOfContents > ol:first-child > li:first-child");
|
||||||
let s = document.createElement("span");
|
let s = document.createElement("span");
|
||||||
s.appendChild(par.cloneNode(true))
|
s.appendChild(par.cloneNode(true))
|
||||||
|
@ -28,6 +33,7 @@ window.addEventListener('DOMContentLoaded', (e) => {
|
||||||
document.querySelector("#TableOfContents > ol:first-child").insertBefore(s, document.querySelector("#TableOfContents > ol:first-child").firstChild)
|
document.querySelector("#TableOfContents > ol:first-child").insertBefore(s, document.querySelector("#TableOfContents > ol:first-child").firstChild)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
var toggle = function(ts) {
|
var toggle = function(ts) {
|
||||||
let rightcolumn = document.querySelector('.rightcolumn');
|
let rightcolumn = document.querySelector('.rightcolumn');
|
||||||
let grid = document.querySelector('.grid');
|
let grid = document.querySelector('.grid');
|
||||||
|
@ -37,7 +43,6 @@ var toggle = function(ts) {
|
||||||
grid.classList.add('mobilegrid')
|
grid.classList.add('mobilegrid')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (rightcolumn.classList.contains('shown')) {
|
if (rightcolumn.classList.contains('shown')) {
|
||||||
rightcolumn.classList.remove('shown');
|
rightcolumn.classList.remove('shown');
|
||||||
rightcolumn.style.display = "none";
|
rightcolumn.style.display = "none";
|
||||||
|
|
|
@ -435,6 +435,10 @@ body {
|
||||||
display: none
|
display: none
|
||||||
}
|
}
|
||||||
|
|
||||||
|
li {
|
||||||
|
list-style-type: "› ";
|
||||||
|
}
|
||||||
|
|
||||||
.sup {
|
.sup {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
|
@ -689,6 +693,7 @@ h2.nocount:before, h3.nocount:before, h4.nocount:before, h5.nocount:before, h6.n
|
||||||
.content {
|
.content {
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
margin-top: 4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hpar {
|
.hpar {
|
||||||
|
|
Loading…
Reference in New Issue