Skip to content

Commit

Permalink
#11 Use relative links to static assets so that they're served over h…
Browse files Browse the repository at this point in the history
…ttps
  • Loading branch information
sighmon committed Jun 3, 2024
1 parent 73a3579 commit 73a7cd4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ACMI collection chat</title>
<link href="{{ url_for('static', path='/styles.css') }}" rel="stylesheet">
<link href="static/styles.css" rel="stylesheet">
<meta id="results" data-name="results" data-results="{{results}}">
<meta id="query" data-name="query" data-query="{{query}}">
</head>
Expand All @@ -19,7 +19,7 @@ <h1><a href="/?json=false" title="Take me home">Show me something</a></h1>
<ol id="chats">
</ol>
<audio controls>
<source src="{{ url_for('static', path='/audio/seb-are-you-looking-for-something.mp3') }}" type="audio/mp3">
<source src="static/audio/seb-are-you-looking-for-something.mp3" type="audio/mp3">
</audio>

<h2>or</h2>
Expand All @@ -40,7 +40,7 @@ <h2>or</h2>
<h2>or</h2>

<form>
<input type="submit" value="Let me suggest something for you">
<input type="submit" value="Suggest something">
<input type="hidden" name="json" id="json" value="false">
<input type="hidden" name="random" id="random" value="true">
</form>
Expand All @@ -56,7 +56,7 @@ <h3><a href="https://url.acmi.net.au/w/{{ result.id }}" target="_blank">{{ resul
{% endfor %}
</ul>

<a href="https://www.acmi.net.au"><img class="logo" src="{{ url_for('static', path='/images/acmi-logo.svg') }}" alt="An ACMI labs experiment" title="An ACMI labs experiment" /></a>
<a href="https://www.acmi.net.au"><img class="logo" src="static/images/acmi-logo.svg" alt="An ACMI labs experiment" title="An ACMI labs experiment" /></a>
<p class="disclaimer">All answers are generated by a large language model, {{ model }}, so please use them with caution.</p>

<script>
Expand Down

0 comments on commit 73a7cd4

Please sign in to comment.