aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorElizabeth <elizabeth_c_wu@brown.edu>2024-01-19 17:41:59 -0500
committerElizabeth <elizabeth_c_wu@brown.edu>2024-01-19 17:41:59 -0500
commitaba9098f0d58157ee22dac37c29a39640a1239c8 (patch)
tree3fd9dbdb329f769048f0a5d62327d3913df46019 /index.html
parente65d62e86cb4897528e96b1347b3a23debcf4e3d (diff)
parent9f89416085ec94b816e957f456eeec48c046f7c6 (diff)
location landing change
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 = () => {