-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVonDaniel.html
211 lines (189 loc) · 6.64 KB
/
VonDaniel.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<noscript>
<div style="border: 1px solid red; padding: 10px">
<span style="color: black"
>It seems that JavaScript is not enabled in your browser. The interactive
form (below) won't work without Javascript. If you don't know how to
enable JavaScript in your browser, please visit our website with a
different device (such as your phone).</span
>
</div>
<br />
</noscript>
<script>
// hier gilt ganz normales Javascript (eine App fuer sich)
// die functions von code.gs sind hier unbekannt!
function which(event) {
event.preventDefault()
// hide all links
var allLinks = document.querySelectorAll('.itinerary-link')
allLinks.forEach(function (el) {
el.classList.add('hidden')
})
var choice_topic = 'nichts'
var radios1 = document.getElementsByName('topics')
for (var i = 0, length = radios1.length; i < length; i++) {
if (radios1[i].checked) {
choice_topic = radios1[i].value
}
}
var choice_days = 9
var radios2 = document.getElementsByName('days')
for (var i = 0, length = radios2.length; i < length; i++) {
if (radios2[i].checked) {
// do whatever you want with the checked radio
// only one radio can be logically checked, don't check the rest
choice_days = i + 1
}
}
if (choice_days == 9 || choice_topic == 'nichts') {
return
}
if (choice_days == 1 && choice_topic == 'Jewish') {
// EXAMPLE HOW TO SHOW ONE LINK
// var chosenLink = document.querySelector('ADD THE SELECTOR FOR THE LINK TO SHOW')
var chosenLink = document.querySelector("#itinerary-link-UNIQUE_ID_1")
chosenLink.classList.remove('hidden')
}
if (choice_days == 2 && choice_topic == 'Jewish') {
var chosenLink = document.querySelector("#itinerary-link-UNIQUE_ID_2")
chosenLink.classList.remove('hidden')
}
if (choice_days == 3 && choice_topic == 'Jewish') {
var chosenLink = document.querySelector("#itinerary-link-UNIQUE_ID_3")
chosenLink.classList.remove('hidden')
}
if (choice_days == 1 && choice_topic == 'Equal') {
var chosenLink = document.querySelector("#itinerary-link-UNIQUE_ID_4")
chosenLink.classList.remove('hidden')
}
if (choice_days == 2 && choice_topic == 'Equal') {
var chosenLink = document.querySelector("#itinerary-link-UNIQUE_ID_5")
chosenLink.classList.remove('hidden')
}
if (choice_days == 3 && choice_topic == 'Equal') {
var chosenLink = document.querySelector("#itinerary-link-UNIQUE_ID_6")
chosenLink.classList.remove('hidden')
}
if (choice_days == 1 && choice_topic == 'German') {
var chosenLink = document.querySelector("#itinerary-link-UNIQUE_ID_7")
chosenLink.classList.remove('hidden')
}
if (choice_days == 2 && choice_topic == 'German') {
var chosenLink = document.querySelector("#itinerary-link-UNIQUE_ID_8")
chosenLink.classList.remove('hidden')
}
if (choice_days == 3 && choice_topic == 'German') {
var chosenLink = document.querySelector("#itinerary-link-UNIQUE_ID_9")
chosenLink.classList.remove('hidden')
}
}
</script>
<style>
button {
font-size: 12pt;
}
form {
color: #444444;
background-color: #efebe9;
padding: 20px;
margin-bottom: 0em;
line-height: 25px;
font-size: 11pt;
font-family: Arial, Helvetica, sans-serif;
}
.hidden {
display: none;
}
</style>
<body>
<form
action="#"
onsubmit="return false;"
id="daysForm"
name="daysForm"
method="post"
>
<label for="question1" style="color: #5b4037; font-weight: bold"
>Which of the following statements comes close to your personal fields of
interest?<br
/></label>
<label for="description1" style="font-size: 10pt"
>(in terms of what we should focus on when we tour)<br /><br
/></label>
<input onclick="which()" type="radio" name="topics" value="Jewish" /> Jewish
life and history are significantly more important than the German story<br /><br />
<input onclick="which()" type="radio" name="topics" value="Equal" /> Equally
interested, more or less, in Jewish places and in the German story (most
popular choice)<br /><br />
<input onclick="which()" type="radio" name="topics" value="German" /> The
German story is much more interesting than the Jewish specifics<br /><br />
<hr />
<br />
<label for="question2" style="color: #5b4037; font-weight: bold"
>How many days would you want to tour with us?<br
/></label>
<label for="description2" style="font-size: 10pt"
>(not the total number of days you'll spend in Berlin)<br /><br
/></label>
<input onclick="which()" type="radio" name="days" value="1" /> One day<br /><br />
<input onclick="which()" type="radio" name="days" value="2" /> Two days
(most popular choice)<br /><br />
<input onclick="which()" type="radio" name="days" value="3" /> Three days<br /><br />
<div align=center>
<a
id="itinerary-link-UNIQUE_ID_1"
class="itinerary-link hidden"
href="http://www.BerlinJewish.com/one-day-mostly-jewish"
>Give me a model itinerary!</a
>
<a
id="itinerary-link-UNIQUE_ID_2"
class="itinerary-link hidden"
href="http://www.BerlinJewish.com/two-days-mostly-jewish"
>Give me a model itinerary!</a
>
<a
id="itinerary-link-UNIQUE_ID_3"
class="itinerary-link hidden"
href="http://www.BerlinJewish.com/three-days-mostly-jewish"
>Give me a model itinerary!</a
>
<a
id="itinerary-link-UNIQUE_ID_4"
class="itinerary-link hidden"
href="http://www.BerlinJewish.com/one-day-combined"
>Give me a model itinerary!</a
>
<a
id="itinerary-link-UNIQUE_ID_5"
class="itinerary-link hidden"
href="http://www.BerlinJewish.com/two-days-combined"
>Give me a model itinerary!</a
>
<a
id="itinerary-link-UNIQUE_ID_6"
class="itinerary-link hidden"
href="http://www.BerlinJewish.com/three-days-combined"
>Give me a model itinerary!</a
>
<a
id="itinerary-link-UNIQUE_ID_7"
class="itinerary-link hidden"
href="http://www.BerlinJewish.com/one-day-mostly-german"
>Give me a model itinerary!</a
>
<a
id="itinerary-link-UNIQUE_ID_8"
class="itinerary-link hidden"
href="http://www.BerlinJewish.com/two-days-mostly-german"
>Give me a model itinerary!</a
>
<a
id="itinerary-link-UNIQUE_ID_9"
class="itinerary-link hidden"
href="http://www.BerlinJewish.com/three-days-mostly-german"
>Give me a model itinerary!</a
>
</div>
</form>
</body>