The widget shows up to 10 countries that have won the most medals of a given kind in the Olympics games.
npm install
npm run dev
npm run build
The widget could be embedded in an HTML page using patter below
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Medal Widget Demo</title>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/dist/index.css"></head>
<body>
<div id="medal-widget"></div>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<script src="/dist/index.js"></script>
<script>widget.initialize('medal-widget', 'gold');</script>
</body>
</html>