Skip to content
Wednesday, January 21 2026
  • Editor Login
THE ALERT INDIA

THE ALERT INDIA

  • Home
  • World
  • National
  • State
  • Metropolitan Cities
  • Law
  • Politics
  • Economy
  • Sports
  • Entertainment
  • Tech & Edu

What are You Looking For?

  • Home
  • World
  • National
  • State
  • Metropolitan Cities
  • Law
  • Politics
  • Economy
  • Sports
  • Entertainment
  • Tech & Edu
  • Editor Login
© All rights reserved by The Alert India - News with Reality Theme TrendingNews designed by WPInterface.

Thick Fog and Biting Cold Cripple Delhi-NCR: Flights and Trains Delayed, GRAP-III Reimposed

on January 17, 2026January 17, 2026

The Fragility of a Quiet Bench- Editorial: By Neeraj Gaur

on January 14, 2026January 14, 2026

The Growing Pains of a Transit Hub: Is Zirakpur the New “Crime Capital” of Tricity?-Neeraj Gaur

on January 11, 2026January 11, 2026

COMING SOON

on January 4, 2026January 4, 2026

The Great Reset of India’s Gaming Industry (2026) Special Report: By Pratyush Gaur

on January 3, 2026January 4, 2026

Caracas Hit by Explosions; Venezuela Levels Accusations at U.S

on January 3, 2026January 3, 2026

Pakistan Acknowledges Damage to Nur Khan Airbase After Operation Sindoor

on December 30, 2025December 30, 2025

Big Breaking

Thick Fog and Biting Cold Cripple Delhi-NCR: Flights and Trains Delayed, GRAP-III Reimposed
Posted in Big Breaking

Thick Fog and Biting Cold Cripple Delhi-NCR: Flights and Trains Delayed, GRAP-III Reimposed

on January 17, 2026January 17, 2026
The Fragility of a Quiet Bench- Editorial: By Neeraj Gaur
Posted in Big Breaking

The Fragility of a Quiet Bench- Editorial: By Neeraj Gaur

on January 14, 2026January 14, 2026
The Growing Pains of a Transit Hub: Is Zirakpur the New “Crime Capital” of Tricity?-Neeraj Gaur
Posted in Big Breaking

The Growing Pains of a Transit Hub: Is Zirakpur the New “Crime Capital” of Tricity?-Neeraj Gaur

on January 11, 2026January 11, 2026
The Great Reset of India’s Gaming Industry (2026) Special Report: By Pratyush Gaur
Posted in Big Breaking

The Great Reset of India’s Gaming Industry (2026) Special Report: By Pratyush Gaur

on January 3, 2026January 4, 2026
Caracas Hit by Explosions; Venezuela Levels Accusations at U.S
Posted in Big Breaking

Caracas Hit by Explosions; Venezuela Levels Accusations at U.S

on January 3, 2026January 3, 2026
Pakistan Acknowledges Damage to Nur Khan Airbase After Operation Sindoor
Posted in Big Breaking

Pakistan Acknowledges Damage to Nur Khan Airbase After Operation Sindoor

on December 30, 2025December 30, 2025
RBI Fines Kotak Mahindra Bank ₹61.95 Lakh for Regulatory Lapses
Posted in Big Breaking

RBI Fines Kotak Mahindra Bank ₹61.95 Lakh for Regulatory Lapses

on December 22, 2025January 4, 2026
India and New Zealand Conclude Landmark Free Trade Agreement, Opening New Chapter in Indo-Pacific Economic Ties
Posted in Big Breaking

India and New Zealand Conclude Landmark Free Trade Agreement, Opening New Chapter in Indo-Pacific Economic Ties

on December 22, 2025December 22, 2025

National

Thick Fog and Biting Cold Cripple Delhi-NCR: Flights and Trains Delayed, GRAP-III Reimposed
Posted in Big Breaking

Thick Fog and Biting Cold Cripple Delhi-NCR: Flights and Trains Delayed, GRAP-III Reimposed

on January 17, 2026January 17, 2026
The Fragility of a Quiet Bench- Editorial: By Neeraj Gaur
Posted in Big Breaking

The Fragility of a Quiet Bench- Editorial: By Neeraj Gaur

on January 14, 2026January 14, 2026
The Growing Pains of a Transit Hub: Is Zirakpur the New “Crime Capital” of Tricity?-Neeraj Gaur
Posted in Big Breaking

The Growing Pains of a Transit Hub: Is Zirakpur the New “Crime Capital” of Tricity?-Neeraj Gaur

on January 11, 2026January 11, 2026
Pakistan Acknowledges Damage to Nur Khan Airbase After Operation Sindoor
Posted in Big Breaking

Pakistan Acknowledges Damage to Nur Khan Airbase After Operation Sindoor

on December 30, 2025December 30, 2025

State

The Growing Pains of a Transit Hub: Is Zirakpur the New “Crime Capital” of Tricity?-Neeraj Gaur
Posted in Big Breaking

The Growing Pains of a Transit Hub: Is Zirakpur the New “Crime Capital” of Tricity?-Neeraj Gaur

on January 11, 2026January 11, 2026
Haryana Police Intensifies Crackdown with Major Operations: DGP O.P. Singh Briefs on Anti-Crime Strategies
Posted in Big Breaking

Haryana Police Intensifies Crackdown with Major Operations: DGP O.P. Singh Briefs on Anti-Crime Strategies

on December 10, 2025December 10, 2025
Delhi pollution: US Embassy to buy 1200 boxes of True HEPA air purifier filters ASAP
Posted in Big Breaking

Delhi pollution: US Embassy to buy 1200 boxes of True HEPA air purifier filters ASAP

on November 27, 2025January 12, 2026
ED conducts raids across 10 states in medical college bribery case
Posted in Big Breaking

ED conducts raids across 10 states in medical college bribery case

on November 27, 2025January 12, 2026
Supreme Court hearing on SIR updates: Deletions from Bihar rolls were mostly not objected to during recent elections, notes CJI
Posted in National

Supreme Court hearing on SIR updates: Deletions from Bihar rolls were mostly not objected to during recent elections, notes CJI

on November 22, 2025January 12, 2026

Trending

1
Posted in Big Breaking

The Growing Pains of a Transit Hub: Is Zirakpur the New “Crime Capital” of Tricity?-Neeraj Gaur

on January 11, 2026January 11, 2026
The Growing Pains of a Transit Hub: Is Zirakpur the New “Crime Capital” of Tricity?-Neeraj Gaur
2
Posted in Big Breaking

Haryana Police Intensifies Crackdown with Major Operations: DGP O.P. Singh Briefs on Anti-Crime Strategies

on December 10, 2025December 10, 2025
Haryana Police Intensifies Crackdown with Major Operations: DGP O.P. Singh Briefs on Anti-Crime Strategies
3
Posted in Big Breaking

Delhi pollution: US Embassy to buy 1200 boxes of True HEPA air purifier filters ASAP

on November 27, 2025January 12, 2026
Delhi pollution: US Embassy to buy 1200 boxes of True HEPA air purifier filters ASAP
4
Posted in Big Breaking

ED conducts raids across 10 states in medical college bribery case

on November 27, 2025January 12, 2026
ED conducts raids across 10 states in medical college bribery case
5
Posted in National

Supreme Court hearing on SIR updates: Deletions from Bihar rolls were mostly not objected to during recent elections, notes CJI

on November 22, 2025January 12, 2026
Supreme Court hearing on SIR updates: Deletions from Bihar rolls were mostly not objected to during recent elections, notes CJI

Politics

The Fragility of a Quiet Bench- Editorial: By Neeraj Gaur
Posted in Big Breaking

The Fragility of a Quiet Bench- Editorial: By Neeraj Gaur

on January 14, 2026January 14, 2026
As India moves into 2026, the halls of Parliament and state assemblies echo with a familiar, yet increasingly hollow, sound: the absence of a unified,...
Centre Softens Stance on Sanchar Saathi App Amid Lok Sabha Privacy Row: The Alert India
Posted in Big Breaking

Centre Softens Stance on Sanchar Saathi App Amid Lok Sabha Privacy Row: The Alert India

on December 3, 2025December 4, 2025
New Delhi: Amid fierce criticism from the Opposition in Parliament's Winter Session,...
Narendra Modi’s remarks on “drama”Parliament witnessed heated exchanges. The Alert India.
Posted in Big Breaking

Narendra Modi’s remarks on “drama”Parliament witnessed heated exchanges. The Alert India.

on December 1, 2025December 4, 2025
RAJYA SABHA “THE BACK DOOR ENTRY” IN INDIAN POLITICS: NEERAJ GAUR
Posted in Big Breaking

RAJYA SABHA “THE BACK DOOR ENTRY” IN INDIAN POLITICS: NEERAJ GAUR

on November 30, 2025December 4, 2025

Law & Justice

TRANSFER OF PROPERTY ACT: Property Transferred prior to filling of suit can’t be attached Under Order 38 Rule 5 CPC: SUPREME COURT. NEERAJ GAUR.
Posted in Big Breaking

TRANSFER OF PROPERTY ACT: Property Transferred prior to filling of suit can’t be attached Under Order 38 Rule 5 CPC: SUPREME COURT. NEERAJ GAUR.

on December 1, 2025December 4, 2025
Justice V Srishananda Of Karnataka High Court Expresses Regret For Objectionable Remarks: Neeraj Gaur
Posted in Big Breaking

Justice V Srishananda Of Karnataka High Court Expresses Regret For Objectionable Remarks: Neeraj Gaur

on November 27, 2025December 4, 2025

Latest

Posted in Big Breaking

TRANSFER OF PROPERTY ACT: Property Transferred prior to filling of suit can’t be attached Under Order 38 Rule 5 CPC: SUPREME COURT. NEERAJ GAUR.

on December 1, 2025December 4, 2025
Posted in Big Breaking

Justice V Srishananda Of Karnataka High Court Expresses Regret For Objectionable Remarks: Neeraj Gaur

on November 27, 2025December 4, 2025
See More

Must Read

The Growing Pains of a Transit Hub: Is Zirakpur the New “Crime Capital” of Tricity?-Neeraj Gaur
Posted in Big Breaking

The Growing Pains of a Transit Hub: Is Zirakpur the New “Crime Capital” of Tricity?-Neeraj Gaur

on January 11, 2026January 11, 2026
Once a collection of sleepy villages on the outskirts of Chandigarh, Zirakpur has transformed into a bustling urban sprawl. However, this rapid growth has come...
Posted in The Alert TV

COMING SOON

on January 4, 2026January 4, 2026
Podcasts | Interviews | Roundtables
The Great Reset of India’s Gaming Industry (2026) Special Report: By Pratyush Gaur
Posted in Big Breaking

The Great Reset of India’s Gaming Industry (2026) Special Report: By Pratyush Gaur

on January 3, 2026January 4, 2026
As we enter 2026, the Indian gaming landscape is undergoing its most radical transformation to date. What was once a market dominated by "Real Money...
Caracas Hit by Explosions; Venezuela Levels Accusations at U.S
Posted in Big Breaking

Caracas Hit by Explosions; Venezuela Levels Accusations at U.S

on January 3, 2026January 3, 2026
On 3 January 2026, explosions and reports of low-flying aircraft were heard in Caracas, Venezuela’s capital, amid escalating tensions between the United States and the Venezuelan government....
Pakistan Acknowledges Damage to Nur Khan Airbase After Operation Sindoor
Posted in Big Breaking

Pakistan Acknowledges Damage to Nur Khan Airbase After Operation Sindoor

on December 30, 2025December 30, 2025
In a rare and striking admission, the Government of Pakistan has publicly acknowledged that India’s military operation Operation Sindoor in May this year caused damage to the Nur...
RBI Fines Kotak Mahindra Bank ₹61.95 Lakh for Regulatory Lapses
Posted in Big Breaking

RBI Fines Kotak Mahindra Bank ₹61.95 Lakh for Regulatory Lapses

on December 22, 2025January 4, 2026
The Reserve Bank of India (RBI) has imposed a penalty of ₹61.95 lakh on Kotak Mahindra Bank Limited for non-compliance with multiple regulatory directions relating to basic banking services,...
India and New Zealand Conclude Landmark Free Trade Agreement, Opening New Chapter in Indo-Pacific Economic Ties
Posted in Big Breaking

India and New Zealand Conclude Landmark Free Trade Agreement, Opening New Chapter in Indo-Pacific Economic Ties

on December 22, 2025December 22, 2025
India and New Zealand on 22 December 2025 announced the conclusion of negotiations on a comprehensive Free Trade Agreement (FTA), marking a significant milestone in bilateral relations and...
Saudi Arabia’s Economic Transformation Faces Key Test Amid Lower Oil Prices: IMF
Posted in Big Breaking

Saudi Arabia’s Economic Transformation Faces Key Test Amid Lower Oil Prices: IMF

on December 21, 2025December 21, 2025
Saudi Arabia is entering a pivotal phase in its economic transformation as it navigates a period of lower oil prices and rising financing needs, according...
Income Tax Department Raids Shilpa Shetty’s Mumbai Residence in ₹60-Crore Fraud Probe
Posted in Big Breaking

Income Tax Department Raids Shilpa Shetty’s Mumbai Residence in ₹60-Crore Fraud Probe

on December 18, 2025January 4, 2026
MUMBAI — December 18, 2025 — In a major escalation of legal troubles for Bollywood actress Shilpa Shetty and her husband, businessman Raj Kundra, the...
IN Bondi Beach Gunman Identified as Hyderabad Native; Indian Police Rule Out Local Radicalisation: The Alert India.
Posted in Big Breaking

IN Bondi Beach Gunman Identified as Hyderabad Native; Indian Police Rule Out Local Radicalisation: The Alert India.

on December 16, 2025December 16, 2025
SYDNEY/HYDERABAD – Fresh details have emerged in the investigation into Sunday's mass shooting at Sydney's Bondi Beach, with police in India confirming that one of...

Editorial

The Fragility of a Quiet Bench- Editorial: By Neeraj Gaur
Posted in Big Breaking

The Fragility of a Quiet Bench- Editorial: By Neeraj Gaur

on January 14, 2026January 14, 2026
As India moves into 2026, the halls of Parliament and state assemblies...
Caracas Hit by Explosions; Venezuela Levels Accusations at U.S
Posted in Big Breaking

Caracas Hit by Explosions; Venezuela Levels Accusations at U.S

on January 3, 2026January 3, 2026
On 3 January 2026, explosions and reports of low-flying aircraft were heard in Caracas,...
The Silent Crisis: Academic Pressure on Students and Parents in India
Posted in Big Breaking

The Silent Crisis: Academic Pressure on Students and Parents in India

on December 10, 2025December 10, 2025
RAJYA SABHA “THE BACK DOOR ENTRY” IN INDIAN POLITICS: NEERAJ GAUR
Posted in Big Breaking

RAJYA SABHA “THE BACK DOOR ENTRY” IN INDIAN POLITICS: NEERAJ GAUR

on November 30, 2025December 4, 2025
The Fragility of a Quiet Bench- Editorial: By Neeraj Gaur
Posted in Big Breaking

The Fragility of a Quiet Bench- Editorial: By Neeraj Gaur

on January 14, 2026January 14, 2026
As India moves into 2026, the halls of Parliament and state assemblies echo with a familiar, yet increasingly hollow, sound: the absence of a unified,...
Caracas Hit by Explosions; Venezuela Levels Accusations at U.S
Posted in Big Breaking

Caracas Hit by Explosions; Venezuela Levels Accusations at U.S

on January 3, 2026January 3, 2026
On 3 January 2026, explosions and reports of low-flying aircraft were heard in Caracas, Venezuela’s capital, amid escalating tensions between the United States and the Venezuelan government....
The Silent Crisis: Academic Pressure on Students and Parents in India
Posted in Big Breaking

The Silent Crisis: Academic Pressure on Students and Parents in India

on December 10, 2025December 10, 2025
The pursuit of education in India is often described as a high-stakes gamble, a relentless marathon where the finish line is not just a degree, but...
RAJYA SABHA “THE BACK DOOR ENTRY” IN INDIAN POLITICS: NEERAJ GAUR
Posted in Big Breaking

RAJYA SABHA “THE BACK DOOR ENTRY” IN INDIAN POLITICS: NEERAJ GAUR

on November 30, 2025December 4, 2025
EDITORIAL FROM EDITER DESK The Rajya Sabha, India’s Upper House, of the parliament has increasingly been criticized as a “back door entry” into politics, where...

The Alert TV

1 Articles

The Alert TV

Latest:

COMING SOON

0 Articles

0 Articles

0 Articles

News

on November 22, 2025December 2, 2025
Neeraj Gaur

Just For You

Thick Fog and Biting Cold Cripple Delhi-NCR: Flights and Trains Delayed, GRAP-III Reimposed
Posted in Big Breaking Metropolitan Cities

Thick Fog and Biting Cold Cripple Delhi-NCR: Flights and Trains Delayed, GRAP-III Reimposed

on January 17, 2026January 17, 2026
The Fragility of a Quiet Bench- Editorial: By Neeraj Gaur
Posted in Big Breaking Editorial

The Fragility of a Quiet Bench- Editorial: By Neeraj Gaur

on January 14, 2026January 14, 2026
The Growing Pains of a Transit Hub: Is Zirakpur the New “Crime Capital” of Tricity?-Neeraj Gaur
Posted in Big Breaking National

The Growing Pains of a Transit Hub: Is Zirakpur the New “Crime Capital” of Tricity?-Neeraj Gaur

on January 11, 2026January 11, 2026
Pakistan Acknowledges Damage to Nur Khan Airbase After Operation Sindoor
Posted in Big Breaking National

Pakistan Acknowledges Damage to Nur Khan Airbase After Operation Sindoor

on December 30, 2025December 30, 2025
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>Big Breaking Carousel</title>

  <!-- Optional: Roboto Condensed from Google Fonts -->
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap" rel="stylesheet">

  <style>
    /* === BIG BREAKING CUSTOM CAROUSEL === */

    body {
      margin: 0;
      font-family: 'Roboto Condensed', sans-serif;
      background: #f5f5f5;
    }

    .ta-bigbreaking-carousel {
      max-width: 1200px;
      margin: 40px auto;
      padding: 0 16px;
      font-family: 'Roboto Condensed', sans-serif;
    }

    /* Heading style */
    .ta-carousel-header h2 {
      font-size: 28px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #e11b22;
      margin: 0 0 16px;
      position: relative;
      display: inline-block;
    }

    .ta-carousel-header h2::before,
    .ta-carousel-header h2::after {
      content: "";
      position: absolute;
      top: 50%;
      width: 60px;
      height: 2px;
      background: #000;
      transform: translateY(-50%);
    }

    .ta-carousel-header h2::before {
      left: -80px;
    }

    .ta-carousel-header h2::after {
      right: -80px;
    }

    /* Viewport */
    .ta-carousel-viewport {
      overflow: hidden;
      border-radius: 6px;
    }

    /* Track */
    .ta-carousel-track {
      display: flex;
      transition: transform 0.5s ease-in-out;
    }

    /* Each slide: 1 at a time */
    .ta-slide {
      flex: 0 0 100%;
      display: flex;
      flex-direction: column;
      background: #000;
      color: #fff;
    }

    /* Banner height (change for smaller/larger) */
    .ta-slide-image img {
      width: 100%;
      height: 340px;   /* make 320/300 if you want it shorter */
      object-fit: cover;
      display: block;
    }

    .ta-slide-content {
      padding: 16px 20px 20px;
      background: #000;
    }

    .ta-slide-category {
      display: inline-block;
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      background: #e11b22;
      padding: 3px 8px;
      margin-bottom: 8px;
      border-radius: 2px;
    }

    .ta-slide-title {
      font-size: 20px;
      line-height: 1.3;
      margin: 4px 0 6px;
    }

    .ta-slide-title a {
      color: #fff;
      text-decoration: none;
    }

    .ta-slide-title a:hover {
      text-decoration: underline;
    }

    .ta-slide-meta {
      font-size: 13px;
      color: #ccc;
    }

    /* Controls */
    .ta-carousel-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      margin-top: 10px;
    }

    .ta-prev,
    .ta-next {
      border: none;
      background: #111;
      color: #fff;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .ta-prev:hover,
    .ta-next:hover {
      background: #e11b22;
    }

    /* Dots */
    .ta-dots {
      display: flex;
      gap: 6px;
    }

    .ta-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      border: none;
      background: #ccc;
      cursor: pointer;
    }

    .ta-dot.is-active {
      background: #e11b22;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .ta-slide-image img {
        height: 260px;
      }
      .ta-slide-title {
        font-size: 18px;
      }
    }
  </style>
</head>
<body>

  <!-- ===== BIG BREAKING CAROUSEL ===== -->
  <section class="ta-bigbreaking-carousel" aria-label="Big Breaking">
    <div class="ta-carousel-header">
      <h2>BIG BREAKING</h2>
    </div>

    <div class="ta-carousel-viewport">
      <div class="ta-carousel-track">

        <!-- SLIDE 1 -->
        <article class="ta-slide is-active">
          <a href="#" class="ta-slide-image">
            <img src="https://picsum.photos/1200/700?random=1" alt="Headline 1">
          </a>
          <div class="ta-slide-content">
            <span class="ta-slide-category">BIG BREAKING</span>
            <h3 class="ta-slide-title">
              <a href="#">
                ED conducts raids across 10 states in medical college bribery case
              </a>
            </h3>
            <div class="ta-slide-meta">November 27, 2025 • New Delhi</div>
          </div>
        </article>

        <!-- SLIDE 2 -->
        <article class="ta-slide">
          <a href="#" class="ta-slide-image">
            <img src="https://picsum.photos/1200/700?random=2" alt="Headline 2">
          </a>
          <div class="ta-slide-content">
            <span class="ta-slide-category">BIG BREAKING</span>
            <h3 class="ta-slide-title">
              <a href="#">
                India vs Bangladesh: Rishabh Pant equals MS Dhoni’s record
              </a>
            </h3>
            <div class="ta-slide-meta">November 28, 2025 • Sports Desk</div>
          </div>
        </article>

        <!-- SLIDE 3 -->
        <article class="ta-slide">
          <a href="#" class="ta-slide-image">
            <img src="https://picsum.photos/1200/700?random=3" alt="Headline 3">
          </a>
          <div class="ta-slide-content">
            <span class="ta-slide-category">BIG BREAKING</span>
            <h3 class="ta-slide-title">
              <a href="#">
                Justice V Srishananda of Karnataka HC expresses regret for remarks
              </a>
            </h3>
            <div class="ta-slide-meta">November 27, 2025 • Bengaluru</div>
          </div>
        </article>

        <!-- Add more <article class="ta-slide"> ... </article> for more news -->

      </div>
    </div>

    <div class="ta-carousel-controls">
      <button class="ta-prev" type="button" aria-label="Previous">&#10094;</button>
      <div class="ta-dots"></div>
      <button class="ta-next" type="button" aria-label="Next">&#10095;</button>
    </div>
  </section>

  <script>
    // Simple vanilla JS slider: 1 slide at a time, auto every 2s
    document.addEventListener('DOMContentLoaded', function () {
      const root = document.querySelector('.ta-bigbreaking-carousel');
      if (!root) return;

      const track = root.querySelector('.ta-carousel-track');
      const slides = Array.from(root.querySelectorAll('.ta-slide'));
      const prevBtn = root.querySelector('.ta-prev');
      const nextBtn = root.querySelector('.ta-next');
      const dotsContainer = root.querySelector('.ta-dots');

      let index = 0;
      let timer;
      const slideCount = slides.length;
      if (!slideCount) return;

      // Create dots
      slides.forEach(function (slide, i) {
        const dot = document.createElement('button');
        dot.className = 'ta-dot' + (i === 0 ? ' is-active' : '');
        dot.type = 'button';
        dot.setAttribute('aria-label', 'Go to slide ' + (i + 1));
        dot.addEventListener('click', function () {
          goToSlide(i, true);
        });
        dotsContainer.appendChild(dot);
      });

      const dots = Array.from(root.querySelectorAll('.ta-dot'));

      function goToSlide(i, stopAuto) {
        index = (i + slideCount) % slideCount;
        const offset = -index * 100;
        track.style.transform = 'translateX(' + offset + '%)';
        slides.forEach(function (s, j) {
          s.classList.toggle('is-active', j === index);
        });
        dots.forEach(function (d, j) {
          d.classList.toggle('is-active', j === index);
        });
        if (stopAuto) restartAuto();
      }

      function next() {
        goToSlide(index + 1);
      }

      function prev() {
        goToSlide(index - 1, true);
      }

      function startAuto() {
        timer = setInterval(next, 2000); // 2 seconds
      }

      function stopAuto() {
        clearInterval(timer);
      }

      function restartAuto() {
        stopAuto();
        startAuto();
      }

      if (nextBtn) nextBtn.addEventListener('click', function () {
        goToSlide(index + 1, true);
      });

      if (prevBtn) prevBtn.addEventListener('click', function () {
        goToSlide(index - 1, true);
      });

      root.addEventListener('mouseenter', stopAuto);
      root.addEventListener('mouseleave', startAuto);

      // init
      track.style.transform = 'translateX(0%)';
      startAuto();
    });
  </script>
</body>
</html>
  • Editor Login

Links

  • Editor Login
© All rights reserved by The Alert India - News with Reality Theme TrendingNews designed by WPInterface.