diff options
author | sotech117 <michael_foiani@brown.edu> | 2024-01-19 17:40:01 -0500 |
---|---|---|
committer | sotech117 <michael_foiani@brown.edu> | 2024-01-19 17:40:01 -0500 |
commit | 9f89416085ec94b816e957f456eeec48c046f7c6 (patch) | |
tree | 8b9cd6971544abd5390546586d6da81589982bc2 /index.html | |
parent | 0c664fddbe65502cd0f7aab6cd82219a350629ba (diff) |
update A or B logic for students
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -4,7 +4,7 @@ <meta charset="UTF-8"> <title>cs1300 AB Testing</title> - <script src="download-utils.js"></script> + <script src="download-utils.js" defer></script> <script defer> // redirect user to either A or B, on click of start button const redirectAB = () => { @@ -15,7 +15,11 @@ localStorage.setItem("cs1300-ab-testing-data", JSON.stringify([])); } - location.href = Math.random() > .5 ? "a.html" : "b.html"; + // location.href = "a.html"; // NOTE: FOR TAs, uncomment this and comment the next line. + location.href = "b.html"; // students only use B. + + // normally, you'd use the following line in a "true" AB test: + // location.href = Math.random() > .5 ? "a.html" : "b.html"; }; const downloadAB = () => { |