Compare commits
No commits in common. "45d28749991e3c671dacd548fd549a4d7007ce3c" and "39bf5861b8704d7f6774406c8a90b524e823f5cd" have entirely different histories.
45d2874999
...
39bf5861b8
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,7 +3,7 @@
|
||||
*.pyc
|
||||
__pycache__/
|
||||
|
||||
|
||||
instance/
|
||||
|
||||
uploads/
|
||||
zip_exports/
|
||||
|
@ -15,9 +15,9 @@ from sqlalchemy.orm import DeclarativeBase
|
||||
import os
|
||||
import csv
|
||||
from zipfile import ZipFile
|
||||
import hashlib
|
||||
|
||||
# activate environment: cd C:\...\...\....\...\Code\SLAEForms Testing\.venv\Scripts\
|
||||
random_order = True
|
||||
# activate environment: cd C:\Users\Jan\Google Drive\Master Stuff\Code\SLAEForms Testing\.venv\Scripts\
|
||||
# then this: activate
|
||||
|
||||
#SETUP--------------------------------------------------
|
||||
@ -41,7 +41,7 @@ app.secret_key = b"29fe9e8edd407c5491d4f1c05632d9fa33e26ed8734a3f5e080ebac3772a5
|
||||
|
||||
UPLOAD_FOLDER = 'uploads'
|
||||
EXPORT_FOLDER = 'exports'
|
||||
PASSWORD = 'd5aff9fc14d1f20f4ccddaa8b4f2c1765228b74ed0b1dfb868bf1064e0d655e2'
|
||||
PASSWORD = '#1ACGmsjd'
|
||||
CONFIGFILE = 'userstudy1.json'
|
||||
# CONFIGFILE = 'test.json'
|
||||
# CONFIGFILE = 'default.json'
|
||||
@ -191,7 +191,6 @@ def startpage():
|
||||
case "single_video":
|
||||
order = list(config[name]["stimuli"]["list"]) # order = list of simuli keys
|
||||
print("order: ",order)
|
||||
if "order" in config[name]["stimuli"]:
|
||||
if config[name]["stimuli"]["order"] == "random":
|
||||
random.shuffle(order) #in random order
|
||||
session["block_order"][name] = order
|
||||
@ -623,10 +622,9 @@ def show_tables():
|
||||
def login():
|
||||
|
||||
if request.method == "POST":
|
||||
pwhash = hashlib.sha256(request.form["password"].encode('utf-8')).hexdigest()
|
||||
if pwhash == PASSWORD:
|
||||
if request.form["password"] == PASSWORD:
|
||||
session["logged_in"] = True
|
||||
return redirect(url_for("all_links"))
|
||||
return redirect("/")
|
||||
|
||||
return render_template("login.html")
|
||||
|
||||
|
@ -262,8 +262,7 @@ step={{question["step"]}}
|
||||
|
||||
{% elif (questions[question]["type"] == "multiplechoice") %}
|
||||
<div class="compressWidth">
|
||||
<p>
|
||||
<div>
|
||||
<label>
|
||||
{{ questions[question]['text']}}
|
||||
|
||||
{% for point in questions[question]["points"] %}
|
||||
@ -273,8 +272,7 @@ step={{question["step"]}}
|
||||
{{ questions[question]['points'][point]['text']}}</label>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
</p>
|
||||
</label>
|
||||
</div>
|
||||
<div class="spacer" aria-hidden="true" style="height:30px"></div>
|
||||
|
||||
|
@ -48,7 +48,7 @@
|
||||
gezeigt.
|
||||
</p>
|
||||
<p>
|
||||
Das Laden der Seiten kann manchmal einige Sekunden dauern. Falls es zu einem Fehler kommen sollte und ein Video nicht geladen wird, versuchen Sie bitte die Seite neu zu laden.
|
||||
Das Laden der Seiten kann manchmal einige Sekunden dauern, bei schlechtem Internet auch länger. Haben sie bitte Geduld. Falls es zu einem Fehler kommt und ein Video nicht geladen wird, versuchen sie die Seite neu zu laden.
|
||||
</p>
|
||||
<p>
|
||||
Für jeden Teil der Studie gibt es ein Video, das die Fragestellung und die Antwortmöglichkeiten in
|
||||
|
@ -21,7 +21,10 @@
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/1017028141?badge=0&autopause=0&player_id=0&app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture; clipboard-write" style="position:absolute;top:0;left:0;width:100%;height:100%;" title="0020-simple"></iframe></div><script src="https://player.vimeo.com/api/player.js"></script>
|
||||
<video controls>
|
||||
<source src="{{ url_for('static', filename='videos/GLEISvariations.mp4') }}" type="video/mp4">
|
||||
</video>
|
||||
|
||||
|
||||
<form class="formlayout" id="question_form" action="{{ url_for('sendpage') }}" method="post">
|
||||
|
||||
|
@ -8,9 +8,9 @@
|
||||
"template": "standard_template.html",
|
||||
"stimuli": {
|
||||
"type": "single_video",
|
||||
"order": "",
|
||||
"order": "random",
|
||||
"list": {
|
||||
"video_1": "platzhalter-video.mp4"
|
||||
"video_1": "videos/platzhalter-video.mp4"
|
||||
},
|
||||
"configuration": {
|
||||
"embed": "no"
|
||||
|
Loading…
Reference in New Issue
Block a user