Skip to content

Commit

Permalink
Merge pull request #74 from stanmart/script-blocks
Browse files Browse the repository at this point in the history
Put scripts in script blocks and css in style blocks
  • Loading branch information
miawlu authored May 11, 2024
2 parents 6aa2d4c + b983ed4 commit de2d86a
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 15 deletions.
10 changes: 6 additions & 4 deletions introduction/Coalitions.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ block head }}
{{ block styles }}
<link rel="stylesheet" href="{{ static 'live_bargaining.css' }}">
{{ endblock }}

Expand Down Expand Up @@ -189,11 +189,13 @@ <h3>Currently accepted proposal </h2>

</div>

<b id="exercises-remaining-text" class="red-highlight">Please complete all exercises before moving to the next page.</b>
{{ next_button }}

<script src="{{ static 'coalitions_demo.js' }}"></script>
{{ endblock }}

<b id="exercises-remaining-text" class="red-highlight">Please complete all exercises before moving to the next page.</b>
{{ block scripts }}

{{ next_button }}
<script src="{{ static 'coalitions_demo.js' }}"></script>

{{ endblock }}
11 changes: 5 additions & 6 deletions introduction/Proposal.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ block head }}
{{ block styles }}
<link rel="stylesheet" href="{{ static 'live_bargaining.css' }}">
{{ endblock }}

Expand Down Expand Up @@ -187,15 +187,14 @@ <h3> Make a proposal </h2>
</table>
</div>

<b id="exercises-remaining-text" class="red-highlight">Please complete all exercises before moving to the next page.</b>
{{ next_button }}

{{ endblock }}

{{ block scripts }}

<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="{{ static 'proposal_demo.js' }}"></script>

<b id="exercises-remaining-text" class="red-highlight">Please complete all exercises before moving to the next page.</b>

{{ next_button }}


{{ endblock }}
5 changes: 4 additions & 1 deletion live_bargaining/Bargain.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ block head }}
{{ block styles }}
<link rel="stylesheet" href="{{ static 'live_bargaining.css' }}">
{{ endblock }}

Expand Down Expand Up @@ -180,6 +180,9 @@ <h3 id="popup-title">Warning</h3>
</div>
</div>

{{ endblock }}

{{ block scripts }}

<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="{{ static 'live_bargaining.js' }}"></script>
Expand Down
6 changes: 5 additions & 1 deletion live_bargaining/BargainingResults.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ block head }}
{{ block styles }}
<link rel="stylesheet" href="{{ static 'live_bargaining.css' }}">
{{ endblock }}

Expand Down Expand Up @@ -62,6 +62,10 @@ <h3>Payment</h3>

{{ next_button }}

{{ endblock }}

{{ block scripts }}

<script src="{{ static 'accept.js' }}"></script>

{{ endblock }}
2 changes: 1 addition & 1 deletion live_bargaining/Info.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ block head }}
{{ block styles }}
<link rel="stylesheet" href="{{ static 'live_bargaining.css' }}">
{{ endblock }}

Expand Down
1 change: 1 addition & 0 deletions sliders/Game.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
{{ endblock }}

{{ block scripts }}

<script src="{{ static 'sliders.js' }}"></script>

{{ endblock }}
2 changes: 1 addition & 1 deletion survey/Completion.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ block head }}
{{ block styles }}
<link rel="stylesheet" href="{{ static 'live_bargaining.css' }}">
{{ endblock }}

Expand Down
6 changes: 5 additions & 1 deletion survey/Questions.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Survey
{{ endblock }}

{{ block head }}
{{ block styles }}
<link rel="stylesheet" href="{{ static 'live_bargaining.css' }}">
{{ endblock }}

Expand Down Expand Up @@ -79,6 +79,10 @@ <h4>Feedback</h4>

{{ next_button}}

{{ endblock }}

{{ block scripts }}

<script src="{{ static 'questions.js' }}"></script>

{{ endblock }}

0 comments on commit de2d86a

Please sign in to comment.