Increase timeout for js loading

This commit is contained in:
Lars Westermann 2019-06-14 19:38:23 +02:00
parent 91175653c6
commit 619b7340bb
Signed by: lars.westermann
GPG key ID: 9D417FA5BB9D5E1D
7 changed files with 21 additions and 21 deletions

View file

@ -259,25 +259,29 @@ class Calendar(calendar: HTMLElement) : View(calendar) {
private fun scrollAllVerticalBy(pixel: Double, scrollBehavior: ScrollBehavior = ScrollBehavior.SMOOTH) {
for (calendarTable in scroll) {
calendarTable.scrollBy(ScrollToOptions(0.0, pixel, scrollBehavior))
calendarTable.scrollTop = calendarTable.scrollTop + pixel
//calendarTable.scrollBy(ScrollToOptions(0.0, pixel, scrollBehavior))
}
}
private fun scrollAllHorizontalBy(pixel: Double, scrollBehavior: ScrollBehavior = ScrollBehavior.SMOOTH) {
for (calendarTable in scroll) {
calendarTable.scrollBy(ScrollToOptions(pixel, 0.0, scrollBehavior))
calendarTable.scrollLeft = calendarTable.scrollLeft + pixel
//calendarTable.scrollBy(ScrollToOptions(pixel, 0.0, scrollBehavior))
}
}
private fun scrollAllVerticalTo(pixel: Double, scrollBehavior: ScrollBehavior = ScrollBehavior.SMOOTH) {
for (calendarTable in scroll) {
calendarTable.scrollTo(ScrollToOptions(0.0, pixel, scrollBehavior))
calendarTable.scrollTop = pixel
//calendarTable.scrollTo(ScrollToOptions(0.0, pixel, scrollBehavior))
}
}
private fun scrollAllHorizontalTo(pixel: Double, scrollBehavior: ScrollBehavior = ScrollBehavior.SMOOTH) {
for (calendarTable in scroll) {
calendarTable.scrollTo(ScrollToOptions(pixel, 0.0, scrollBehavior))
calendarTable.scrollLeft = pixel
//calendarTable.scrollTo(ScrollToOptions(pixel, 0.0, scrollBehavior))
}
}
}

View file

@ -205,7 +205,7 @@
}
&:hover {
background: var(--table-header-color);
background-color: var(--table-header-color);
}
&.disabled {
@ -455,7 +455,7 @@
content: '';
display: block;
position: absolute;
left: 6rem;
left: 4rem;
right: 0;
height: 1px;
border-bottom: solid 1px var(--primary-color);
@ -465,7 +465,7 @@
content: '';
display: block;
position: absolute;
left: 6rem;
left: 4rem;
transform: scale(1, 0.5) rotate(-45deg);
transform-origin: bottom;
border-bottom: solid 0.4rem var(--primary-color);

View file

@ -30,19 +30,19 @@
bottom: 1.8em;
height: 0.25rem;
background: transparent;
background-color: transparent;
transition: background-color $transitionTime;
}
&.active::after {
background: var(--text-primary-color);
background-color: var(--text-primary-color);
}
&:hover {
background-color: var(--table-border-color);
&::after {
background: var(--primary-color);
background-color: var(--primary-color);
}
}
}

View file

@ -177,7 +177,7 @@
height: 1px;
left: 0;
right: 0;
background: var(--table-border-color);
background-color: var(--table-border-color);
}
}

View file

@ -66,7 +66,7 @@
.table-select-box {
position: absolute;
z-index: 1;
background: var(--background-primary-color);
background-color: var(--background-primary-color);
width: 10rem;
border: solid 1px var(--input-border-color);
border-radius: $border-radius;
@ -110,7 +110,7 @@
font-weight: bold;
color: var(--primary-text-color);
background: var(--primary-color);
background-color: var(--primary-color);
}
}
@ -134,7 +134,7 @@
display: none;
padding: 0.5rem 0;
background: var(--background-primary-color);
background-color: var(--background-primary-color);
border: solid 1px var(--input-border-color);
border-radius: $border-radius;
@ -190,7 +190,7 @@
font-weight: bold;
color: var(--primary-text-color);
background: var(--primary-color);
background-color: var(--primary-color);
}
}

View file

@ -13,7 +13,7 @@
body, html {
color: var(--text-primary-color);
background: var(--background-secondary-color);
background-color: var(--background-secondary-color);
font-family: $mainFont;
font-weight: 500;
@ -24,10 +24,6 @@ body, html {
padding: 0;
overflow-x: hidden;
& > *:last-child {
//margin-bottom: 1rem;
}
}
h1, h2, h3, h4, h5, h6 {

View file

@ -69,7 +69,7 @@ class MainTemplate(
script {
unsafe {
+"let prefix = '$prefix';\n"
+"require.config({baseUrl: '$prefix/static'});\n"
+"require.config({waitSeconds: 60, baseUrl: '$prefix/static'});\n"
+"require([${Resources.jsModules}]);\n"
}
}