logo-image

LATEST NEWS

covid 19

सभी
खबरें
वीडियो
फोटो
"; dontmissHTML += ''; dontmissHTML += ''; $("#dontmisswedgit").empty(); $("#dontmisswedgit").html(dontmissHTML); $("#dontmisswedgit").show(); } storyItemlength = storyItems.IplStories.length; if (storyItemlength > 0) { iplHTML +='
'; iplHTML +='

IPL 2024

'; iplHTML +='
'; iplHTML +=''; iplHTML += '
'; iplHTML += '
'; $("#iplwedgit").empty(); $("#iplwedgit").html(iplHTML); $("#iplwedgit").show(); } storyItemlength = storyItems.EntertainmentStories.length; if (storyItemlength > 0) { entertainmentHTML +='
'; entertainmentHTML +='

मनोरंजन

'; entertainmentHTML +='
'; entertainmentHTML +=''; entertainmentHTML += '
'; entertainmentHTML += '
'; $("#entertainment").empty(); $("#entertainment").html(entertainmentHTML); $("#entertainment").show(); } storyItemlength = storyItems.ReligionStories.length; if (storyItemlength > 0) { religionHTML +='
'; religionHTML +='

धर्म-कर्म

'; religionHTML +='
'; religionHTML +=''; religionHTML += '
'; religionHTML += '
'; $("#religion").empty(); $("#religion").html(religionHTML); $("#religion").show(); } window.lazySizes && lazySizes.init(); }, error: function (error) { console.log('error: '+ error); console.log(error); } }); } window.addEventListener('load', (event) => { setTimeout(getcommonMethod(), 3000); }); function getcommonMethod() { scripts1(); scripts2(); leftSecStories(); rightSecStories(); WindowLoad(); windowOnScroll(); mobilenav(); //setTimeout(nnGTPScript(), 2000); setTimeout(nnGTMScript(), 2000); //window.setInterval(function () { // getliveBlog(); // }, 10000); } function WindowLoad() { if (!getCookie("nngdpr")) { setTimeout(function () { $("#gdprbx").fadeIn(1000); }, 4000); } $("#closegdpr").on('click', function () { $("#gdprbx").fadeOut(200); setCookie("nngdpr", 90, 90); }); var maxHeight = 0; $(".max-height h3").each(function () { if ($(this).height() > maxHeight) { maxHeight = $(this).height(); } }); $(".max-height h3").height(maxHeight); $(".footer-show-hide").click(function () { if ($(".foot-wrapper").is(":visible")) $(".foot-wrapper").hide(); else $(".foot-wrapper").show(); }); $('.footer-show-hide').on('click', function () { $('.footer-show-hide a').toggleClass('arrows', 'no_highlight'); }); //silver gold page Disclaimer popup $(".disclaimer_popup").on('click', function () { $('.show_disclaimer_section').show(); }); $('.popupCloseButton').on('click', function () { $('.show_disclaimer_section').hide(); }); } function mySearchFun() { var x = document.getElementById("myDIV"); var closeIcon = document.getElementById("searchbox"); let closeBtn = document.querySelector('.searchboxClose'); let searchLense = document.getElementById('searchboxLense'); if (x.style.display === "none") { $('#searchbox').removeClass('h-search'); $('#searchbox').addClass('c-search'); x.style.display = "block"; closeBtn.style.display = 'block' searchLense.style.display = 'none'; } else { x.style.display = "none"; $('#searchbox').removeClass('c-search'); $('#searchbox').addClass('h-search'); closeBtn.style.display = 'none'; searchLense.style.display = 'block'; } } function dataSearch(e) { var code = e.keyCode ? e.keyCode : e.charCode; if (code == 13) { validSearch(); } } function validSearch() { // var str = $.trim($('#search_keyword').val()); string = $.trim($('#search_keyword').val()); $sText = string.replace(/[&\/\\#,+()@!$~%'":*?<>{}]/g, ' '); $sText = $sText.trim(); if ($sText == '') { $('#search_keyword').focus(); return false; } else { $query = $sText.split(' ').join('-'); var $qUrl = "https://beta.newsnationtv.com/topic/" + $query; $qUrl = $qUrl.toLowerCase(); window.location.href = $qUrl; return false; } } function mobilenav() { let menuBtns; const navBar = document.querySelector("nav"); menuBtns = document.querySelectorAll(".menu-icon"); overlay = document.querySelector(".overlay"); menuBtns.forEach((menuBtn) => { menuBtn.addEventListener("click", () => { navBar.classList.toggle("open"); }); }); overlay.addEventListener("click", () => { navBar.classList.remove("open"); }); }