settings.js 6.22 KB
Newer Older
Athanasios's avatar
Athanasios committed
1
2
3
4
5
6
7
8
9
/*
███████╗██╗███╗   ██╗ ██████╗ ███████╗██████╗     ██╗    ██╗███████╗ ██████╗ 
██╔════╝██║████╗  ██║██╔════╝ ██╔════╝██╔══██╗    ██║    ██║██╔════╝██╔════╝ 
█████╗  ██║██╔██╗ ██║██║  ███╗█████╗  ██████╔╝    ██║ █╗ ██║█████╗  ██║  ███╗
██╔══╝  ██║██║╚██╗██║██║   ██║██╔══╝  ██╔══██╗    ██║███╗██║██╔══╝  ██║   ██║
██║     ██║██║ ╚████║╚██████╔╝███████╗██║  ██║    ╚███╔███╔╝███████╗╚██████╔╝
╚═╝     ╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚══════╝╚═╝  ╚═╝     ╚══╝╚══╝ ╚══════╝ ╚═════╝ 
*/

Athanasios's avatar
Athanasios committed
10
const BASE_URL = `${window.location.origin}/${window.location.pathname.split('/').filter((e, i)=>{return i>0 & i<4}).join('/')}`;
Athanasios's avatar
Athanasios committed
11
12
13
14
15
16
const ON = true;
const OFF = false;
const EMPTY_LINK = "javascript:undefined";
const DEFAULT = {
  social: {
    twitter: {
Athanasios's avatar
Athanasios committed
17
      icon: `${BASE_URL}/assets/images/twitter.png`,
Athanasios's avatar
Athanasios committed
18
19
20
      profile: "https://twitter.com/InnolabM4"
    },
    facebook: {
Athanasios's avatar
Athanasios committed
21
      icon: `${BASE_URL}/assets/images/facebook.png`,
Athanasios's avatar
Athanasios committed
22
23
24
      profile: "https://www.facebook.com/HfTStuttgart"
    },
    linkedin: {
Athanasios's avatar
Athanasios committed
25
      icon: `${BASE_URL}/assets/images/linkedin.png`,
Athanasios's avatar
Athanasios committed
26
27
28
      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
29
      icon: `${BASE_URL}/assets/images/webpage.png`,
Athanasios's avatar
Athanasios committed
30
31
32
      profile: "https://www.hft-stuttgart.de"
    }
  },
Athanasios's avatar
Athanasios committed
33
34
  avatar: `${BASE_URL}/assets/images/avatar.png`
};
Athanasios's avatar
Athanasios committed
35

Athanasios's avatar
Athanasios committed
36
37
38
39
40
41
42
43
44
/*
███████╗███████╗████████╗████████╗██╗███╗   ██╗ ██████╗ ███████╗
██╔════╝██╔════╝╚══██╔══╝╚══██╔══╝██║████╗  ██║██╔════╝ ██╔════╝
███████╗█████╗     ██║      ██║   ██║██╔██╗ ██║██║  ███╗███████╗
╚════██║██╔══╝     ██║      ██║   ██║██║╚██╗██║██║   ██║╚════██║
███████║███████╗   ██║      ██║   ██║██║ ╚████║╚██████╔╝███████║
╚══════╝╚══════╝   ╚═╝      ╚═╝   ╚═╝╚═╝  ╚═══╝ ╚═════╝ ╚══════╝
*/

Athanasios's avatar
Athanasios committed
45
46
let settings = {

Myriam Guedey's avatar
Myriam Guedey committed
47
  pageTitle: "ICT4iCity SPBI",
Athanasios's avatar
Athanasios committed
48

Athanasios's avatar
Athanasios committed
49
  switches: [
Athanasios's avatar
Athanasios committed
50
51
52
53
    {
      name: "projectLogo",
      state: ON
    },
Athanasios's avatar
Athanasios committed
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
    {
      name: "projectName",
      state: ON
    },
    {
      name: "menu",
      state: ON
    },
    {
      name: "participants",
      state: ON
    },
    {
      name: "footerLogos",
      state: ON
    }
  ],

Athanasios's avatar
Athanasios committed
72
73
  projectLogo: `${BASE_URL}/assets/logos/M4_LAB_tr.png`,

Myriam Guedey's avatar
Myriam Guedey committed
74
  projectName: "ICT4iCity Smart Public Buildings and Infrastructures",
Athanasios's avatar
Athanasios committed
75

Athanasios's avatar
Athanasios committed
76
77
78
  menu: [
    {
      menuText: "home",
Koukofikis's avatar
Koukofikis committed
79
      link: `${BASE_URL}/home/`
Athanasios's avatar
Athanasios committed
80
81
82
    },
    {
      menuText: "results",
Koukofikis's avatar
Koukofikis committed
83
      link: `${BASE_URL}/results/`
Athanasios's avatar
Athanasios committed
84
85
86
87
88
89
90
91
92
    },
    {
      menuText: "demo",
      link: "http://example.com"
    }
  ],

  participants: [
    {
Myriam Guedey's avatar
Myriam Guedey committed
93
      name: "Prof. Dr.-Ing. Dieter Uckelmann",
Athanasios's avatar
Athanasios committed
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
      avatar: DEFAULT.avatar,
      email: "john.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: "https://johndoe.com"
        }
      ]
    },
    {
Myriam Guedey's avatar
Myriam Guedey committed
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
      name: "Myriam Guedey",
      avatar: `${BASE_URL}/assets/images/charlotte.jpg`,
      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
        }
      ]
    },
Myriam Guedey's avatar
Myriam Guedey committed
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
    {
      name: "Robert Otto",
      avatar: `${BASE_URL}/assets/images/charlotte.jpg`,
      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
        }
      ]
    }
Athanasios's avatar
Athanasios committed
163
164
165
166
  ],

  footerLogos: [
    {
Athanasios's avatar
Athanasios committed
167
      logo: `${BASE_URL}/assets/logos/Logo_M4_LAB.jpg`,
Athanasios's avatar
Athanasios committed
168
169
170
171
      href: EMPTY_LINK,
      title: "M4_LAB"
    },
    {
Athanasios's avatar
Athanasios committed
172
      logo: `${BASE_URL}/assets/logos/logo1.png`,
Athanasios's avatar
Athanasios committed
173
174
175
176
      href: "http://www.innovative-hochschule.de",
      title: "Innovative Hochschule"
    },
    {
Athanasios's avatar
Athanasios committed
177
      logo: `${BASE_URL}/assets/logos/logo2.png`,
Athanasios's avatar
Athanasios committed
178
179
180
181
      href: "https://www.bmbf.de",
      title: "Bundesministerium für Bildung und Forschung"
    },
    {
Athanasios's avatar
Athanasios committed
182
      logo: `${BASE_URL}/assets/logos/logo3.png`,
Athanasios's avatar
Athanasios committed
183
184
185
186
      href: "https://www.gwk-bonn.de",
      title: "Die Gemeinsame Wissenschaftskonferenz"
    }
  ]
Myriam Guedey's avatar
Myriam Guedey committed
187
};