Bugfixes und Inhalte/Texte anpassen für Demo
This commit is contained in:
parent
18ec49903b
commit
11f051c7d9
@ -181,6 +181,7 @@ def startpage():
|
||||
print(session["block_names"])
|
||||
|
||||
for name in block_names:
|
||||
print("block: ",name)
|
||||
if config[name]["type"] == "TaskTemplate" and ("stimuli" in current_block):
|
||||
match config[name]["stimuli"]["type"]:
|
||||
case "single_video":
|
||||
@ -191,9 +192,9 @@ def startpage():
|
||||
session["block_order"][name] = order
|
||||
case "double_video":
|
||||
order = [] # order = list of stimuli keys
|
||||
list_1 = list(current_block["stimuli"]["list_1"])
|
||||
list_2 = list(current_block["stimuli"]["list_2"])
|
||||
for i in range(len(list(current_block["stimuli"]["list_1"]))):
|
||||
list_1 = list(config[name]["stimuli"]["list_1"])
|
||||
list_2 = list(config[name]["stimuli"]["list_2"])
|
||||
for i in range(len(list(config[name]["stimuli"]["list_1"]))):
|
||||
order.append((list_1[i], list_2[i]))
|
||||
print("order: ",order)
|
||||
#TODO random is not implemented here
|
||||
@ -424,7 +425,7 @@ def update_session():
|
||||
session["current_block_name"] = session["block_names"][session["current_block_index"]]
|
||||
session["current_stimulus_index"] = 0
|
||||
if "stimuli" in config[session["current_block_name"]]:
|
||||
session["number_of_stimuli"] = len(list(config[session["current_block_name"]]["stimuli"]["list"]))
|
||||
session["number_of_stimuli"] = len(session["block_order"][session["current_block_name"]])
|
||||
|
||||
else:
|
||||
# if there arent any stimuli, go to the next block
|
||||
|
@ -1,60 +1,4 @@
|
||||
{
|
||||
"Block 0": {
|
||||
"type": "TaskTemplate",
|
||||
"tempalte": "standard_template.html",
|
||||
"stimuli": {
|
||||
"type": "double_video",
|
||||
"list_1": {
|
||||
"video_1": "https://www.youtube-nocookie.com/embed/IqGVT1q1PtM?si=kel7ZWEQl3h-h522",
|
||||
"video_2": "https://www.youtube-nocookie.com/embed/g9KA72jN5SM?si=O7dfqTXdFCCAScJ-"
|
||||
},
|
||||
"list_2": {
|
||||
"video_2": "https://www.youtube-nocookie.com/embed/g9KA72jN5SM?si=O7dfqTXdFCCAScJ-",
|
||||
"video_1": "https://www.youtube-nocookie.com/embed/IqGVT1q1PtM?si=kel7ZWEQl3h-h522"
|
||||
},
|
||||
"configuration": {
|
||||
"embed": "yt"
|
||||
}
|
||||
},
|
||||
"questions": {
|
||||
"question1": {
|
||||
"type": "likert",
|
||||
"name": "likertscale",
|
||||
"text": "How would you rate this video?",
|
||||
"required": "true",
|
||||
"points": {
|
||||
"p1": {
|
||||
"value": "1",
|
||||
"text": "I dont like it at all"
|
||||
},
|
||||
"p2": {
|
||||
"value": "2",
|
||||
"text": "I am indifferent"
|
||||
},
|
||||
"p3": {
|
||||
"value": "3",
|
||||
"text": "I like it a lot"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"infovideo": {
|
||||
"videourl": "https://www.youtube-nocookie.com/embed/F_w50c5Us3Y?si=-H07MmQ4lYOC2Bwh",
|
||||
"infotext": "Hier wird in Zukunft ein Erklärtext stehen, in dem die Fragestellungen erklärt werden. Dazu werden alle Fragen der Seite einzeln durchgegangen und einfach erklärt. Zum Beispiel wird hier erklärt, dass man um Feedback zu geben, ein Video aufnehmen kann. Dazu drückt man auf den Knopf mit dem Videokamera Symbol. Danach muss man oben links am Browser bestätigen, dass der Browser auf die Kamera zugreifen darf.",
|
||||
"configuration": {
|
||||
"embed": "yt"
|
||||
}
|
||||
},
|
||||
"database_table": {
|
||||
"table_name": "double_video_responses",
|
||||
"fields": {
|
||||
"likertscale": {
|
||||
"type": "integer",
|
||||
"nullable": "false"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Block 1": {
|
||||
"type": "TaskTemplate",
|
||||
"tempalte": "standard_template.html",
|
||||
@ -216,41 +160,41 @@
|
||||
"question1": {
|
||||
"type": "likert",
|
||||
"name": "likertscale",
|
||||
"text": "How would you rate this video?",
|
||||
"text": "Wie würden sie dieses Video bewerten?",
|
||||
"required": "true",
|
||||
"points": {
|
||||
"p1": {
|
||||
"value": "1",
|
||||
"text": "I dont like it at all"
|
||||
"text": "Ich finde es gar nicht gut 🙁👎"
|
||||
},
|
||||
"p2": {
|
||||
"value": "2",
|
||||
"text": "I dont like it"
|
||||
"text": "Ich finde es nicht gut 👎"
|
||||
},
|
||||
"p3": {
|
||||
"value": "3",
|
||||
"text": "I am indifferent"
|
||||
"text": "Ich finde es weder gut noch schlecht"
|
||||
},
|
||||
"p4": {
|
||||
"value": "4",
|
||||
"text": "I like it"
|
||||
"text": "Ich finde es gut 👍"
|
||||
},
|
||||
"p5": {
|
||||
"value": "5",
|
||||
"text": "I like it a lot"
|
||||
"text": "Ich finde es sehr gut 😊👍"
|
||||
}
|
||||
}
|
||||
},
|
||||
"question2": {
|
||||
"type": "textinput",
|
||||
"name": "text_feedback",
|
||||
"text": "Here you can give us Feedback",
|
||||
"text": "Hier können sie uns Feedback geben",
|
||||
"required": "false",
|
||||
"size": "250"
|
||||
},
|
||||
"question3": {
|
||||
"type": "videoinput",
|
||||
"text": "Here you can give us Feedback as video",
|
||||
"text": "Hier können sie per Video Feedback geben",
|
||||
"name": "video_feedback",
|
||||
"required": "false"
|
||||
}
|
||||
@ -281,5 +225,97 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Block 3": {
|
||||
"type": "TaskTemplate",
|
||||
"tempalte": "standard_template.html",
|
||||
"stimuli": {
|
||||
"type": "double_video",
|
||||
"list_1": {
|
||||
"video_1": "https://www.youtube-nocookie.com/embed/IqGVT1q1PtM?si=kel7ZWEQl3h-h522",
|
||||
"video_2": "https://www.youtube-nocookie.com/embed/g9KA72jN5SM?si=O7dfqTXdFCCAScJ-"
|
||||
},
|
||||
"list_2": {
|
||||
"video_2": "https://www.youtube-nocookie.com/embed/g9KA72jN5SM?si=O7dfqTXdFCCAScJ-",
|
||||
"video_1": "https://www.youtube-nocookie.com/embed/IqGVT1q1PtM?si=kel7ZWEQl3h-h522"
|
||||
},
|
||||
"configuration": {
|
||||
"embed": "yt"
|
||||
}
|
||||
},
|
||||
"questions": {
|
||||
"question1": {
|
||||
"type": "likert",
|
||||
"name": "likertscale",
|
||||
"text": "Welches Video gefällt ihnen besser?",
|
||||
"required": "true",
|
||||
"points": {
|
||||
"p1": {
|
||||
"value": "1",
|
||||
"text": "Ich finde das linke Video besser"
|
||||
},
|
||||
"p2": {
|
||||
"value": "2",
|
||||
"text": "Ich finde beide Videos gleich gut"
|
||||
},
|
||||
"p3": {
|
||||
"value": "3",
|
||||
"text": "Ich finde das rechte Video besser"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"infovideo": {
|
||||
"videourl": "https://www.youtube-nocookie.com/embed/F_w50c5Us3Y?si=-H07MmQ4lYOC2Bwh",
|
||||
"infotext": "Hier wird in Zukunft ein Erklärtext stehen, in dem die Fragestellungen erklärt werden. Dazu werden alle Fragen der Seite einzeln durchgegangen und einfach erklärt. Zum Beispiel wird hier erklärt, dass man um Feedback zu geben, ein Video aufnehmen kann. Dazu drückt man auf den Knopf mit dem Videokamera Symbol. Danach muss man oben links am Browser bestätigen, dass der Browser auf die Kamera zugreifen darf.",
|
||||
"configuration": {
|
||||
"embed": "yt"
|
||||
}
|
||||
},
|
||||
"database_table": {
|
||||
"table_name": "double_video_responses",
|
||||
"fields": {
|
||||
"likertscale": {
|
||||
"type": "integer",
|
||||
"nullable": "false"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Block 4": {
|
||||
"type": "TaskTemplate",
|
||||
"tempalte": "standard_template.html",
|
||||
"stimuli": {
|
||||
"type": "empty",
|
||||
"list": {
|
||||
"empty_stimulus": ""
|
||||
}
|
||||
},
|
||||
"questions": {
|
||||
"question1": {
|
||||
"type": "textinput",
|
||||
"name": "formfeedback",
|
||||
"text": "Das war der Prototyp für dieses Studientool. Über Feedback würde ich mich freuen. Entweder hier oder per Email unter: jan.dickmann@web.de",
|
||||
"required": "false",
|
||||
"size": "1000"
|
||||
}
|
||||
},
|
||||
"infovideo": {
|
||||
"videourl": "https://www.youtube-nocookie.com/embed/F_w50c5Us3Y?si=-H07MmQ4lYOC2Bwh",
|
||||
"infotext": "Hier wird in Zukunft ein Erklärtext stehen, in dem die Fragestellungen erklärt werden. Dazu werden alle Fragen der Seite einzeln durchgegangen und einfach erklärt. Zum Beispiel wird hier erklärt, dass man um Feedback zu geben, ein Video aufnehmen kann. Dazu drückt man auf den Knopf mit dem Videokamera Symbol. Danach muss man oben links am Browser bestätigen, dass der Browser auf die Kamera zugreifen darf.",
|
||||
"configuration": {
|
||||
"embed": "yt"
|
||||
}
|
||||
},
|
||||
"database_table": {
|
||||
"table_name": "feedback_responses",
|
||||
"fields": {
|
||||
"formfeedback": {
|
||||
"type": "string",
|
||||
"size": "1000",
|
||||
"nullable": "true"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -95,7 +95,6 @@ dialog .iframe-container {
|
||||
|
||||
.textblock {
|
||||
width: 60%;
|
||||
display: flex;
|
||||
margin: auto;
|
||||
text-align: left;
|
||||
}
|
||||
|
@ -9,13 +9,11 @@
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<h2>Thank you for participating in our study!</h2>
|
||||
<h2>Danke für ihre Teilnahme!</h2>
|
||||
|
||||
<div class="textblock">
|
||||
<p>
|
||||
If you liked this study, we would be grateful if you share it and invite other people to also participate.
|
||||
Anyone with some level of sign language understanding can participate.
|
||||
If you have further questions, please send an email to testemail@notarealemail.deee
|
||||
Falls sie noch Fragen oder Rückmeldungen haben, schreiben sie mir unter: jan.dickmann@web.de
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -81,7 +81,7 @@ step={{question["step"]}}
|
||||
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='styles.css')}}" />
|
||||
<!-- styles.css {{ url_for('static', filename='styles.css')}}-->
|
||||
<title>Testform</title>
|
||||
<link rel=" shortcut icon" href="{{ url_for('static/icons', filename='favicon.ico') }}">
|
||||
<link rel=" shortcut icon" href="{{ url_for('static', filename='icons/favicon.ico') }}">
|
||||
<script>const ICON_PATHS = {
|
||||
cameraofficon: "{{ url_for('static', filename='icons/camera-off-icon.png') }}",
|
||||
cameraicon: "{{ url_for('static', filename='icons/camera-icon.png') }}",
|
||||
@ -194,7 +194,6 @@ step={{question["step"]}}
|
||||
|
||||
{% elif (questions[question]["type"] == "videoinput") %}
|
||||
<div class="spacer" aria-hidden="true" style="height:30px"></div>
|
||||
<h2>Gib Feedback als Video</h2>
|
||||
<h3>{{ questions[question]['text']}}</h3>
|
||||
|
||||
<div class="centertext">
|
||||
|
@ -9,16 +9,28 @@
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<h2>Hello! Thank you for participating in our study!</h2>
|
||||
<h2>Hallo! Danke, dass sie bei dieser Studie teilnehmen!</h2>
|
||||
|
||||
<div class="textblock">
|
||||
<p>This is a placeholder EULA and Terms and Condition Text, this should obviously be replaced with some real Text later.
|
||||
For now, be aware that this is a prototype for a sign language avatar study.
|
||||
The Data that you input in this form, will be saved on our servers, but in an annonimized ways, so we can not infer who sent this data.
|
||||
The Video recordings pose a special case. Any videos that are recorded, will be reviewed by sign language experts in our team,
|
||||
the meaning will be transcribed in text form, then the video will be deleted.
|
||||
If you have further questions, please send an email to testemail@notarealemail.deee
|
||||
<p>
|
||||
Wilkommen bei dieser Prototyp Seite für eine Gebärdensprach-Avatar Studie.
|
||||
</p>
|
||||
<p>
|
||||
Dieses Projekt ist noch in Arbeit und nicht fertiggestellt. Es soll die bisher implementierten Funktionen zeigen und wurde nur zu Präsentationszwecken und um Feedback zu sammeln online gestellt.
|
||||
</p>
|
||||
<p>
|
||||
Das Ziel dieses Projekt ist, es Wissenschaftlern (und anderen) zu ermöglichen relativ einfach online Studien zu erstellen, die auf die besonderen Anforderungen von Gehörlosen Studienteilnehmern abgestimmt sind.
|
||||
Dazu zählt insbesondere die Möglichkeit Videos aufnehmen zu können um Feedback zu geben, und das Einbinden von Videos die Fragen und Aufgabenstellungen in Gebärdensprache erklären sollen.
|
||||
In diesem Prototyp finden sich aktuell aber nur Platzhaltervideos. Keine der Inhalte sind bereits Teil einer echten Studie.
|
||||
</p>
|
||||
<p>
|
||||
Wenn sie den Prototyp verwenden und dabei Eingaben machen oder Videos hochladen, sind diese auf dem Server gespeichert. Die Daten werden nach der Testphase gelöscht und können bis dahin nur von dem Admin eingesehen werden.
|
||||
Wenn sie eingegebene oder hochgeladene Daten löschen wollen, wenden sie sich bitte an den Admin unter: jan.dickmann@web.de
|
||||
</p>
|
||||
<p>
|
||||
Auch bei sonstigen Fragen, wenden sie sich bitte an: jan.dickmann@web.de
|
||||
</p>
|
||||
|
||||
</div>
|
||||
<form class="dsgvoform" action="http://localhost:5000/start" method="post">
|
||||
<label for="terms-and-conditions">
|
||||
|
Loading…
Reference in New Issue
Block a user