prettify route stages page
This commit is contained in:
parent
7e27ac9274
commit
516c7b82d5
21
main.js
21
main.js
@ -222,6 +222,10 @@
|
||||
return isRouteManagement() && getAction() === "build2"
|
||||
}
|
||||
|
||||
function isRouteStagesPage() {
|
||||
return isRouteManagement() && getAction() === "stages"
|
||||
}
|
||||
|
||||
function isRouteMapPage() {
|
||||
return isRouteManagement() && getAction() === "map"
|
||||
}
|
||||
@ -1471,6 +1475,19 @@
|
||||
document.querySelector(`#content table table tr:nth-child(2) `).remove()
|
||||
}
|
||||
|
||||
function prettifyRouteStagesPage() {
|
||||
let styles = `
|
||||
#content > table tr:nth-child(n + 5):not(:nth-child(7)) {
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
`
|
||||
|
||||
addStylesToHead(styles)
|
||||
}
|
||||
|
||||
let styles = `
|
||||
.sticky-menu {
|
||||
position: sticky;
|
||||
@ -1866,4 +1883,8 @@
|
||||
if (isRouteBuildPage()) {
|
||||
prettifyRouteBuildPage()
|
||||
}
|
||||
|
||||
if (isRouteStagesPage()) {
|
||||
prettifyRouteStagesPage()
|
||||
}
|
||||
})();
|
Loading…
Reference in New Issue
Block a user