Skip to content

Commit

Permalink
Fix malformed HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamrick committed Aug 19, 2014
1 parent 15b6316 commit 8ba2552
Show file tree
Hide file tree
Showing 15 changed files with 73 additions and 61 deletions.
14 changes: 8 additions & 6 deletions psiturk/example/templates/ad.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<!--
The ad.html has a very specific format.
Expand All @@ -19,9 +19,10 @@
-->
<html>
<head>
<meta charset="utf-8" />
<title>Psychology Experiment</title>
<link rel=stylesheet href="/static/css/bootstrap.min.css" type="text/css">
<style>
<link rel="stylesheet" href="/static/css/bootstrap.min.css" type="text/css" />
<style type="text/css">
/* these tyles need to be defined locally */
body {
padding:0px;
Expand Down Expand Up @@ -112,7 +113,7 @@ <h1>Thank you for accepting this HIT!</h1>
By clicking the following URL link, you will be taken to the experiment,
including complete instructions and an informed consent agreement.
</p>
<script>
<script type="text/javascript">
function openwindow() {
popup = window.open('{{ server_location }}/consent?hitId={{ hitid }}&assignmentId={{ assignmentid }}&workerId={{ workerid }}','Popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width='+1024+',height='+768+'');
}
Expand All @@ -131,7 +132,8 @@ <h1>Thank you for accepting this HIT!</h1>
endif
-->
</div>
</div>
</div>
</div>
</div>
</body>
</html>
</html>
12 changes: 7 additions & 5 deletions psiturk/example/templates/complete.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<!doctype html>
<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8" />
<title>Psychology Experiment</title>
<link rel=stylesheet href="/static/css/bootstrap.min.css" type="text/css">
<link rel=stylesheet href="/static/css/style.css" type="text/css">
<link rel="stylesheet" href="/static/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/static/css/style.css" type="text/css" />
</head>
<body>
<div id="container-ad">
Expand All @@ -17,12 +18,13 @@
</div>
<div class="col-xs-10">
<h1>Debugging task complete!</h1>
<hr>
<hr />
<div class="alert alert-warning">
If this was a real hit, the data would be saved now and the HIT submitted to AMT.
</div>
</div>
</div>
</div>
</div>
</body>
</html>
</html>
13 changes: 7 additions & 6 deletions psiturk/example/templates/consent.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<!--
The consent.html displays the text of your IRB-approved
consent form. Even if you are not required to provide
Expand All @@ -8,9 +8,10 @@
-->
<html>
<head>
<meta charset="utf-8" />
<title>Psychology Experiment - Informed Consent Form</title>
<link rel=stylesheet href="/static/css/bootstrap.min.css" type="text/css">
<link rel=stylesheet href="/static/css/style.css" type="text/css">
<link rel="stylesheet" href="/static/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/static/css/style.css" type="text/css" />
<script type="text/javascript">
function onexit() {
self.close(); // no harm, no foul here
Expand All @@ -21,7 +22,7 @@
<div id="container-consent">
<div id="consent">
<h1>We need your consent to proceed</h1>
<hr>
<hr />
<div class="legal well">
<p>
You have been invited to take part in a research study named BLAH BLAH
Expand All @@ -36,9 +37,9 @@ <h1>We need your consent to proceed</h1>
</button>
</div>

<hr>
<hr />
<h4>Do you understand and consent to these terms?</h4>
<br>
<br />

<center>
<button type="button" class="btn btn-primary btn-lg" onClick="window.location='/exp?hitId={{ hitid }}&assignmentId={{ assignmentid }}&workerId={{ workerid }}'">
Expand Down
7 changes: 4 additions & 3 deletions psiturk/example/templates/custom.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<!doctype html>
<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8" />
<title>Custom Routes</title>
<link rel=stylesheet href="/static/css/bootstrap.min.css" type="text/css">
<link rel=stylesheet href="/static/css/style.css" type="text/css" media="screen">
<link rel="stylesheet" href="/static/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/static/css/style.css" type="text/css" media="screen" />
</head>
<body>
<div style="text-align: center;" id="thanks">
Expand Down
7 changes: 4 additions & 3 deletions psiturk/example/templates/debriefing.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<!doctype html>
<!DOCTYPE html>


<html>
<head>
<meta charset="utf-8" />
<title>Debriefing</title>
<link rel="stylesheet" href="/static/css/task.css" type="text/css" media="screen">
<link rel="stylesheet" href="/static/css/task.css" type="text/css" media="screen" />
</head>
<body>
<div id="debriefing">
Expand All @@ -30,7 +31,7 @@ <h1>Debriefing</h1>
est notare quam littera gothica, quam nunc putamus parum claram,
anteposuerit litterarum formas humanitatis per seacula quarta decima et
quinta decima. Eodem modo typi, qui nunc nobis videntur parum clari, fiant
sollemnes in futurum.
sollemnes in futurum.</p>

<p>If you have any questions about this research, you may contact the
principal investigator, Principal Investigator.</p>
Expand Down
12 changes: 7 additions & 5 deletions psiturk/example/templates/default.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<!doctype html>
<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8" />
<title>Psychology Experiment</title>
<link rel=stylesheet href="/static/css/bootstrap.min.css" type="text/css">
<link rel=stylesheet href="/static/css/style.css" type="text/css">
<link rel="stylesheet" href="/static/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/static/css/style.css" type="text/css" />
</head>
<body>
<div id="container-ad">
Expand All @@ -17,12 +18,13 @@
</div>
<div class="col-xs-10">
<h1>Welcome to psiTurk!</h1>
<hr>
<hr />
<div class="alert alert-warning">
Begin by viewing the <a href="/ad">ad</a>.
</div>
</div>
</div>
</div>
</div>
</body>
</html>
</html>
23 changes: 12 additions & 11 deletions psiturk/example/templates/error.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Psychology Experiment - Error</title>
<link rel=stylesheet href="/static/css/bootstrap.min.css" type="text/css">
<link rel=stylesheet href="/static/css/style.css" type="text/css">
<link rel="stylesheet" href="/static/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/static/css/style.css" type="text/css" />
</head>
<body>
<div id="container-error">

<div id="error">
<h1>Sorry, there was an error</h1>
<hr>
<hr />

<div class="alert alert-danger">
{% if errornum == 1008 %}
Expand All @@ -27,7 +28,7 @@ <h1>Sorry, there was an error</h1>

{% else %}

<p>Sorry, there was an unexpected error in our processing of your HIT.<p>
<p>Sorry, there was an unexpected error in our processing of your HIT.</p>

{% endif %}
<p>
Expand All @@ -37,17 +38,17 @@ <h1>Sorry, there was an error</h1>
and send the following information:
</p>
<p>
Error: #{{ errornum }}<br>
{% if hitId %} HITID: #{{ hitId }}<br> {% endif %}
{% if assignId %}AssignmentId: #{{ assignId }}<br> {% endif %}
{% if workerId %} WorkerId: #{{ workerId }}<br> {% endif %}
Error: #{{ errornum }}<br />
{% if hitId %} HITID: #{{ hitId }}<br /> {% endif %}
{% if assignId %}AssignmentId: #{{ assignId }}<br /> {% endif %}
{% if workerId %} WorkerId: #{{ workerId }}<br /> {% endif %}
</p>

</div>

<hr>
<hr />
<h3>Our sincere apologies!</h3>
</div>
</div>
</body>
</html>
</html>
10 changes: 5 additions & 5 deletions psiturk/example/templates/exp.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<!--
The exp.html is the main form that
controls the experiment.
Expand All @@ -7,8 +7,8 @@
-->
<html>
<head>
<meta charset="utf-8" />
<title>Psychology Experiment</title>
<meta charset="utf-8">
<link rel="Favicon" href="/static/favicon.ico" />

<!-- libraries used in your experiment
Expand Down Expand Up @@ -37,15 +37,15 @@
-->
<script src="/static/js/task.js" type="text/javascript"> </script>

<link rel=stylesheet href="/static/css/bootstrap.min.css" type="text/css">
<link rel=stylesheet href="/static/css/style.css" type="text/css">
<link rel="stylesheet" href="/static/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/static/css/style.css" type="text/css" />
</head>
<body>
<noscript>
<h1>Warning: Javascript seems to be disabled</h1>
<p>This website requires that Javascript be enabled on your browser.</p>
<p>Instructions for enabling Javascript in your browser can be found
<a href="http://support.google.com/bin/answer.py?hl=en&answer=23852">here</a><p>
<a href="http://support.google.com/bin/answer.py?hl=en&answer=23852">here</a></p>
</noscript>
</body>
</html>
Expand Down
4 changes: 2 additions & 2 deletions psiturk/example/templates/instructions/instruct-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<h1>Instructions</h1>

<hr>
<hr />

<div class="instructions well">

Expand All @@ -24,7 +24,7 @@ <h1>Instructions</h1>

</div>

<hr>
<hr />


<div class="instructionsnav">
Expand Down
4 changes: 2 additions & 2 deletions psiturk/example/templates/instructions/instruct-2.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<h1>Instructions</h1>

<hr>
<hr />

<div class="instructions well">

Expand All @@ -21,7 +21,7 @@ <h1>Instructions</h1>

</div>

<hr>
<hr />

<div class="instructionsnav">
<div class="row">
Expand Down
4 changes: 2 additions & 2 deletions psiturk/example/templates/instructions/instruct-3.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<h1>Instructions</h1>

<hr>
<hr />

<div class="instructions well">

Expand All @@ -21,7 +21,7 @@ <h1>Instructions</h1>

</div>

<hr>
<hr />

<div class="instructionsnav">
<div class="row">
Expand Down
4 changes: 2 additions & 2 deletions psiturk/example/templates/instructions/instruct-ready.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<h1>Instructions</h1>

<hr>
<hr />

<div class="instructions well">

Expand All @@ -21,7 +21,7 @@ <h1>Instructions</h1>

</div>

<hr>
<hr />

<div class="instructionsnav">
<div class="row">
Expand Down
4 changes: 2 additions & 2 deletions psiturk/example/templates/list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<h1>Here are all your users in the database</h1>

{% for person in participants: %}
{{ person.workerid }} &nbsp; {{ person.ipaddress }}<br>
{{ person.workerid }} &nbsp; {{ person.ipaddress }}<br />

{% endfor %}
{% endfor %}
4 changes: 2 additions & 2 deletions psiturk/example/templates/postquestionnaire.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div id="container-questionnaire">
<h1>Task Complete</h1>

<hr>
<hr />

<p>You are finished! Thank you for your contributions to science. You will be eligible for full payment once you answer the following questions.</p>

Expand Down Expand Up @@ -59,7 +59,7 @@ <h1>Task Complete</h1>
</form>
</div>

<hr>
<hr />

<div class="instructionsnav">
<div class="row">
Expand Down
Loading

0 comments on commit 8ba2552

Please sign in to comment.