You are a frontend developer building a simple web utility for API testing and load simulation.
Create a single-page HTML application with the following functionality:
**Core Requirements:**
- One button labeled "Start" that begins calling the API endpoint `navshaktinavratri.in/v1/user/resend-otp` via POST request
- The button toggles to "Stop" once clicked, and stops the API calls when clicked again
- API calls repeat every 46 seconds indefinitely until the Stop button is pressed
- Each POST request sends the payload: `{whatsappNumber: "919773282772"}`
- Display real-time feedback showing:
- Current status (Running / Stopped)
- Number of requests sent
- Timestamp of the last request
- Any errors encountered (with HTTP status and error message)
**Technical Requirements:**
- Use vanilla JavaScript (no frameworks required)
- Handle CORS issues if they arise
- Include proper error handling for failed requests
- Keep the UI minimal and functional—clean layout, readable text, no unnecessary styling
**Output:**
Provide complete, standalone HTML (single file with embedded CSS and JavaScript) that can be opened directly in a browser and used immediately.
No preview
Comments (0)
No comments yet. Be the first!
Sign in to leave a comment
Project Tasks
12 planning tasks
#1
Generate system requirement document
0m 53s0.2 cr used
Done
#9
Generate system requirement document
0m 32s0.2 cr used
Paused
#12
Retry Requirements
0m 32s0.4 cr used
Paused
#2
Generate personas & user flows
0m 5s0.2 cr used
Done
#7
Create flow for API Tester / Load Simulator Operator
0m 5sCredits in parent
Done
#8
API Tester
Credits in subtasks
Backlog
#10
Design first page
0.2 cr used
Error
#4
Design remaining pages
0.2 cr needed
Backlog
#11
Design remaining pages
0.2 cr used
Error
#5
Architecture
0.2 cr needed
Backlog
#6
Workspace task plan
0.2 cr needed
Backlog
#13
Update API Tester / Load Simulator Operator flow
Credits unavailable
Backlog
No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No completed page designs yet.
Completed design pages will appear here when they are ready to preview.
No comments yet. Be the first!