-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwelcome.html
122 lines (110 loc) · 4.13 KB
/
welcome.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<head>
<title>Welcome</title>
<link href="//netdna.bootstrapcdn.com/bootswatch/3.0.0/amelia/bootstrap.min.css" rel="stylesheet">
<style>
body {padding-bottom: 180px
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: -moz-none;
-ms-user-select: none;
user-select: none;
i }
.note {
position: absolute;
background-color: gray;
/* height: 150px;*/
width: 200px;
padding: 8px;
border: 1px solid black;
cursor: move;
/* can't select text */
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: -moz-none;
-ms-user-select: none;
user-select: none;
}
</style>
</head>
<body >
{{> accounts}}
{{> header}}
<div class="container">
{{#if currentUser}}
<div class="col-md-offset-8 col-md-4">
<br>
<br>
<br>
{{> name}}
</div>
{{/if}}
</div>
<div style="position: absolute; bottom: 20px; left:20px;">
<h1>welcome.oiu.ch</h1>
{{>stats }}
</div>
</body>
<template name="accounts">
<div class="all" style="width: 100%; height: 100%">
{{#each users}}
{{> user}}
{{/each}}
</div>
</template>
<template name="user">
<div id="{{this._id}}" class="note" style="top: {{profile.top}}px; left: {{profile.left}}px; z-index: {{formatDate createdAt "X"}}">
<p style="width: 100%" class="badge">Hello, I am</p>
<h4 style="text-align: center">{{profile.firstname}} {{profile.lastname}}</h4>
<h4 style="text-align: center">{{#if profile.org}}({{/if}}{{profile.org}}{{#if profile.org}}){{/if}}</h4>
{{emails.[0].address}}<br>
<p>
Arrived at exactly {{formatDate createdAt "HH:mm:ss"}}
</p>
</div>
</template>
<template name="header">
<div class="navbar navbar-inverse navbar-fixed-top" style="z-index: 10000000000">
<div class="container">
<div class="navbar-header" style="width: 100%">
<p class="navbar-text pull-right" style="color: white">
{{> loginButtons align="right"}}
</p>
<p class="navbar-text pull-right" style="font-family: 'Lobster',cursive; font-size: 18px; color: white;">
Present yourself on welcome.oiu.ch <img src="arrow.png">
</p>
</div>
</div>
</div>
</template>
<template name="name">
<form role="form" style="z-index: 10000000000">
<div class="form-group">
<label>Last Name, Nachname, Nom.</label><br>
<input class="form-control" id="lastname" type="text" placeholder="" value="{{currentUser.profile.lastname}}"><br>
<label>First Name, Vorname, Prénom.</label><br>
<input class="form-control" id="firstname" type="text" placeholder="" value="{{currentUser.profile.firstname}}"><br>
<label>Organisation</label><br>
<input class="form-control" id="org" type="text" placeholder="" value="{{currentUser.profile.org}}"><br>
<label>I like to hear ...</label><br>
<select class="form-control" id="language">
<option value="" {{currentLang ""}}>...</option>
<option value="en" {{currentLang "en"}}>English</option>
<option value="de" {{currentLang "de"}}>Deutsch</option>
<option value="fr" {{currentLang "fr"}}>Français</option>
</select><br>
<label>I like most ...</label><br>
<select class="form-control" id="topic">
<option value="" {{currentTopic ""}}>...</option>
<option value="tech" {{currentTopic "tech"}}>to hear about the theoretical and technological stuff.</option>
<option value="hands" {{currentTopic "hands"}}>to get myself dirty with a Hands-On.</option>
<option value="usecase" {{currentTopic "usecase"}}>to learn about stuff looking at real life Use-Cases.</option>
</select>
</div>
</form>
</template>
<template name="stats">
{{countLang "de"}} Deutsch | {{countLang "fr"}} Français | {{countLang "en"}} English of total {{countLang}}<br>
{{countTopic "hands"}} Hands-On | {{countTopic "tech"}} Techies | {{countTopic "usecase"}} Use-Lovers<br>
</template>