summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcyfraeviolae <cyfraeviolae>2024-01-19 15:23:31 -0500
committercyfraeviolae <cyfraeviolae>2024-01-19 15:23:31 -0500
commit70f3c68da801bc3509123bad5d25d4f107de7fc2 (patch)
tree24e9e3636ab3705a3027d7dea50234f8cbda466d
parent2bd64a6a85e4f5be272e72ff4996cb319ca6b036 (diff)
fix url
-rw-r--r--index.html4
-rw-r--r--static/script.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/index.html b/index.html
index a028081..6db352d 100644
--- a/index.html
+++ b/index.html
@@ -20,7 +20,7 @@
<p>
The phantasmagoric sorcerer Roseacrucis has bewitched
the Library&rsquo;s revered fine arts collection: each
- painting&rsquo;s color has been randomized. Your task is to recover
+ painting&rsquo;s colors have been randomized. Your task is to recover
the originals.
</p>
<noscript>Sorry, JavaScript is required to play Countervisual.</noscript>
@@ -44,7 +44,7 @@
<script src="/countervisual/static/works.js?a=1"></script>
<script src="/countervisual/static/artists.js?a=1"></script>
<script src="/countervisual/static/manifest.js?a=1"></script>
- <script src="/countervisual/static/script.js?a=1"></script>
+ <script src="/countervisual/static/script.js?a=2"></script>
</body>
</html>
diff --git a/static/script.js b/static/script.js
index 4dfd3c6..b62d034 100644
--- a/static/script.js
+++ b/static/script.js
@@ -204,7 +204,7 @@ document.onload = load();
document.getElementById('score-game').addEventListener('click', function(evt) {
var s = score();
- var imageUrl = location.protocol + '//' + location.host + location.pathname + getImgUrl(globalId)
+ var imageUrl = location.protocol + '//' + location.host + getImgUrl(globalId)
var lensUrl = `https://www.google.com/searchbyimage?image_url=${imageUrl}&client=app`
document.getElementById('scoring').innerHTML = `<p>You were ${s} points away from zero.</p>
<p>This work is by <a target="_blank" href="${lensUrl}">${getArtist(globalId)}</a>.</p>`