Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions en/beginner-projects/simple-stopwatch.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,12 @@ Create a simple stopwatch app that lets users start, stop, and reset a timer to
Add lap functionality to record and display multiple time splits.


## Live Demo
<div align="center">
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CodeSandbox URL uses a short ID 'yyhqfy' which is not descriptive. Consider using a more descriptive URL or adding a comment to identify what this specific sandbox contains.

Suggested change
<div align="center">
<div align="center">
<!-- This CodeSandbox contains a live demo of the simple stopwatch app described above. -->

Copilot uses AI. Check for mistakes.
<iframe src="https://codesandbox.io/embed/yyhqfy?view=preview"
style="width:100%; height: 500px; border:0; border-radius: 4px; overflow:hidden;"
title="stopwatch-app"
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
Copy link

Copilot AI Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The iframe allows excessive permissions that are unnecessary for a stopwatch demo. Consider restricting permissions to only what's needed, such as removing camera, microphone, payment, geolocation, and other sensitive capabilities.

Suggested change
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"

Copilot uses AI. Check for mistakes.
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
></iframe>
</div>