To find out how many classes you did at a studio do the following:
- Log in to the studio Mind Body Portal by navigating to https://clients.mindbodyonline.com/ASP/su1.asp?studioid=47475
- Visit your visit history by navigating to https://clients.mindbodyonline.com/ASP/my_vh.asp
- Open the console in your web browser. You can do that in Chrome
on Windows by pressing
Ctrl + Shift + J
simultaneously (orCmd + Opt + J
for macs). For Firefox the keyboard shortcuts areCtrl + Shift + K
andCmd + Opt + K
respectively. - Copy and paste the following code, it counts all the table rows for classes this year.
Array.apply(null, Array($('.myInfoTable tr').length)).map(function (_, i) {return i;}).reduce(function(p, c) { return /2016/.test($((".myInfoTable tr:nth-child(" + c + ")")).text()) ? p + 1 : p }, 0);
when you're done your screen should look something like this. This year I've taken 106 classes at Bikram Centennial. Big thanks to all of you!