aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorsotech117 <michael_foiani@brown.edu>2024-01-19 17:40:01 -0500
committersotech117 <michael_foiani@brown.edu>2024-01-19 17:40:01 -0500
commit9f89416085ec94b816e957f456eeec48c046f7c6 (patch)
tree8b9cd6971544abd5390546586d6da81589982bc2 /index.html
parent0c664fddbe65502cd0f7aab6cd82219a350629ba (diff)
update A or B logic for students
Diffstat (limited to 'index.html')
-rw-r--r--index.html8
1 files changed, 6 insertions, 2 deletions
diff --git a/index.html b/index.html
index 0068337..d455b12 100644
--- a/index.html
+++ b/index.html
@@ -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 = () => {