Welcome to Anmin's Projects! This is a dedicated space where you can explore a variety of interactive web-based projects that I have created. Whether you're looking to learn more about coding or just want to try out different mini-projects, you've come to the right place. In this collection, you'll find useful tools like a counter, a random number generator, a stopwatch, and even a Base64 encoder, all designed to demonstrate fundamental programming concepts. Each project is simple yet powerful, providing hands-on learning experiences that will help you deepen your understanding of web development and programming.



๐Ÿงฎ Counter

0

Code:

<script> let count = 0; function countNum(n) { count += n; document.getElementById("count").innerText = count; } function resetCount() { count = 0; document.getElementById("count").innerText = count; } </script>

๐ŸŽฒ Random Number Generator

๐ŸŽฒ โ€”

Code:

<script> function generateRandom() { const num = Math.floor(Math.random() * 100) + 1; document.getElementById("randomOutput").innerText = "๐ŸŽฒ " + num; } </script>

๐Ÿ” String to Base64 (Python)

This Python snippet converts a string to Base64:

import base64 text = "Hello, Anmin!" encoded = base64.b64encode(text.encode()).decode() print(encoded)

โฑ๏ธ Stopwatch

00:00:00

Code:

<script> let startTime = 0; let elapsedTime = 0; let timerInterval; function formatTime(ms) { const totalSeconds = Math.floor(ms / 1000); const hours = String(Math.floor(totalSeconds / 3600)).padStart(2, '0'); const minutes = String(Math.floor((totalSeconds % 3600) / 60)).padStart(2, '0'); const seconds = String(totalSeconds % 60).padStart(2, '0'); return `${hours}:${minutes}:${seconds}`; } function start() { if (!timerInterval) { startTime = Date.now() - elapsedTime; timerInterval = setInterval(() => { elapsedTime = Date.now() - startTime; document.getElementById("display").innerText = formatTime(elapsedTime); }, 1000); } } function pause() { clearInterval(timerInterval); timerInterval = null; } function reset() { clearInterval(timerInterval); timerInterval = null; elapsedTime = 0; document.getElementById("display").innerText = "00:00:00"; } </script>

I hope you enjoyed exploring the projects here on my website. Each one is built to showcase different programming concepts, ranging from basic JavaScript functions to Python snippets. Whether you're a beginner looking to learn more or someone who enjoys experimenting with code, I believe thereโ€™s something for everyone here. The projects are designed with simplicity in mind, so you can easily modify and expand them to fit your own needs. I encourage you to dive into the code, tweak it, and try building your own variations. With coding, the more you practice, the better you get! Don't hesitate to reach out if you have any questions or need help with any of the projects. You can also keep an eye on the blog section of the website for new content and tutorials on different programming topics. Stay curious and keep coding โ€” the possibilities are endless!