Moving Login Button Project (Troll Form 😂)
If the user enters an incorrect password, the "Login" button moves away!
<html>
<head>
<style>
.container {
text-align: center;
margin-top: 50px;
}
.btn {
position: relative;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
</style>
<script>
function moveButton() {
let password = document.getElementById("password").value;
let button = document.getElementById("btn");
if (password !== "legend") {
let x = Math.random() * (window.innerWidth - 100);
let y = Math.random() * (window.innerHeight - 100);
button.style.position = "absolute";
button.style.left = x + "px";
button.style.top = y + "px";
}
}
</script>
</head>
<body>
<div class="container">
<h2>Enter Password</h2>
<input type="password" id="password" placeholder="Type something..." oninput="moveButton()">
<br><br>
<button id="btn" class="btn" onclick="alert('You got lucky!')">Login</button>
</div>
</body>
</html>
How It Works?
If the user types anything other than "legend", the login button starts running away from the cursor.
If the correct password is entered, the button stays in place.
Web Development Best Resources
ENJOY LEARNING 👍👍
#webdev
If the user enters an incorrect password, the "Login" button moves away!
<html>
<head>
<style>
.container {
text-align: center;
margin-top: 50px;
}
.btn {
position: relative;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}
</style>
<script>
function moveButton() {
let password = document.getElementById("password").value;
let button = document.getElementById("btn");
if (password !== "legend") {
let x = Math.random() * (window.innerWidth - 100);
let y = Math.random() * (window.innerHeight - 100);
button.style.position = "absolute";
button.style.left = x + "px";
button.style.top = y + "px";
}
}
</script>
</head>
<body>
<div class="container">
<h2>Enter Password</h2>
<input type="password" id="password" placeholder="Type something..." oninput="moveButton()">
<br><br>
<button id="btn" class="btn" onclick="alert('You got lucky!')">Login</button>
</div>
</body>
</html>
How It Works?
If the user types anything other than "legend", the login button starts running away from the cursor.
If the correct password is entered, the button stays in place.
Web Development Best Resources
ENJOY LEARNING 👍👍
#webdev
If you want to Excel at Frontend Development and build stunning user interfaces, master these essential skills:
Core Technologies:
• HTML5 & Semantic Tags – Clean and accessible structure
• CSS3 & Preprocessors (SASS, SCSS) – Advanced styling
• JavaScript ES6+ – Arrow functions, Promises, Async/Await
CSS Frameworks & UI Libraries:
• Bootstrap & Tailwind CSS – Speed up styling
• Flexbox & CSS Grid – Modern layout techniques
• Material UI, Ant Design, Chakra UI – Prebuilt UI components
JavaScript Frameworks & Libraries:
• React.js – Component-based UI development
• Vue.js / Angular – Alternative frontend frameworks
• Next.js & Nuxt.js – Server-side rendering (SSR) & static site generation
State Management:
• Redux / Context API (React) – Manage complex state
• Pinia / Vuex (Vue) – Efficient state handling
API Integration & Data Handling:
• Fetch API & Axios – Consume RESTful APIs
• GraphQL & Apollo Client – Query APIs efficiently
Frontend Optimization & Performance:
• Lazy Click Me Load More & Code Splitting – Faster load times
• Web Performance Optimization (Lighthouse, Core Web Vitals)
Version Control & Deployment:
• Git & GitHub – Track changes and collaborate
• CI/CD & Hosting – Deploy with Vercel, Netlify, Firebase
Like it if you need a complete tutorial on all these topics! 👍❤️
Web Development Best Resources
Share with credits: https://www.tg-me.com/webdevcoursefree
ENJOY LEARNING 👍👍
Core Technologies:
• HTML5 & Semantic Tags – Clean and accessible structure
• CSS3 & Preprocessors (SASS, SCSS) – Advanced styling
• JavaScript ES6+ – Arrow functions, Promises, Async/Await
CSS Frameworks & UI Libraries:
• Bootstrap & Tailwind CSS – Speed up styling
• Flexbox & CSS Grid – Modern layout techniques
• Material UI, Ant Design, Chakra UI – Prebuilt UI components
JavaScript Frameworks & Libraries:
• React.js – Component-based UI development
• Vue.js / Angular – Alternative frontend frameworks
• Next.js & Nuxt.js – Server-side rendering (SSR) & static site generation
State Management:
• Redux / Context API (React) – Manage complex state
• Pinia / Vuex (Vue) – Efficient state handling
API Integration & Data Handling:
• Fetch API & Axios – Consume RESTful APIs
• GraphQL & Apollo Client – Query APIs efficiently
Frontend Optimization & Performance:
• Lazy Click Me Load More & Code Splitting – Faster load times
• Web Performance Optimization (Lighthouse, Core Web Vitals)
Version Control & Deployment:
• Git & GitHub – Track changes and collaborate
• CI/CD & Hosting – Deploy with Vercel, Netlify, Firebase
Like it if you need a complete tutorial on all these topics! 👍❤️
Web Development Best Resources
Share with credits: https://www.tg-me.com/webdevcoursefree
ENJOY LEARNING 👍👍
🔰 MongoDB Roadmap for Beginners 2025
├── 🧠 What is NoSQL? Why MongoDB?
├── ⚙️ Installing MongoDB & MongoDB Atlas Setup
├── 📦 Databases, Collections, Documents
├── 🔍 CRUD Operations (insertOne, find, update, delete)
├── 🔁 Query Operators ($gt, $in, $regex, etc.)
├── 🧪 Mini Project: Student Record Manager
├── 🧩 Schema Design & Data Modeling
├── 📂 Embedding vs Referencing
├── 🔐 Indexes & Performance Optimization
├── 🛡 Data Validation & Aggregation Pipeline
├── 🧪 Mini Project: Analytics Dashboard (Aggregation + Filters)
├── 🌐 Connecting MongoDB with Node.js (Mongoose ORM)
├── 🧱 Relationships in NoSQL (1-1, 1-Many, Many-Many)
├── ✅ Backup, Restore, and Security Best Practices
#mongodb
├── 🧠 What is NoSQL? Why MongoDB?
├── ⚙️ Installing MongoDB & MongoDB Atlas Setup
├── 📦 Databases, Collections, Documents
├── 🔍 CRUD Operations (insertOne, find, update, delete)
├── 🔁 Query Operators ($gt, $in, $regex, etc.)
├── 🧪 Mini Project: Student Record Manager
├── 🧩 Schema Design & Data Modeling
├── 📂 Embedding vs Referencing
├── 🔐 Indexes & Performance Optimization
├── 🛡 Data Validation & Aggregation Pipeline
├── 🧪 Mini Project: Analytics Dashboard (Aggregation + Filters)
├── 🌐 Connecting MongoDB with Node.js (Mongoose ORM)
├── 🧱 Relationships in NoSQL (1-1, 1-Many, Many-Many)
├── ✅ Backup, Restore, and Security Best Practices
#mongodb
9 tips to write better JavaScript code:
Use const and let instead of var
Keep functions pure and focused
Avoid deeply nested callbacks (use Promises or async/await)
Use arrow functions for cleaner syntax
Always handle errors in async code
Keep your code modular and reusable
Use strict equality === instead of ==
Comment only when necessary — write self-explanatory code
Understand closures, hoisting, and scope
Web Development Resources ⬇️
https://whatsapp.com/channel/0029VaiSdWu4NVis9yNEE72z
ENJOY LEARNING 👍👍
Use const and let instead of var
Keep functions pure and focused
Avoid deeply nested callbacks (use Promises or async/await)
Use arrow functions for cleaner syntax
Always handle errors in async code
Keep your code modular and reusable
Use strict equality === instead of ==
Comment only when necessary — write self-explanatory code
Understand closures, hoisting, and scope
Web Development Resources ⬇️
https://whatsapp.com/channel/0029VaiSdWu4NVis9yNEE72z
ENJOY LEARNING 👍👍
If you want to Excel at Backend Development and build powerful applications, master these essential skills:
Core Backend Concepts:
• HTTP & RESTful APIs – GET, POST, PUT, DELETE methods
• Authentication & Authorization – JWT, OAuth, API keys
• Middleware – Handle requests efficiently
Programming Languages:
• Node.js (JavaScript) – Popular for scalable apps
• Python (Django/Flask) – Clean & powerful
• Java (Spring Boot) – Enterprise-grade applications
• PHP, Ruby, or Go – Niche but powerful
Databases & Storage:
• SQL Databases – MySQL, PostgreSQL, SQLite
• NoSQL Databases – MongoDB, Firebase, Cassandra
• ORMs – Sequelize, Prisma, SQLAlchemy, Hibernate
Scalability & Performance:
• Caching – Redis, Memcached for speed
• Message Queues – RabbitMQ, Kafka for async tasks
• Load Balancing – Distribute traffic effectively
DevOps & Deployment:
• Version Control – Git & GitHub
• CI/CD Pipelines – Automate testing & deployment
• Cloud Hosting – AWS, DigitalOcean, Heroku, Firebase
• Containerization – Docker & Kubernetes
Like it if you need a complete tutorial on all these topics! 👍❤️
Core Backend Concepts:
• HTTP & RESTful APIs – GET, POST, PUT, DELETE methods
• Authentication & Authorization – JWT, OAuth, API keys
• Middleware – Handle requests efficiently
Programming Languages:
• Node.js (JavaScript) – Popular for scalable apps
• Python (Django/Flask) – Clean & powerful
• Java (Spring Boot) – Enterprise-grade applications
• PHP, Ruby, or Go – Niche but powerful
Databases & Storage:
• SQL Databases – MySQL, PostgreSQL, SQLite
• NoSQL Databases – MongoDB, Firebase, Cassandra
• ORMs – Sequelize, Prisma, SQLAlchemy, Hibernate
Scalability & Performance:
• Caching – Redis, Memcached for speed
• Message Queues – RabbitMQ, Kafka for async tasks
• Load Balancing – Distribute traffic effectively
DevOps & Deployment:
• Version Control – Git & GitHub
• CI/CD Pipelines – Automate testing & deployment
• Cloud Hosting – AWS, DigitalOcean, Heroku, Firebase
• Containerization – Docker & Kubernetes
Like it if you need a complete tutorial on all these topics! 👍❤️