settings.js 2.7 KB
Newer Older
Athanasios's avatar
Athanasios committed
1
const BASE_URL = `${window.location.origin}/${window.location.pathname.split('/').filter((e, i)=>{return i>0 & i<4}).join('/')}`;
Athanasios's avatar
Athanasios committed
2
3
4
5
6
7
const ON = true;
const OFF = false;
const EMPTY_LINK = "javascript:undefined";
const DEFAULT = {
  social: {
    twitter: {
Athanasios's avatar
Athanasios committed
8
      icon: `${BASE_URL}/assets/images/twitter.png`,
Athanasios's avatar
Athanasios committed
9
10
11
      profile: "https://twitter.com/InnolabM4"
    },
    facebook: {
Athanasios's avatar
Athanasios committed
12
      icon: `${BASE_URL}/assets/images/facebook.png`,
Athanasios's avatar
Athanasios committed
13
14
15
      profile: "https://www.facebook.com/HfTStuttgart"
    },
    linkedin: {
Athanasios's avatar
Athanasios committed
16
      icon: `${BASE_URL}/assets/images/linkedin.png`,
Athanasios's avatar
Athanasios committed
17
18
19
      profile: "https://www.linkedin.com/school/hochschule-f%C3%BCr-technik-stuttgart-%E2%80%93-university-of-applied-sciences"
    },
    webpage: {
Athanasios's avatar
Athanasios committed
20
      icon: `${BASE_URL}/assets/images/webpage.png`,
Athanasios's avatar
Athanasios committed
21
22
23
      profile: "https://www.hft-stuttgart.de"
    }
  },
Athanasios's avatar
Athanasios committed
24
25
  avatar: `${BASE_URL}/assets/images/avatar.png`
};
Athanasios's avatar
Athanasios committed
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

let settings = {

  switches: [
    {
      name: "projectName",
      state: OFF
    },
    {
      name: "menu",
      state: OFF
    },
    {
      name: "participants",
      state: ON
    },
    {
      name: "footerLogos",
      state: OFF
    }
  ],

  projectName: "M4_LAB Page Demo",

  menu: [
    {
      menuText: "home",
Koukofikis's avatar
Koukofikis committed
53
      link: `${BASE_URL}/home/`
Athanasios's avatar
Athanasios committed
54
55
56
    },
    {
      menuText: "bio",
Koukofikis's avatar
Koukofikis committed
57
      link: `${BASE_URL}/bio/`
Athanasios's avatar
Athanasios committed
58
59
60
61
62
63
64
65
66
67
    },
    {
      menuText: "demo",
      link: "http://example.com"
    }
  ],

  participants: [
    {
      name: "Charlotte Doe",
Athanasios's avatar
Athanasios committed
68
      avatar: `${BASE_URL}/assets/images/charlotte.jpg`,
Athanasios's avatar
Athanasios committed
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
      email: "charlotte.doe@lalaland.com",
      social: [
        {
          agent: "twitter",
          icon: DEFAULT.social.twitter.icon,
          profile: DEFAULT.social.twitter.profile
        },
        {
          agent: "facebook",
          icon: DEFAULT.social.facebook.icon,
          profile: DEFAULT.social.facebook.profile
        },
        {
          agent: "linkedin",
          icon: DEFAULT.social.linkedin.icon,
          profile: DEFAULT.social.linkedin.profile
        },
        {
          agent: "webpage",
          icon: DEFAULT.social.webpage.icon,
          profile: "http://websiteexample.com"
        }
      ]
    }
  ],

  footerLogos: [
    {
Athanasios's avatar
Athanasios committed
97
      logo: `${BASE_URL}/assets/logos/Logo_M4_LAB.jpg`,
Athanasios's avatar
Athanasios committed
98
99
100
101
      href: EMPTY_LINK,
      title: "M4_LAB"
    },
    {
Athanasios's avatar
Athanasios committed
102
      logo: `${BASE_URL}/assets/logos/logo1.png`,
Athanasios's avatar
Athanasios committed
103
104
105
106
      href: "http://www.innovative-hochschule.de",
      title: "Innovative Hochschule"
    },
    {
Athanasios's avatar
Athanasios committed
107
      logo: `${BASE_URL}/assets/logos/logo2.png`,
Athanasios's avatar
Athanasios committed
108
109
110
111
      href: "https://www.bmbf.de",
      title: "Bundesministerium für Bildung und Forschung"
    },
    {
Athanasios's avatar
Athanasios committed
112
      logo: `${BASE_URL}/assets/logos/logo3.png`,
Athanasios's avatar
Athanasios committed
113
114
115
116
      href: "https://www.gwk-bonn.de",
      title: "Die Gemeinsame Wissenschaftskonferenz"
    }
  ]
Koukofikis's avatar
Koukofikis committed
117
};