Please wait

Good Morning Kashmir 19-April-2020

'; str[0] += '
2
'; str[0] += '
3
'; str[0] += '
4
'; str[0] += '
5
'; str[0] += '
6
'; str[0] += '
7
'; str[0] += '
8
'; page_models = str; } $(document).on("click", ".rthumb_bar .thumbnail, #thumbnail_browser .thumbnail", function (e) { e.preventDefault(); loadPage($(this).attr("href")); $("a").removeClass("current"); $(this).addClass("current"); }); $(document).on("click", ".bookmarklist a", function (e) { e.preventDefault(); loadPage($(this).attr("href"),true); $("a").removeClass("current"); $(this).addClass("current"); }); $(document).on("click", ".pagination a", function (e) { e.preventDefault(); loadPage($(this).attr("href")); }); $(document).on("click", ".supptabs a", function (e) { e.preventDefault(); var spid = $(this).data("spid"); var url = $(this).attr("href"); // $(".supptabs li").removeClass("active"); // $("li[data-spid=" + spid + "]").addClass("active"); loadPage(url,true) // $(".rthumb_bar").html(page_models[spid]); }); function loadPage(url,loadthumb) { $(".loading").dialog("open"); $.ajax({ url: url, dataType: "json", success: function (response) { $(".modal-backdrop").hide(); $('#thumbnail_browser').modal("hide"); $('body').removeClass('modal-open'); spid = response.data.result.spid; spalias = response.data.result.spalias; //document.getElementById("page_area").innerHTML = response.data.result.ajax1; $("#page_area").html(response.data.result.ajax1); document.getElementById("toolbar_area").innerHTML = response.data.result.ajax2; document.getElementById("page-heading-inner").innerHTML = response.data.result.pagetitle; $("title").html(response.data.result.title); $(".loading").dialog("close"); if(loadthumb===true){ $(".rthumb_bar").html(page_models[response.data.result.spid]); } $(".rthumb_bar a").removeClass("current"); $("a[data-page=" + response.data.result.page + "]").addClass("current"); $(".rthumb_bar").scrollTo('.current'); window.history.pushState({"html": "", "pageTitle": response.data.result.title}, "", url); } }); } function highlightCurrentThumb(page) { $("a").removeClass("current"); $("a").each(function () { if ($(this).data("page") === page) { $(this).addClass("current"); } }); $(".rthumb_bar").scrollTo('.current'); } highlightCurrentThumb(1); $(document).ready(function () { $("select[name=category]").val("1"); }); $(document).on("click", ".cboxPhoto", function () { $.colorbox.close(); $(".loading").dialog("close"); }); $(document).bind('cbox_closed', function () { $(".loading").dialog("close"); });