Add splash image
This commit is contained in:
parent
aa80bd528b
commit
4ea179b76d
2 changed files with 36 additions and 12 deletions
46
index.html
46
index.html
File diff suppressed because one or more lines are too long
2
index.ts
2
index.ts
|
@ -65,7 +65,7 @@ defaultLayout = QueryParameters.GetQueryParameter("layout", defaultLayout).data;
|
||||||
const layoutToUse: Layout = AllKnownLayouts.allSets[defaultLayout] ?? AllKnownLayouts["all"];
|
const layoutToUse: Layout = AllKnownLayouts.allSets[defaultLayout] ?? AllKnownLayouts["all"];
|
||||||
if (layoutToUse === undefined) {
|
if (layoutToUse === undefined) {
|
||||||
console.log("Incorrect layout")
|
console.log("Incorrect layout")
|
||||||
new FixedUiElement("Error: incorrect layout " + defaultLayout + "<a href='https://pietervdvn.github.io/MapComplete/index.html'>Go to MapComplete</a>").AttachTo("centermessage").onClick(() => {
|
new FixedUiElement("Error: incorrect layout <i>" + defaultLayout + "</i><br/><a href='https://pietervdvn.github.io/MapComplete/index.html'>Go back</a>").AttachTo("centermessage").onClick(() => {
|
||||||
});
|
});
|
||||||
throw "Incorrect layout"
|
throw "Incorrect layout"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue