forked from MapComplete/MapComplete
Fixes to personal layout
This commit is contained in:
parent
9bdfd73db4
commit
9409f20bca
5 changed files with 31 additions and 11 deletions
14
index.ts
14
index.ts
|
@ -7,11 +7,10 @@ import {UIEventSource} from "./Logic/UIEventSource";
|
|||
import * as $ from "jquery";
|
||||
import {FromJSON} from "./Customizations/JSON/FromJSON";
|
||||
import {TagRendering} from "./UI/TagRendering";
|
||||
import {State} from "./State";
|
||||
|
||||
TagRendering.injectFunction();
|
||||
|
||||
|
||||
let defaultLayout = "buurtnatuur"
|
||||
// --------------------- Special actions based on the parameters -----------------
|
||||
// @ts-ignore
|
||||
if (location.href.startsWith("http://buurtnatuur.be")) {
|
||||
|
@ -20,6 +19,15 @@ if (location.href.startsWith("http://buurtnatuur.be")) {
|
|||
}
|
||||
|
||||
|
||||
if (location.href.indexOf("buurtnatuur.be") >= 0) {
|
||||
defaultLayout = "buurtnatuur"
|
||||
}
|
||||
|
||||
if(location.href.indexOf("pietervdvn.github.io") >= 0){
|
||||
defaultLayout = "bookcases"
|
||||
}
|
||||
|
||||
|
||||
|
||||
let testing: UIEventSource<string>;
|
||||
if (location.hostname === "localhost" || location.hostname === "127.0.0.1") {
|
||||
|
@ -36,7 +44,7 @@ if (location.hostname === "localhost" || location.hostname === "127.0.0.1") {
|
|||
|
||||
// ----------------- SELECT THE RIGHT QUESTSET -----------------
|
||||
|
||||
let defaultLayout = "buurtnatuur"
|
||||
|
||||
|
||||
const path = window.location.pathname.split("/").slice(-1)[0];
|
||||
if (path !== "index.html" && path !== "") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue