How to Earn Online Without Investment in 2025 💻✨

In today’s digital era, earning money online without any investment has become easier than ever. Whether you’re a student, housewife, freelancer, or someone looking for a side income, there are plenty of legit ways to make money online — all you need is an internet connection, a smartphone or laptop, and your skills.

Below, I’ll guide you step by step on how to earn online without spending a single penny. 🚀


1. Freelancing Platforms 🧑‍💻

Freelancing is one of the most popular ways to earn online without investment. If you have any skill — like writing, graphic designing, video editing, or programming — you can sell your services globally.

Best Freelancing Platforms:

  • Fiverr

  • Upwork

  • Freelancer

How it works:

  • Create a free account.

  • List your skills and services.

  • Get hired by clients and get paid directly.

💡 Tip: Start with small gigs, deliver quality work, and collect positive reviews to grow faster.


2. Content Writing & Blogging ✍️

If you love writing, you can earn a steady income by writing blogs and articles for websites. Many companies pay writers to create SEO-friendly content.

Ways to earn through writing:

  • Register on platforms like iWriter, Textbroker, and WriterBay.

  • Start your own blog using free platforms like Blogger or WordPress and monetize it through Google AdSense.

💡 Pro Tip: Focus on trending topics to get more traffic and increase your earnings.


3. Online Teaching & Tutoring 🎓

If you are good at a particular subject, language, or skill, you can become an online tutor and teach students worldwide.

Best platforms to start:

  • Preply (Teach languages)

  • Chegg Tutors

  • Tutor.com

You can also start teaching on YouTube or Facebook Live and monetize your videos.


4. Affiliate Marketing 🔗💸

Affiliate marketing allows you to earn commissions by promoting other people’s products. You don’t need to invest in creating products; just share special affiliate links and get paid when someone makes a purchase.

Popular affiliate programs:

  • Amazon Associates

  • ClickBank

  • ShareASale

💡 Example:

  • Create a free blog or YouTube channel.

  • Share product reviews and affiliate links.

  • Earn money on every successful referral.


5. YouTube Channel 📹

Starting a YouTube channel is one of the best ways to earn online without investment.

Steps to start:

  • Create a free YouTube account.

  • Choose a niche (e.g., cooking, gaming, education, fitness).

  • Upload engaging videos regularly.

  • Enable monetization to earn from ads, sponsorships, and memberships.

💡 Tip: Focus on SEO-friendly video titles and attractive thumbnails to grow faster.


6. Online Surveys & Micro Tasks 📊

Many websites pay users to complete surveys, watch ads, or test products.

Popular platforms:

  • Swagbucks

  • InboxDollars

  • TimeBucks

  • ySense

These platforms won’t make you rich but can provide extra pocket money without any investment.


7. Social Media Management 📱

If you are good at handling Facebook, Instagram, or TikTok, you can earn by managing social media accounts for businesses and influencers.

How to start:

  • Build your own social media presence.

  • Offer services to small businesses.

  • Use free scheduling tools like Buffer or Hootsuite to manage multiple accounts easily.


8. Data Entry & Virtual Assistance 🗂️

Data entry and virtual assistance jobs require basic computer skills and are beginner-friendly.

Websites to find jobs:

  • Remote.co

  • Fiverr

  • PeoplePerHour

💡 Tip: Start small, work consistently, and build trust with your clients.


Final Tips for Success 🚀

  • Stay consistent: Online earnings take time to grow.

  • Learn new skills: The more you learn, the more you can earn.

  • Avoid scams: Always research before joining any platform.

  • Build your brand: Use LinkedIn, Facebook, and Instagram to showcase your work.


Conclusion 🎯

Earning money online without investment is 100% possible in 2025. Whether you choose freelancing, blogging, YouTube, affiliate marketing, or online teaching, success depends on your dedication, creativity, and consistency.

Start small, stay patient, and keep improving your skills — soon, you can build a reliable source of income right from your home. 🏠💼

HTML SCRIPT

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>EarnHub - Complete Tasks & Earn Money</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        :root {
            --primary: #4e54c8;
            --secondary: #8f94fb;
            --accent: #ff6b6b;
            --light: #f8f9fa;
            --dark: #343a40;
            --success: #28a745;
            --warning: #ffc107;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(to right, #fdfbfb, #ebedee);
            color: var(--dark);
            overflow-x: hidden;
        }
        
        /* Header Styles */
        header {
            background: linear-gradient(to right, var(--primary), var(--secondary));
            color: white;
            padding: 1rem 2rem;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .logo {
            display: flex;
            align-items: center;
            font-size: 1.8rem;
            font-weight: 700;
        }
        
        .logo i {
            margin-right: 10px;
            color: var(--accent);
        }
        
        nav ul {
            display: flex;
            list-style: none;
        }
        
        nav ul li {
            margin: 0 15px;
        }
        
        nav ul li a {
            color: white;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 8px 12px;
            border-radius: 4px;
        }
        
        nav ul li a:hover {
            background: rgba(255, 255, 255, 0.2);
        }
        
        .auth-buttons {
            display: flex;
            gap: 15px;
        }
        
        .btn {
            padding: 10px 20px;
            border-radius: 50px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }
        
        .btn-login {
            background: transparent;
            border: 2px solid white;
            color: white;
        }
        
        .btn-login:hover {
            background: white;
            color: var(--primary);
        }
        
        .btn-signup {
            background: var(--accent);
            color: white;
            border: 2px solid var(--accent);
        }
        
        .btn-signup:hover {
            background: transparent;
            color: var(--accent);
        }
        
        /* Hero Section */
        .hero {
            padding: 5rem 2rem;
            background: linear-gradient(135deg, rgba(78,84,200,0.9) 0%, rgba(143,148,251,0.9) 100%), url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
            background-size: cover;
            background-position: center;
            color: white;
            text-align: center;
        }
        
        .hero-content {
            max-width: 800px;
            margin: 0 auto;
        }
        
        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        .hero p {
            font-size: 1.5rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }
        
        .btn-hero {
            background: var(--accent);
            color: white;
            padding: 15px 40px;
            font-size: 1.2rem;
            border-radius: 50px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        }
        
        .btn-hero:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
        }
        
        /* Tasks Section */
        .tasks {
            padding: 5rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .section-title {
            text-align: center;
            margin-bottom: 3rem;
            font-size: 2.5rem;
            color: var(--primary);
            position: relative;
            padding-bottom: 15px;
        }
        
        .section-title:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: var(--accent);
            border-radius: 2px;
        }
        
        .tasks-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
        }
        
        .task-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
        }
        
        .task-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }
        
        .task-img {
            height: 180px;
            background-size: cover;
            background-position: center;
        }
        
        .task-content {
            padding: 25px;
        }
        
        .task-content h3 {
            font-size: 1.5rem;
            margin-bottom: 12px;
            color: var(--primary);
        }
        
        .task-content p {
            margin-bottom: 20px;
            color: #666;
        }
        
        .task-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .task-earnings {
            font-weight: 700;
            color: var(--success);
            font-size: 1.2rem;
        }
        
        .btn-task {
            background: var(--primary);
            color: white;
            padding: 8px 20px;
            border-radius: 50px;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .btn-task:hover {
            background: var(--secondary);
        }
        
        /* Sign Up Form */
        .signup {
            padding: 5rem 2rem;
            background: linear-gradient(to right, #f5f7fa, #c3cfe2);
        }
        
        .form-container {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            padding: 40px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .form-title {
            text-align: center;
            margin-bottom: 30px;
            color: var(--primary);
            font-size: 2rem;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--dark);
        }
        
        .form-group input,
        .form-group select {
            width: 100%;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }
        
        .form-group input:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.2);
        }
        
        .wallet-options {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }
        
        .wallet-option {
            flex: 1;
            text-align: center;
            padding: 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .wallet-option:hover {
            border-color: var(--primary);
            background: rgba(78, 84, 200, 0.05);
        }
        
        .wallet-option.selected {
            border-color: var(--primary);
            background: rgba(78, 84, 200, 0.1);
        }
        
        .wallet-option i {
            font-size: 2rem;
            margin-bottom: 10px;
            display: block;
            color: var(--primary);
        }
        
        .btn-submit {
            width: 100%;
            padding: 15px;
            background: var(--primary);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 20px;
        }
        
        .btn-submit:hover {
            background: var(--secondary);
        }
        
        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 3rem 2rem;
        }
        
        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
        }
        
        .footer-section h3 {
            font-size: 1.5rem;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 10px;
        }
        
        .footer-section h3:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 3px;
            background: var(--accent);
        }
        
        .footer-section p {
            margin-bottom: 20px;
            opacity: 0.8;
            line-height: 1.6;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 12px;
        }
        
        .footer-links a {
            color: white;
            text-decoration: none;
            opacity: 0.8;
            transition: all 0.3s ease;
        }
        
        .footer-links a:hover {
            opacity: 1;
            color: var(--accent);
            padding-left: 5px;
        }
        
        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background: var(--primary);
            transform: translateY(-3px);
        }
        
        .copyright {
            text-align: center;
            margin-top: 50px;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.7;
        }
        
        /* Popup Styles */
        .popup-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s ease;
        }
        
        .popup-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .popup-container {
            background: linear-gradient(135deg, #ff6b6b 0%, #4e54c8 100%);
            width: 90%;
            max-width: 500px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            transform: scale(0.7) translateY(50px);
            opacity: 0;
            transition: all 0.5s ease;
        }
        
        .popup-overlay.active .popup-container {
            transform: scale(1) translateY(0);
            opacity: 1;
        }
        
        .popup-header {
            background: rgba(255, 255, 255, 0.1);
            padding: 20px;
            text-align: center;
            position: relative;
        }
        
        .popup-header h2 {
            color: white;
            font-size: 2rem;
            margin: 0;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }
        
        .popup-content {
            padding: 30px;
            text-align: center;
        }
        
        .popup-content p {
            color: white;
            font-size: 1.5rem;
            margin-bottom: 30px;
            line-height: 1.5;
        }
        
        .popup-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
        }
        
        .popup-btn {
            padding: 15px 30px;
            border-radius: 50px;
            border: none;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            min-width: 120px;
        }
        
        .popup-btn-ok {
            background: white;
            color: #4e54c8;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        
        .popup-btn-ok:hover {
            background: #4e54c8;
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
        }
        
        .popup-btn-cancel {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: 2px solid white;
        }
        
        .popup-btn-cancel:hover {
            background: white;
            color: #4e54c8;
            transform: translateY(-3px);
        }
        
        .confetti {
            position: absolute;
            width: 10px;
            height: 10px;
            background-color: #f0f;
            opacity: 0.8;
            border-radius: 0;
        }
        
        /* Confetti animation */
        @keyframes confettiFall {
            0% {
                transform: translateY(-100px) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(500px) rotate(360deg);
                opacity: 0;
            }
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
            }
            
            nav ul {
                margin-top: 20px;
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .auth-buttons {
                margin-top: 20px;
            }
            
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .hero p {
                font-size: 1.2rem;
            }
            
            .wallet-options {
                flex-direction: column;
            }
            
            .popup-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .popup-btn {
                width: 100%;
            }
        }
    </style>
</head>
<body>
    <!-- Popup Overlay -->
    <div class="popup-overlay" id="popupOverlay">
        <div class="popup-container">
            <div class="popup-header">
                <h2>Congratulations!</h2>
            </div>
            <div class="popup-content">
                <p>You got a $25 bonus, and you can get it when you sign up immediately, no investment required, and it's completely free.</p>
                <div class="popup-buttons">
                    <button class="popup-btn popup-btn-ok" id="popupOk">OK</button>
                    <button class="popup-btn popup-btn-cancel" id="popupCancel">CANCEL</button>
                </div>
            </div>
        </div>
    </div>

    <!-- Header -->
    <header>
        <div class="header-container">
            <div class="logo">
                <i class="fas fa-coins"></i>
                <span>EarnHub</span>
            </div>
            <nav>
                <ul>
                    <li><a href="#" class="techpk-link">Home</a></li>
                    <li><a href="#" class="techpk-link">Tasks</a></li>
                    <li><a href="#" class="techpk-link">Earnings</a></li>
                    <li><a href="#" class="techpk-link">How it Works</a></li>
                    <li><a href="#" class="techpk-link">Contact</a></li>
                </ul>
            </nav>
            <div class="auth-buttons">
                <button class="btn btn-login techpk-link">Login</button>
                <button class="btn btn-signup techpk-link">Sign Up</button>
            </div>
        </div>
    </header>

    <!-- Hero Section -->
    <section class="hero">
        <div class="hero-content">
            <h1>Complete Tasks & Earn Money Online</h1>
            <p>Join thousands of users earning money by completing simple tasks from anywhere</p>
            <button class="btn-hero techpk-link">Start Earning Now</button>
        </div>
    </section>

    <!-- Tasks Section -->
    <section class="tasks">
        <h2 class="section-title">Available Tasks</h2>
        <div class="tasks-grid">
            <div class="task-card">
                <div class="task-img" style="background-image: url('https://blog.justfeedback.com/wp-content/uploads/2022/10/8058937.jpg');"></div>
                <div class="task-content">
                    <h3>Surveys & Questionnaires</h3>
                    <p>Share your opinions on various products and services and get paid for your feedback.</p>
                    <div class="task-meta">
                        <span class="task-earnings">$2 - $5 per survey</span>
                        <button class="btn-task techpk-link">Start</button>
                    </div>
                </div>
            </div>
            
            <div class="task-card">
                <div class="task-img" style="background-image: url('https://images.unsplash.com/photo-1551650975-87deedd944c3?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80');"></div>
                <div class="task-content">
                    <h3>App Testing</h3>
                    <p>Test new applications and provide feedback to developers. No technical skills required.</p>
                    <div class="task-meta">
                        <span class="task-earnings">$5 - $15 per test</span>
                        <button class="btn-task techpk-link">Start</button>
                    </div>
                </div>
            </div>
            
            <div class="task-card">
                <div class="task-img" style="background-image: url('https://images.unsplash.com/photo-1579389083078-4e7018379f7e?ixlib=rb-4.0.3&auto=format&fit=crop&w=500&q=80');"></div>
                <div class="task-content">
                    <h3>Data Entry</h3>
                    <p>Simple data entry tasks that can be completed from anywhere with internet access.</p>
                    <div class="task-meta">
                        <span class="task-earnings">$3 - $8 per task</span>
                        <button class="btn-task techpk-link">Start</button>
                    </div>
                </div>
            </div>
        </div>
    </section>

    <!-- Sign Up Form -->
    <section class="signup">
        <div class="form-container">
            <h2 class="form-title">Sign Up & Start Earning</h2>
            <form id="signup-form">
                <div class="form-group">
                    <label for="name">Full Name</label>
                    <input type="text" id="name" placeholder="Enter your full name" required>
                </div>
                
                <div class="form-group">
                    <label for="email">Email Address</label>
                    <input type="email" id="email" placeholder="Enter your email" required>
                </div>
                
                <div class="form-group">
                    <label for="password">Password</label>
                    <input type="password" id="password" placeholder="Create a password" required>
                </div>
                
                <div class="form-group">
                    <label for="country">Country</label>
                    <select id="country" required>
                        <option value="">Select your country</option>
                        <option value="pakistan">Pakistan</option>
                        <option value="india">India</option>
                        <option value="usa">United States</option>
                        <option value="other">Other</option>
                    </select>
                </div>
                
                <div class="form-group">
                    <label>Select Wallet Type</label>
                    <div class="wallet-options">
                        <div class="wallet-option" data-value="easypaisa">
                            <i class="fas fa-wallet"></i>
                            <span>EasyPaisa</span>
                        </div>
                        <div class="wallet-option" data-value="paytm">
                            <i class="fas fa-money-bill-wave"></i>
                            <span>PayTM</span>
                        </div>
                        <div class="wallet-option" data-value="paypal">
                            <i class="fab fa-paypal"></i>
                            <span>PayPal</span>
                        </div>
                    </div>
                    <input type="hidden" id="wallet-type" required>
                </div>
                
                <button type="submit" class="btn-submit techpk-link">Create Account</button>
            </form>
        </div>
    </section>

    <!-- Footer -->
    <footer>
        <div class="footer-container">
            <div class="footer-section">
                <h3>About EarnHub</h3>
                <p>EarnHub connects people with micro-tasks that can be completed online, providing flexible earning opportunities for everyone.</p>
                <div class="social-links">
                    <a href="#" class="techpk-link"><i class="fab fa-facebook-f"></i></a>
                    <a href="#" class="techpk-link"><i class="fab fa-twitter"></i></a>
                    <a href="#" class="techpk-link"><i class="fab fa-instagram"></i></a>
                    <a href="#" class="techpk-link"><i class="fab fa-linkedin-in"></i></a>
                </div>
            </div>
            
            <div class="footer-section">
                <h3>Quick Links</h3>
                <ul class="footer-links">
                    <li><a href="#" class="techpk-link">Home</a></li>
                    <li><a href="#" class="techpk-link">Tasks</a></li>
                    <li><a href="#" class="techpk-link">Earnings</a></li>
                    <li><a href="#" class="techpk-link">How it Works</a></li>
                    <li><a href="#" class="techpk-link">Testimonials</a></li>
                    <li><a href="#" class="techpk-link">Contact Us</a></li>
                </ul>
            </div>
            
            <div class="footer-section">
                <h3>Contact Info</h3>
                <ul class="footer-links">
                    <li><i class="fas fa-map-marker-alt"></i> 123 Market St, City, Country</li>
                    <li><i class="fas fa-envelope"></i> support@earnhub.com</li>
                    <li><i class="fas fa-phone"></i> +1 234 567 8900</li>
                    <li><i class="fas fa-clock"></i> Mon-Fri: 9AM - 6PM</li>
                </ul>
            </div>
        </div>
        
        <div class="copyright">
            <p>&copy; 2023 EarnHub. All rights reserved.</p>
        </div>
    </footer>

    <script>
        // Show popup with animation when page loads
        document.addEventListener('DOMContentLoaded', function() {
            setTimeout(function() {
                const popupOverlay = document.getElementById('popupOverlay');
                popupOverlay.classList.add('active');
                createConfetti();
            }, 1000); // Show popup after 1 second
        });
        
        // Handle popup button clicks
        document.getElementById('popupOk').addEventListener('click', function() {
            // Hide the popup
            document.getElementById('popupOverlay').classList.remove('active');
            
            // Open TechPK in new tab
            window.open('adsterra', '_blank');
        });
        
        document.getElementById('popupCancel').addEventListener('click', function() {
            // Hide the popup
            document.getElementById('popupOverlay').classList.remove('active');
            
            // Open Monetag in new tab
            window.open('monetag', '_blank');
        });
        
        // Create confetti effect
        function createConfetti() {
            const popupContainer = document.querySelector('.popup-container');
            const colors = ['#ff6b6b', '#4e54c8', '#ffc107', '#28a745', '#17a2b8'];
            
            for (let i = 0; i < 50; i++) {
                const confetti = document.createElement('div');
                confetti.className = 'confetti';
                confetti.style.left = Math.random() * 100 + '%';
                confetti.style.backgroundColor = colors[Math.floor(Math.random() * colors.length)];
                confetti.style.width = Math.random() * 10 + 5 + 'px';
                confetti.style.height = Math.random() * 10 + 5 + 'px';
                confetti.style.animation = `confettiFall ${Math.random() * 3 + 2}s linear forwards`;
                confetti.style.opacity = '0';
                
                document.body.appendChild(confetti);
                
                // Remove confetti after animation completes
                setTimeout(function() {
                    confetti.remove();
                }, 5000);
            }
        }
        
        // Make all buttons and links with class "techpk-link" open TechPK in new tab
        document.querySelectorAll('.techpk-link').forEach(element => {
            element.addEventListener('click', function(e) {
                e.preventDefault();
                window.open('adsterra', '_blank');
            });
        });
        
        // Wallet selection functionality
        document.querySelectorAll('.wallet-option').forEach(option => {
            option.addEventListener('click', function() {
                // Remove selected class from all options
                document.querySelectorAll('.wallet-option').forEach(opt => {
                    opt.classList.remove('selected');
                });
                
                // Add selected class to clicked option
                this.classList.add('selected');
                
                // Update hidden input value
                document.getElementById('wallet-type').value = this.getAttribute('data-value');
            });
        });
        
        // Form submission
        document.getElementById('signup-form').addEventListener('submit', function(e) {
            e.preventDefault();
            
            // Get form values
            const name = document.getElementById('name').value;
            const email = document.getElementById('email').value;
            const country = document.getElementById('country').value;
            const walletType = document.getElementById('wallet-type').value;
            
            // Validate wallet selection
            if (!walletType) {
                alert('Please select a wallet type');
                return;
            }
            
            // Show success message (in a real app, this would send data to a server)
            alert(`Thank you ${name}! Your account has been created successfully. 
                   You selected ${walletType} as your payment method for ${country}.`);
            
            // Reset form
            this.reset();
            document.querySelectorAll('.wallet-option').forEach(opt => {
                opt.classList.remove('selected');
            });
        });
        
        // Animate elements on scroll
        function animateOnScroll() {
            const elements = document.querySelectorAll('.task-card, .form-container');
            
            elements.forEach(element => {
                const position = element.getBoundingClientRect().top;
                const screenPosition = window.innerHeight / 1.3;
                
                if (position < screenPosition) {
                    element.style.opacity = 1;
                    element.style.transform = 'translateY(0)';
                }
            });
        }
        
        // Set initial state for animation
        document.querySelectorAll('.task-card, .form-container').forEach(element => {
            element.style.opacity = 0;
            element.style.transform = 'translateY(20px)';
            element.style.transition = 'all 0.8s ease';
        });
        
        // Listen for scroll events
        window.addEventListener('scroll', animateOnScroll);
        // Trigger once on load
        window.addEventListener('load', animateOnScroll);
    </script>
</body>
</html>

No comments:

Post a Comment

If you have any question you can ask me feelfree.