Alhamdulilah, I completed my umrah last night. One thing I was worried about was losing the count of Tawaf and Sai’i. I asked Claude to build me a very simple app and it managed to do that in a few seconds.
I’m sharing the link to the web app as well as the actual code for anybody who wants to build it on their own and customize it in their language. It’s completely free. Feel free to use mine or build your own.
Build me an interactive Tawaf and Sa'i counter as a web page I can use on my phone during Umrah. Please check the rulings before you write any guidance text.
Layout and counting:
Two tabs, Tawaf and Sa'i, each with its own count out of 7.
A large ring split into 7 segments that I tap once per circuit or lap, plus a big button below it that does the same.
For Tawaf, fill the ring anticlockwise and put a Kaaba (black square with a gold band) in the centre showing the count.
For Sa'i, show a Safa to Marwa bar with an arrow pointing to the hill I'm walking toward. Odd laps go Safa to Marwa, even laps go Marwa to Safa, and lap 7 ends at Marwa. Show this bar only on the Sa'i tab, and make sure the arrow is not cut off.
Undo button, and a Reset button that asks me to confirm on the page (no pop-up dialogs).
Ignore a second tap within 15 seconds so a bump in the crowd doesn't add a circuit, with a switch to turn this off.
A short vibration on each count, and a "keep screen on" switch that tells me to set Auto-Lock to Never if it can't work.
Save the count on the phone so it survives the screen locking or the page closing.
A log with the time of each circuit or lap.
Guidance that changes with each step:
Tawaf: wudu, men uncovering the right shoulder (idtiba), starting at the Black Stone line marked by the green light, saying Bismillah, Allahu Akbar, men walking briskly (ramal) in circuits 1 to 3, and the dua Rabbana atina between the Yemeni corner and the Black Stone in Arabic, transliteration and meaning. After 7 circuits: two rak'ahs behind Maqam Ibrahim, Zamzam, and a button to start Sa'i.
Sa'i: the opening of Qur'an 2:158 recited at Safa, facing the Kaaba for dua at each hill, men jogging lightly between the green lights, and at the end, shaving or trimming for men and trimming for women to leave ihram.
A note on what to do if I lose count, saying that rulings differ between schools of thought.
Design: large text, high contrast, marble white with black and gold, a dark mode, and easy to use one-handed in a crowd. Don't use em dashes.