Close Menu
Health  JustFineHealth  JustFine

    Subscribe to Updates

    Get the latest creative news from FooBar about art, design and business.

    What's Hot

    Hawaiʻi Department of Health has tips for parents, caregivers during Safe Sleep Awareness Month | Kauai Now

    October 7, 2026

    Safe Sleep Symposium held in Columbus to address infant sleep deaths

    October 7, 2026

    More than umkhaba: SA waist sizes point to growing metabolic health concerns | The Citizen

    October 7, 2026
    Facebook X (Twitter) Instagram
    Health  JustFineHealth  JustFine
    Facebook X (Twitter) Instagram
    • Home
    • General Health News
    • Sleep Health
    • Mental Wellness
    • Fitness & Recovery
    • Health Tech & Wearables
    • More
      • Longevity & Anti-Aging
      • Women’s Hormone Health
      • Gut Health & Microbiome
      • Metabolic Health & Blood Sugar
      • Nutrition & Anti-Inflammatory Foods
    Health  JustFineHealth  JustFine
    Home»Mental Wellness»Keralam drops ‘Mental Health’ tag, renames centres ‘Happiness and Wellness Centres’ to shed stigma
    Mental Wellness

    Keralam drops ‘Mental Health’ tag, renames centres ‘Happiness and Wellness Centres’ to shed stigma

    HealthJustfine TeamBy HealthJustfine TeamSeptember 4, 2026No Comments3 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Reddit WhatsApp Email
    Keralam drops ‘Mental Health’ tag, renames centres ‘Happiness and Wellness Centres’ to shed stigma
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp Email

    `;
    });
    } else {
    authorsHTML = “;
    }

    // Additional content
    let additionalContent = `

    `;

    // Append new article with additional content
    $(‘#articles-container’).append(`
    ${response.data.title}

    ${response.data.meta_description}

    ${response.data.title}

    ${response.data.caption}

    Google
    Make Us Your Preferred Source on Google
    ${response.data.content}

    ${additionalContent}

    `);

    currentPostId = response.data.id;
    excludedPosts.push(currentPostId);

    updateMetaTags(response.data);
    } else {
    console.log(‘No more articles to load.’);
    $(window).off(‘scroll’);
    }
    },
    error: function (xhr, status, error) {
    console.error(‘AJAX error:’, error);
    },
    complete: function () {
    isLoading = false;
    },
    });
    }

    function fetchPreviousArticle(currentPostId) {

    $.ajax({
    url: ‘/wp-json/custom/v1/previous-article’,
    type: ‘GET’,
    data: {
    post_id: currentPostId,
    category_id: categoryId,
    },
    success: function (response) {
    console.log(‘AJAX response received:’, response);

    if (response.success) {
    $(‘#articles-container’).prepend(`

    ${response.data.title}

    ${response.data.content}

    `);
    currentPostId = response.data.id;
    } else {
    console.log(‘No previous articles to load.’);
    $(window).off(‘scroll’); // Stop further loading
    }
    },
    error: function (xhr, status, error) {
    console.error(‘AJAX error:’, error);
    },
    complete: function () {
    isLoading = false;
    },
    });
    }

    // Trigger fetch on scroll
    let lastScrollTop = 0;
    $(window).on(‘scroll’, function () {
    let scrollTop = $(window).scrollTop();
    let scrollHeight = $(document).height();
    let windowHeight = $(window).height();

    // Scroll down: Trigger fetch when reaching the bottom (or near the bottom)
    if (scrollTop + windowHeight >= scrollHeight – 900) {
    fetchNextArticle();
    }
    });

    });

    var lastScrollTop = $(window).scrollTop(); // Store initial scroll position

    $(window).on(“scroll”, function () {
    var currentScrollTop = $(window).scrollTop();

    if (currentScrollTop < lastScrollTop) { // Check if scrolling up
    $(“.article”).each(function () {
    var divTop = $(this).offset().top;
    var divBottom = divTop + $(this).outerHeight();
    var scrollPos = $(window).scrollTop() + $(window).height() / 2; // Middle of viewport

    if (scrollPos >= divTop && scrollPos <= divBottom) {
    var attributeValue = $(this).attr(“id”); // Change “data-type” to your attribute

    get_curarticle_val = $(“#previous_article_id”).val();

    // console.log(“Scrolled into Article ID:”, attributeValue);

    // console.log(“Scrolled into Previous Article ID:”, get_curarticle_val);

    if(get_curarticle_val != attributeValue){

    $(“#previous_article_id”).val(attributeValue);
    //console.log(“Scrolled into Article ID:”, attributeValue);
    get_new_article(attributeValue);
    }

    // return false; // Stop checking after finding the first match
    }
    });
    }

    lastScrollTop = currentScrollTop; // Update scroll position
    });

    function get_new_article(currentPostId){
    let isLoading = false;

    if (isLoading) return;

    isLoading = true;

    $.ajax({
    url: ‘/wp-json/custom/v1/previous-article’,
    type: ‘GET’,
    data: {
    post_id: currentPostId,

    },
    success: function (response) {
    if (response.success) {

    currentPostId = response.data.id;
    $(“#previous_article_id”).val(currentPostId);

    let newUrl = response.data.link;

    data = response.data;

    var decodedTitle = decodeHTMLEntities(data.title);

    // Assuming you have the new title and description stored in variables
    var newDescription = data.meta_description;

    var metaTitleTag = $(“meta[name=’title’]”);

    if (metaTitleTag.length) {
    metaTitleTag.attr(“content”, decodedTitle); // Update meta title
    } else {
    $(“head”).append(”);
    }

    // Update the document title
    document.title = decodedTitle; // This updates the page title shown in the browser’s tab

    // Check if meta description exists, and update it
    var metaDescription = $(“meta[name=’description’]”);

    if (metaDescription.length) {
    metaDescription.attr(“content”, newDescription); // Update the existing meta description
    } else {
    // If meta description doesn’t exist, create it and append to the section
    $(“head”).append(”);
    }

    // Similarly, if you want to dynamically set the canonical URL as well
    var newCanonicalUrl = data.canonical_url;

    // Check if the canonical link exists
    var canonicalLink = $(“link[rel=’canonical’]”);

    if (canonicalLink.length) {
    canonicalLink.attr(“href”, newCanonicalUrl); // Update the existing canonical URL
    } else {
    // If canonical link doesn’t exist, create it and append to the
    $(“head”).append(”);
    }

    // Update keywords (if any)
    if (data.keywords) {
    let keywordsMeta = $(“meta[name=’keywords’]”);
    if (keywordsMeta.length) {
    keywordsMeta.attr(“content”, data.keywords);
    } else {
    $(“head”).append(”);
    }
    }

    history.pushState(null, decodedTitle, data.link);
    gtag(‘config’, ‘G-2EJFH5VVDZ’, {
    ‘page_title’: decodedTitle,
    ‘page_path’: data.link
    });

    } else {
    console.log(‘No more articles to load.’);
    $(window).off(‘scroll’); // Stop further loading
    }
    },
    error: function (xhr, status, error) {
    console.error(‘AJAX error:’, error);
    },
    complete: function () {
    isLoading = false;
    },
    });

    }

    

    drops Health Keralam mental renames
    HealthJustfine Team
    • Website
    • Facebook

    Related Posts

    Hawaiʻi Department of Health has tips for parents, caregivers during Safe Sleep Awareness Month | Kauai Now

    October 7, 2026

    Canada won’t expand MAID for mental illness alone, minister says – National | Globalnews.ca

    October 7, 2026

    Canada suspends plans to expand assisted dying to people with mental illness

    October 7, 2026
    Leave A Reply Cancel Reply

    Don't Miss
    Sleep Health

    Hawaiʻi Department of Health has tips for parents, caregivers during Safe Sleep Awareness Month | Kauai Now

    By HealthJustfine TeamOctober 7, 20260

    The Maternal and Child Health Branch of the Hawaiʻi Department of Health is highlighting the importance of safe sleep practices and re

    Safe Sleep Symposium held in Columbus to address infant sleep deaths

    October 7, 2026

    More than umkhaba: SA waist sizes point to growing metabolic health concerns | The Citizen

    October 7, 2026

    Canada won’t expand MAID for mental illness alone, minister says – National | Globalnews.ca

    October 7, 2026
    Stay In Touch
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    • YouTube
    • Vimeo
    Our Picks

    Expert shares 6 tips to recover faster and stronger after intense workout sessions- Moneycontrol.com

    June 28, 2026

    These Viral Fitness & Wellness Recovery Products Are Taking Over TikTok Ahead of Prime Day

    June 28, 2026

    Life Time Has Created a Fitness and Recovery Paradise – Muscle & Fitness

    June 28, 2026

    The Movement Twenty Four: New 24-Hour Fitness and Recovery Hub Opens Down South

    June 28, 2026

    Subscribe to Updates

    Get the latest creative news from SmartMag about art & design.

    About Us

    Welcome to HealthJustFine.com, your trusted destination for reliable health news, wellness insights, and evidence-based information that empowers you to live a healthier life.
    Our mission is to make quality health information accessible, easy to understand, and relevant for everyone. We believe that staying informed is the first step toward making better decisions about your health, nutrition, fitness, and overall well-being. That’s why we deliver timely updates on the latest medical research, healthy living trends, preventive care, and wellness innovations from around the world.

    Our Picks

    Hawaiʻi Department of Health has tips for parents, caregivers during Safe Sleep Awareness Month | Kauai Now

    October 7, 2026

    Safe Sleep Symposium held in Columbus to address infant sleep deaths

    October 7, 2026

    More than umkhaba: SA waist sizes point to growing metabolic health concerns | The Citizen

    October 7, 2026
    Latest Posts

    Expert shares 6 tips to recover faster and stronger after intense workout sessions- Moneycontrol.com

    June 28, 2026

    These Viral Fitness & Wellness Recovery Products Are Taking Over TikTok Ahead of Prime Day

    June 28, 2026

    Life Time Has Created a Fitness and Recovery Paradise – Muscle & Fitness

    June 28, 2026
    Facebook X (Twitter) Instagram Pinterest
    • About Us
    • Contact Us
    • Terms & Conditions
    • Privacy Policy
    • Disclaimer

    © 2026 healthjustfine.com. All rights reserved. Designed by DD.

    Type above and press Enter to search. Press Esc to cancel.