settings.js 7.52 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 = {

47
  pageTitle: "KNIGHT",
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
    }
  ],

72
  projectLogo: ``,
Athanasios's avatar
Athanasios committed
73

74
  projectName: "KNIGHT",
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: [
    {
93
94
      name: "Prof. Dr.-Ing. Dieter Uckelmann",
      avatar: `https://www.hft-stuttgart.de/fileadmin/Dateien/Profilbilder/_processed_/c/3/csm_Uckelmann-5_def04d7699.jpg`,
Kutzner's avatar
Kutzner committed
95
      email: "dieter.uckelmann@hft-stuttgart.de",
Athanasios's avatar
Athanasios committed
96
97
98
99
      social: [
        {
          agent: "linkedin",
          icon: DEFAULT.social.linkedin.icon,
100
          profile: "https://www.linkedin.com/in/dieter-uckelmann-58aaa93"
101
102
103
104
105
        },
        {
          agent: "webpage",
          icon: DEFAULT.social.webpage.icon,
          profile: "https://www.hft-stuttgart.de/p/dieter-uckelmann"
Athanasios's avatar
Athanasios committed
106
107
        }
      ]
108
    },
109
110
111
112
113
114
    {
      name: "Prof. Dr. Peter Heusch",
      avatar: `https://www.hft-stuttgart.de/fileadmin/Dateien/Profilbilder/_processed_/7/5/csm_Heusch_Peter_Passbild2_00bb878449.jpg`,
      email: "peter.heusch@hft-stuttgart.de",
      social: [
        {
115
116
117
          agent: "webpage",
          icon: DEFAULT.social.webpage.icon,
          profile: "https://www.hft-stuttgart.de/p/peter-heusch"
118
119
120
121
122
123
124
125
126
        }
      ]
    },
    {
      name: "Prof. Dr. Alexander Rausch",
      avatar: `https://www.hft-stuttgart.de/fileadmin/Dateien/Profilbilder/_processed_/1/5/csm_Rausch-Alexander__2__29cbc409b2.jpg`,
      email: "alexander.rausch@hft-stuttgart.de",
      social: [
        {
127
128
129
          agent: "webpage",
          icon: DEFAULT.social.webpage.icon,
          profile: "https://www.hft-stuttgart.de/p/alexander-rausch"
130
131
132
133
134
135
136
137
138
        }
      ]
    },
    {
      name: "Prof. Dr. Ulrike Pado",
      avatar: `https://www.hft-stuttgart.de/fileadmin/Dateien/Profilbilder/_processed_/2/2/csm_Pado-Ulrike__4__5a061080e9.jpg`,
      email: "ulrike.pado@hft-stuttgart.de",
      social: [
        {
139
140
141
          agent: "webpage",
          icon: DEFAULT.social.webpage.icon,
          profile: "https://www.hft-stuttgart.de/p/ulrike-pado"
142
143
144
145
146
147
148
149
150
        }
      ]
    },
    {
      name: "Prof. Dr. Tobias Popovic",
      avatar: `https://www.hft-stuttgart.de/fileadmin/Dateien/Profilbilder/_processed_/0/6/csm_Popovic-Tobias__4__bearbeitet_0cd4ce34b7.jpg`,
      email: "tobias.popovic@hft-stuttgart.de",
      social: [
        {
151
152
153
          agent: "webpage",
          icon: DEFAULT.social.webpage.icon,
          profile: "https://www.hft-stuttgart.de/p/tobias-popovic"
154
155
156
157
158
        }
      ]
    },
    {
      name: "Dr. phil. Diana Arfeli",
159
      avatar: `${BASE_URL}/assets/images/Arfeli.jpg`,
160
161
162
      email: "diana.arfeli@hft-stuttgart.de",
      social: [
        {
163
164
165
          agent: "webpage",
          icon: DEFAULT.social.webpage.icon,
          profile: "https://www.hft-stuttgart.de/p/diana-arfeli"
166
167
168
        }
      ]
    },
169
170
171
172
173
174
    {
      name: "Dipl. Päd. Anke Pfeiffer",
      avatar: `https://www.hft-stuttgart.de/fileadmin/Dateien/Profilbilder/_processed_/e/5/csm_HFT-6_fc9f3f9f3b.jpg`,
      email: "anke.pfeiffer@hft-stuttgart.de",
      social: [
        {
175
176
177
          agent: "webpage",
          icon: DEFAULT.social.webpage.icon,
          profile: "https://www.hft-stuttgart.de/p/anke-pfeiffer"
178
179
180
181
182
183
        }
      ]
    },
    {
      name: "Hadi Adineh",
      avatar: `https://digilab4u.com/wp-content/uploads/2019/12/hadi_adineh_pic_quad.jpg`,
Kutzner's avatar
Kutzner committed
184
      email: "hadi.adineh@hft-stuttgart.de",
185
186
      social: [
        {
187
188
189
          agent: "webpage",
          icon: DEFAULT.social.webpage.icon,
          profile: "https://www.hft-stuttgart.de/p/hadi-adineh"
190
191
192
        }
      ]
    }    
Athanasios's avatar
Athanasios committed
193
194
195
196
  ],

  footerLogos: [
    {
Athanasios's avatar
Athanasios committed
197
      logo: `${BASE_URL}/assets/logos/Logo_M4_LAB.jpg`,
Athanasios's avatar
Athanasios committed
198
199
200
201
      href: EMPTY_LINK,
      title: "M4_LAB"
    },
    {
Athanasios's avatar
Athanasios committed
202
      logo: `${BASE_URL}/assets/logos/logo1.png`,
Athanasios's avatar
Athanasios committed
203
204
205
206
      href: "http://www.innovative-hochschule.de",
      title: "Innovative Hochschule"
    },
    {
Athanasios's avatar
Athanasios committed
207
      logo: `${BASE_URL}/assets/logos/logo2.png`,
Athanasios's avatar
Athanasios committed
208
209
210
211
      href: "https://www.bmbf.de",
      title: "Bundesministerium für Bildung und Forschung"
    },
    {
Athanasios's avatar
Athanasios committed
212
      logo: `${BASE_URL}/assets/logos/logo3.png`,
Athanasios's avatar
Athanasios committed
213
214
215
216
      href: "https://www.gwk-bonn.de",
      title: "Die Gemeinsame Wissenschaftskonferenz"
    }
  ]
217
};