Fix webgazer CDN URLs

This commit is contained in:
bjoluc 2022-11-24 21:37:05 +01:00
parent c8213c8d1b
commit 4533e3d012

View File

@ -10,12 +10,12 @@ The [official version of WebGazer](https://webgazer.cs.brown.edu/#download) is c
You must include the `webgazer.js` file in your experiment via a `<script>` tag. You must include the `webgazer.js` file in your experiment via a `<script>` tag.
However, the `webgazer.js` file is not part of any of the jsPsych NPM packages and is therefore not available via the unpkg.com CDN. However, the `webgazer.js` file is not part of any of the jsPsych NPM packages and is therefore not available via the unpkg.com CDN.
Instead, it can be found on the jsdelivr.net CDN at: "https://cdn.jsdelivr.net/gh/jspsych/jspsych@jspsych@7.1.2/examples/js/webgazer/webgazer.js". Instead, it can be found on the jsdelivr.net CDN at: "https://cdn.jsdelivr.net/gh/jspsych/jspsych@jspsych@7.0.0/examples/js/webgazer/webgazer.js".
```html ```html
<head> <head>
<script src="https://unpkg.com/jspsych@7.3.1"></script> <script src="https://unpkg.com/jspsych@7.3.1"></script>
<script src="https://cdn.jsdelivr.net/gh/jspsych/jspsych@7.1.2/examples/js/webgazer/webgazer.js"></script> <script src="https://cdn.jsdelivr.net/gh/jspsych/jspsych@jspsych@7.0.0/examples/js/webgazer/webgazer.js"></script>
</head> </head>
``` ```
@ -34,7 +34,7 @@ The [webgazer extension](../extensions/webgazer.md) adds functionality to jsPsyc
```html ```html
<head> <head>
<script src="https://unpkg.com/jspsych@7.3.1"></script> <script src="https://unpkg.com/jspsych@7.3.1"></script>
<script src="https://cdn.jsdelivr.net/gh/jspsych/jspsych@7.1.2/examples/js/webgazer/webgazer.js"></script> <script src="https://cdn.jsdelivr.net/gh/jspsych/jspsych@jspsych@7.0.0/examples/js/webgazer/webgazer.js"></script>
<script src="https://unpkg.com/@jspsych/extension-webgazer@1.0.2"></script> <script src="https://unpkg.com/@jspsych/extension-webgazer@1.0.2"></script>
</head> </head>
``` ```
@ -175,7 +175,7 @@ If you have tips based on your own experience please consider sharing them on ou
<script src="https://unpkg.com/@jspsych/plugin-webgazer-init-camera@1.0.2"></script> <script src="https://unpkg.com/@jspsych/plugin-webgazer-init-camera@1.0.2"></script>
<script src="https://unpkg.com/@jspsych/plugin-webgazer-calibrate@1.0.2"></script> <script src="https://unpkg.com/@jspsych/plugin-webgazer-calibrate@1.0.2"></script>
<script src="https://unpkg.com/@jspsych/plugin-webgazer-validate@1.0.2"></script> <script src="https://unpkg.com/@jspsych/plugin-webgazer-validate@1.0.2"></script>
<script src="https://cdn.jsdelivr.net/gh/jspsych/jsPsych@jspsych@7.1.2/examples/js/webgazer/webgazer.js"></script> <script src="https://cdn.jsdelivr.net/gh/jspsych/jspsych@jspsych@7.0.0/examples/js/webgazer/webgazer.js"></script>
<script src="https://unpkg.com/@jspsych/extension-webgazer@1.0.2"></script> <script src="https://unpkg.com/@jspsych/extension-webgazer@1.0.2"></script>
<link <link
rel="stylesheet" rel="stylesheet"