CINXE.COM
Official Web Portal - Government of Kerala
<!DOCTYPE html> <html class="no-js" lang="en"> <head> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-6H4EZJWD2L"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-6H4EZJWD2L'); </script> <meta name="google-site-verification" content="9FtLyaZR3JBAJeCB4V-5UxYHXzHQlEyajKICe-QnDSY" > <meta charset="utf-8" > <title>Official Web Portal - Government of Kerala</title> <meta name="title" content="Official Web Portal - Government of Kerala" > <meta name="description" content="This is the official website of the Government of Kerala. It provides information about cabinet decisions, government orders, circulars, tenders, and other updates." > <meta name="keywords" content="Official web portal of Kerala Government, Government of Kerala, Kerala State Portal, Whats new,Initiatives, schemes, Invest in Kerala, achievements, Cabinet,District News, Notification,periodical,Sustainable Development Goals, Cabinet decisions,Government Orders,Circulars & Tenders, Policies, Ordinance,Guidelines, Advertisements, Announcements, District Programs, Right to Information Act, Members of the Legislature, Government institutions" > <!--<meta name="viewport" content="width=device-width, initial-scale=1"> --> <link rel="icon" type="image/png" href="https://kerala.gov.in/assets/webassets/images/favicon.png" > <!-- bootstrap 5 --> <link rel="stylesheet" href="https://kerala.gov.in/assets/webassets/css/bootstrap.min.css" > <link rel="stylesheet" href="https://kerala.gov.in/assets/webassets/css/LineIcons.3.0.css" > <link rel="stylesheet" href="https://kerala.gov.in/assets/webassets/css/main.css" > <link rel="stylesheet" href="https://kerala.gov.in/assets/webassets/calender/mini-event-calendar.css"> <link rel="stylesheet" href="https://kerala.gov.in/assets/webassets/maps/css/leaflet.css" > <link rel="stylesheet" href="https://kerala.gov.in/assets/webassets/maps/css/leaflet.label.css" > <link rel="stylesheet" href="https://kerala.gov.in/assets/calendar/calendar_custom.css" > <link rel="stylesheet" href="https://kerala.gov.in/assets/bootstrap-icons/font/bootstrap-icons.min.css" > <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://kerala.gov.in/assets/webassets/webfont/malfont.css" > </head> <body class="malfont"> <input type="hidden" value="Official Web Portal - Government of Kerala" id="img_alt"> <!-- Preloader --> <div class="preloader"> <div class="preloader-inner"> <div class="preloader-icon"> <span></span> <span></span> </div> </div> </div> <!-- /End Preloader --> <!-- Start Header Area --> <header class="header navbar-area"> <!-- Start Topbar --> <div class="topbar"> <div class="container-fluid"> <div class="row big-width-container align-items-center"> <div class="col-lg-4 col-md-4 col-12"> <div class="top-left"> <ul class="menu-top-link"> <li> <div class="select-position"> <input type="hidden" value="2"> <select id="select5" class="lang"> <option value="3" id="langswitch" selected>Select Language</option> <option value="1" id="mal" >മലയാളം</option> <option value="0" id="eng" >English</option> </select> </div> </li> </ul> </div> </div> <div class="col-lg-4 col-md-4 col-12"> <div class="top-middle"> </div> </div> <div class="col-lg-4 col-md-4 col-12 d-none d-sm-block"> <div class="top-end"> <ul class="user-login" id="topwidget"> <li><a aria-current="page" href="#main-content" id="skipcontent"></a></li> <li><a href="#" id="helptop" title="Help"><i class="fas fa-book-reader"></i></a></li> <!-- <li><a href="#">Sign In</a></li> <li><a href="#">Register</a></li> --> </ul> </div> </div> </div> </div> </div> <!-- End Topbar --> <!-- Start Header Middle --> <div class="header-middle"> <div class="container-fluid"> <div class="row big-width-container align-items-center"> <div class="col-lg-8 col-md-6 col-12"> <!-- Start Header Logo --> <a class="navbar-brand" href="https://kerala.gov.in"> <img src="https://kerala.gov.in/assets/webassets/images/demologo.png" alt="Logo" id="logoimg"> </a> <!-- End Header Logo --> </div> <div class="col-lg-4 col-md-6 mt-2"> <!-- Start Main Menu Search --> <div class="main-menu-search"> <!-- navbar search start --> <form action="https://kerala.gov.in/search" method="POST" > <input type="hidden" name="_token" value="TdQy2XzMbFFmYiF9iPPSxCMUlaVxLRE6NfU7K2c2"> <div class="navbar-search search-style-5"> <div class="search-input"> <input class="search_input" type="text" placeholder="Search" id="searchdata" name="searchdata"> </div> <div class="search-btn"> <button type="submit"><i class="lni lni-search-alt"></i></button> </div> </div> <!-- navbar search Ends --> </form> </div> <!-- End Main Menu Search --> </div> </div> </div> </div> <!-- End Header Middle --> <!-- Start Header Bottom --> <div class="nav-bg"> <div class="container"> <div class="row align-items-center"> <div class="col-lg-12 col-md-12 col-12"> <div class="nav-inner"> <!-- Start Navbar --> <nav class="navbar navbar-expand-lg sticky-top"> <button class="navbar-toggler mobile-menu-btn" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> <span class="toggler-icon"></span> <span class="toggler-icon"></span> <span class="toggler-icon"></span> </button> <div class="collapse navbar-collapse sub-menu-bar" id="navbarSupportedContent"> <ul id="nav" class="navbar-nav ms-auto mainmenus"> <li class="nav-item"><a href="https://kerala.gov.in" aria-label="Toggle navigation" id="homelbl"></a></li> </ul> </div> <!-- navbar collapse --> </nav> <!-- End Navbar --> </div> </div> <div class="col-lg-4 col-md-6 col-12"> <!-- Start Nav Social --> <div class="nav-social"> <!-- <h5 class="title" id="followus"></h5> <ul id="socialmedia"> </ul> --> </div> <!-- End Nav Social --> </div> </div> </div> <!-- End Header Bottom --> </div> </header> <!-- End Header Area --> <div id="carouselExampleControls" class="carousel slide d-none d-md-block" data-bs-ride="carousel"> <div class="carousel-inner"> <div class="carousel-item active sab"> <a href="#" target="_blank" id="ba1"><img src="https://kerala.gov.in/assets/webassets/images/banner.jpg" class="d-block w-100" alt="banner1" id="banner1"></a> </div> <div class="carousel-item"> <a href="#" target="_blank" id="ba2"><img src="https://kerala.gov.in/assets/webassets/images/banner.jpg" class="d-block w-100" alt="banner2" id="banner2"></a> </div> <div class="carousel-item"> <a href="#" target="_blank" id="ba3"><img src="https://kerala.gov.in/assets/webassets/images/banner.jpg" class="d-block w-100" alt="banner3" id="banner3"></a> </div> <div class="carousel-item" > <a href="#" target="_blank" id="ba4"><img src="https://kerala.gov.in/assets/webassets/images/banner.jpg" class="d-block w-100" alt="banner4" id="banner4"></a> </div> <div class="carousel-item" > <a href="#" target="_blank" id="ba5"><img src="https://kerala.gov.in/assets/webassets/images/banner.jpg" class="d-block w-100" alt="banner5" id="banner5"></a> </div> </div> <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="prev"> <span class="carousel-control-prev-icon" aria-hidden="true"></span> <span class="visually-hidden">Previous</span> </button> <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="next"> <span class="carousel-control-next-icon" aria-hidden="true"></span> <span class="visually-hidden">Next</span> </button> </div> <!-- <section class="hero-area"> <div class="container-fluid d-none d-sm-block"> <div class="row"> <div class="col-lg-12 col-12 custom-padding-right"> <div class="slider-head"> <div class="hero-slider"> <div class="single-slider" id="banner1"> <div class="content"> <h2 id="bannertitle1"></h2> <p id="bannersubtitle1"></p> <div class="button"> </div> </div> </div> <div class="single-slider" id="banner2"> <div class="content"> <h2 id="bannertitle2"></h2> <p id="bannersubtitle2"></p> <div class="button"> </div> </div> </div> <div class="single-slider" id="banner3"> <div class="content"> <h2 id="bannertitle3"></h2> <p id="bannersubtitle3"></p> <div class="button"> </div> </div> </div> <div class="single-slider" id="banner4"> <div class="content"> <h2 id="bannertitle4"></h2> <p id="bannersubtitle4"></p> <div class="button"> </div> </div> </div> </div> <div class="my-indicators single-blog alpha"> <div> <p class="malfont18"><strong>പദ പരിചയം</strong></p> <h4 class="malfont22">വാതിൽപ്പടി സേവനം</h4> <p class="malfont18" style="color:#000000;">അശരണർക്കും ആലംബഹീനർക്കും കരുതൽ സ്പർശമായി സർക്കാർ പ്രഖ്യാപിച്ച പദ്ധതിയാണ് "വാതിൽപ്പടി സേവനം"</p> </div> </div> </div> </div> </div> </div> </section> --> <!-- End Hero Area --><section class="home-product-list small-section"> <div class="container" id="main-content"> <div class="row" id="shortalertcol"> <div class="col-lg-2 col-md-12 col-12"> <div class="wish-button"> <img src="https://kerala.gov.in/assets/webassets/images/attention.png" class="mx-auto d-block" alt="dailyalert"> </div> </div> <div class="col-lg-10 col-md-12 col-12 alert-main"> <!-- <div class="small dailalertts">05 / 09 / 2021</div> --> <h4 id="shortaltitle">Loading..</h4> <p id="shortalcontent"></p> </div> </div> </div> </section><section class="home-product-list section"> <div class="container-fluid "> <div class="row whatsnew-container " > <div class="col-lg-3 col-md-3 col-12 centered-mobile d-flex flex-column justify-content-between" > <h4 class="list-title" id="govthead">Loading..</h4> <div class="single-list text-center centered-mobile"> <figure class="figure"> <img id="deptimg1" src="https://kerala.gov.in/assets/webassets/images/gok.png" class="img-thumbnail profile-pic figure-img img-fluid rounded" alt="ഗവർണർ"> <figcaption class="figure-caption text-center"> <h5 class=""><span id="deptdesg1">ഗവർണർ</span></h5> <a href="" id="deptuser1link"><h6 id="deptuser1" class="">Loading..</h6></a> </figcaption> </figure> </div> <div class="single-list text-center"> <figure class="figure"> <img id="deptimg2" src="https://kerala.gov.in/assets/webassets/images/gok.png" class="img-thumbnail profile-pic figure-img img-fluid rounded" alt="മുഖ്യമന്ത്രി"> <figcaption class="figure-caption text-center"> <h5 class=""><span id="deptdesg2">മുഖ്യമന്ത്രി</span></h5> <a href="" id="deptuser2link"><h6 id="deptuser2">Loading..</h6></a> </figcaption> </figure> </div> <!-- <a href="https://kerala.gov.in/showcalendar" > --> <!-- <h5 id="calendar2022" class="mb-2 text-center">കലണ്ടർ</h5></a> --> <!-- <div id="calendar"></div> --> <div class="text-center p-3"> <a href="https://kerala.gov.in/articledetail/ODA3OTUwMjE5LjEy/1"> <img src="https://kerala.gov.in/assets/img/sidebanner/side banner_mmnk.jpg" alt="sidebanner"> </a> </div> <div class="sidebutton mx-2 mt-4"> <a href="https://kerala.gov.in/sdg" title="" > <div class="img-container"> <img src="https://kerala.gov.in/assets/webassets/images/bannersustainabledevelopmentgoalseng.jpg" alt="sustainabledevelopmentgoals" class="img-fluid "> </div> <p class="text-center" id="sdgbtn">സുസ്ഥിര വികസന ലക്ഷ്യങ്ങൾ</p> </a> </div> </div> <div class="col-lg-6 col-md-6 col-12 custom-responsive-margin d-flex flex-column justify-content-between" > <h3 class="list-title" id="newshead">Loading..</h3> <div class="clearfix whatsanewbox1 justifyp" id="anukalikam_main_content"> </div> <div class="row mt-4 row-eq-height justifyp anukalikam_sub_content" id="anukalikam_sub_content"> </div> </div> <div class="col-lg-3 col-md-3 col-12 custom-responsive-margin d-flex flex-column justify-content-between" > <h4 class="list-title " id="whatsnewhead">Loading..</h4> <div id="whatsnewlist" class="whatsnewarea"></div> <div class="wish-button pt-3 "> <a href="https://kerala.gov.in/newsandannouncements" class="btn viewmore"><i class="lni lni-angle-double-right"></i> </a> </div> <hr> <div class="mb-4 wordroday p-4 mt-2 justifyp justifyp" id="innathevakk"> </div> <div class="light cbtn-group"> <div class="button-wrap" id="whatsnewsidelinks"> <!-- <a href="" title="അവധി ദിനങ്ങൾ 2022"> അവധി ദിനങ്ങൾ 2022 </a> <a class="c-a-blue" href="" title="അവശ്യ ഫോൺ നമ്പറുകൾ"> അവശ്യ ഫോൺ നമ്പറുകൾ </a> --> </div> </div> <div class="mt-3"> <div class="sidebutton mx-2 "> <a href="https://kerala.gov.in/banners" title="" id="bannergallerylink"> <div class="img-container"> <img src="https://kerala.gov.in/assets/webassets/images/bannersustainabledevelopmentgoalseng.jpg" id="bannergallery" alt="bannershome" class="img-fluid "> </div> <p class="text-center" id="bannershome">ബാനറുകൾ</p> </a> </div> </div> </div> </div> </div> </section> <section class=" portfolio-area bg-1 py-4"> <div class="container-fluid "> <div class="row whatsnew-container"> <div class="col-md-12 home-product-list"> <h3 class="list-title centered-mobile hundred-day-title" data-uw-styling-context="true" id="achievement_title">Loading..</h3> </div> </div> <div class="row whatsnew-container justify-content-center portfolios portfolio-popup-gallery-active " id="achievement"> </div> </div> </section> <!-- initiatives --> <section class="block-parallax-1"> <div class="parallax-bg" style="background-image: url('https://kerala.gov.in/assets/webassets/images/kerala1.jpg');"></div> <div class="md-box"> <div class="container pb-3"> <div class="row align-items-center"> <div class="col-lg-6 col-md-12 col-12 pt-5 pb-5"> <div class="content-left"> <div class="ratio ratio-16x9"> <!-- <iframe src="https://www.youtube.com/embed/JL7xt-cHJd0?si=I7Zlem2ch-_8dda8" title="Navakerala Sadas" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> --> <iframe src="https://www.youtube.com/embed/jdCBsKi5hkA?si=K5TKzG2ULxZXNl79" title="Video" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> <!-- <iframe src="https://www.youtube.com/embed/UOwSv_nGRyo?si=Fz0DX4RmwdLkvSR9" title="Navakerala Sadas" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe> --> <!-- <iframe src="https://www.youtube.com/embed/QqKhzEQzPZ8?autoplay=0&mute=0&loop=0&color=white&modestbranding=1&playsinline=1&rel=0&enablejsapi=1&playlist=QqKhzEQzPZ8" title="No drugs" allow="accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> --> </div> </div> </div> <div class="col-lg-6 col-md-12 col-12" > <div class="justifyp"> <h2 class="text-white" id="longaltitle">Long alert</h2> <p class="articlebrief text-justify-break-all text-white" id="longalbrief"></p> <div class="col-6 mt-3 "> <div class="wish-button "> <a href="https://kerala.gov.in/mediaalertdetail" class="btn btn-sm btn-flat readmore" id="readmore"><i class="lni lni-angle-double-right"></i></a> </div> </div> </div> </div> </div> </div> </div> </section> <section class="shipping-info"> <div class="container widget_card pb-4 px-3"> <div class="row" id="servicewidget"> <h2 class="d-none">Services</h2> </div> </div> </section> <section class="section blog-section blog-list"> <div class="container"> <div class="row" id="articlelist"> <div class="col-12"> <div class="section-title"> <h2 class="wow fadeInUp" data-wow-delay=".4s" id="announcehead">Article</h2> </div> </div> </div> </div> </section> <!-- achivements --> <section class="tourism" style="background-image: url(https://kerala.gov.in/assets/webassets/images/Kerala-tourism1.jpg)"> <div class="content "> <div class="container pb-4"> <div class="row"> <div class="col-md-6 pt-5 pb-5"> <h2 id="keralatourismhead">Kerala tourism</h2> <hr> <div class="row" id="tourismwidget"> </div> </div> <div class="col-md-6"> <div id="map"></div> </div> </div> </div> </div> </section> <section> <div class="container mb-5 widget3"> <div class="row pl-3" id="widgetimportant"> <h2 class="d-none">Important links</h2> </div> <div id="chatbotdiv"> <script> var url="https://chat.kerala.gov.in/chatbotwidget"; var imgurl="https://chat.kerala.gov.in/uploads/chatting-app.png"; var botmanWidget = { frameEndpoint: url, bubbleAvatarUrl: imgurl, introMessage: "✋ Hi! Welcome to Kerala Gov ChatBot. Type 'Hi' to continue..." }; </script> <script src="https://chat.kerala.gov.in/js/widget.js"></script></div> </div> </section> <section class="call-action section d-none d-sm-block"> <div class="container"> <div class="row text-center"> <div class="col-md-12"> <div class="inner"> <div class="content"> <h2 class="wow fadeInUp" data-wow-delay=".4s" id="sitelisthead">sitelisthead</h2> <div class="button wow fadeInUp" data-wow-delay=".8s"> <div class="row align-items-center" id="weblogos"> <!-- --> </div> </div> </div> </div> </div> </div> </div> </section><!-- Start Footer Area --> <footer class="footer"> <!-- Start Footer Middle --> <div class="footer-middle"> <div class="container"> <div class="bottom-inner"> <div class="row"> <div class="col-lg-3 col-md-6 col-12"> <div class="single-footer f-contact"> <h3 id="touchhead">touchhead</h3> <p class="text-white" id="contact_address"> </p> <!-- <p class="phone">Phone: +91 471 2525444</p> --> <!-- <div class="col-12 pt-2 visitorcount"> <a href="https://old.kerala.gov.in/" target="_blank" class="text-white font_small"> <h5><span class="badge bg-visitor" > പഴയ വെബ്സൈറ്റ് സന്ദർശിക്കുക </span></h5> </a> </div> --> <!-- <p class="mail"> </p> --> </div> </div> <div class="col-lg-3 col-md-6 col-12" id="mobileapp"> <div class="single-footer our-app"> <h3 id="mobilehead">mobilehead</h3> <ul class="app-btn"> <li> <a data-toggle="tooltip" data-placement="top" title="" href="https://kerala.gov.in/mobileapps"> <i class="lni lni-mobile"></i> <p class="small-title text-left" id="mobileapp1"></p> <p class="big-title text-left" id="mobileapp2"></p> </a> </li> </ul> <h3 class="mt-3" id="notification_head">Receive Notification</h3> <form method="post"> <input type="hidden" name="_token" value="TdQy2XzMbFFmYiF9iPPSxCMUlaVxLRE6NfU7K2c2"> <div id="subscribe"> <p class="text-white text-left" id="p_suscribe">Provide your mobile number for receiving notifications through SMS. </p> <div class="input-group mb-3 mt-3"> <input type="text" onkeydown="return ( event.ctrlKey || event.altKey || (47<event.keyCode && event.keyCode<58 && event.shiftKey==false) || (95<event.keyCode && event.keyCode<106) || (event.keyCode==8) || (event.keyCode==9) || (event.keyCode>34 && event.keyCode<40) || (event.keyCode==46) )" class="form-control" placeholder="Mobile Number" aria-label="Mobile Number" minlength="10" maxlength="10" id="input_subscribe"> <button class="btn bg-visitor" type="button" id="btn_subscribe">Subscirbe</button> </div> <div class="row my-2"> <div class="col-7 captcha"> <span><img src="https://kerala.gov.in/captcha/default?cSHLRLo3" alt="CAPTCHA Image"></span> <button type="button" class="btn btn-danger refresh-captcha" id="refresh-captcha">↻</button> </div> <div class="col-5 "> <input id="captchasms" type="text" class="form-control" placeholder="Enter Captcha" name="captcha" required> </div> <!-- ./col-md-6 --> </div> </div> <div id="otp"> <p class="text-white" id="p_enter">Enter the OTP received. </p> <div class="input-group mb-3 mt-3"> <input type="text" class="form-control" placeholder="Enter OTP" aria-label="Mobile Number" id="input_enter"> <button class="btn bg-visitor" type="button" id="btn_enter">Verify</button> </div> </div> <div id="result"> <p class="text-white text-left" id="p_resulr"></p> </div> <div id="resendotp"> <div class="d-grid gap-2"> <button class="btn btn-sm bg-visitor mt-2" type="button" id="btn-otp-resend">Resend OTP</button> </div> </div> </form> <div class="alert alert-warning" role="alert" id="error_subscribe"> Please check value entered </div> </div> </div> <div class="col-lg-3 col-md-6 col-12"> <div class="single-footer f-link"> <h3 id="aboutgovthead">aboutgovthead</h3> <ul id="footerlinks"> </ul> </div> </div> <div class="col-lg-3 col-md-6 col-12"> <div class="single-footer f-link"> <h3 id="infmnhead">infmnhead </h3> <ul id="footermenus"> </ul> <ul class="pt-2" > <li class="" id="helplist"><a href="javascript:void(0)"><span class="help"></span></a></li> </ul> <ul class="pt-2" > <li class="" id="faqlistt"><a href="javascript:void(0)"><span class="faqq"></span></a></li> </ul> </div> </div> </div> </div> </div> </div> <!-- End Footer Middle --> <!-- Start Footer Bottom --> <div class="footer-bottom"> <div class="container"> <div class="inner-content"> <div class="row"> <div class="col-lg-8 col-12"> <div class="copyright"> <p> <span id="footer-content"></span> <span id="footer-subtitle"></span> <hr> <p class="text-white" id="lastviewhead"> <span id="site_update_date"></span></p> </div> </div> <div class="col-lg-4 col-12 text-right"> <div class="row "> <div class="col-12"> <p id="followusfooter" class="text-white d-flex justify-content-center justify-content-lg-end"></p> <ul class="socila" id="footermedia1"> <li> </li> </ul> </div> <!-- ./innercol1 --> <div class="col-12 pt-4 justify-content-end text-end"> <a href="https://guidelines.india.gov.in/" target="_blank" title="This will open a new website"><img src="https://kerala.gov.in/assets/webassets/images/2020032618.jpg" alt="https://guidelines.india.gov.in/, Guidelines for Indian Government Websites" class="mb-2 gigwimage"> </a><br> <img src="https://kerala.gov.in/assets/webassets/images/w3c_icon1.png" alt="W3C Compliance"> <!-- <a href="https://www.g20.org/en/" target="_blank" title="This will open a new website"><img src="https://kerala.gov.in/assets/webassets/images/g2.png" alt="g2"> </a> --> </div> <!-- ./innercol2 --> </div> <!-- ./inner-row--> </div> </div> <div class="row"> <div class="col-lg-8 col-12"> <div > <p class="text-white"> <span id="sitecompinfo"></span></p> </div> </div> <div class="col-12 pt-2 visitorcount"> <a href="https://kerala.gov.in/assets/uploads/VisitAnalysisReport.pdf" target="_blank" class="text-white font_small"> <h5><span class="badge bg-visitor" id="visitorcounter"> Visitor</span></h5> </a> </div> </div> </div> </div> </div> <!-- End Footer Bottom --> </footer> <!-- <div class="toast-container"></div> --> <!-- modal window livestreaming and footer --> <!-- Help modal --> <div class="modal fade" id="helpmodal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-xl" role="document" id="exampleModalLabel"> <div class="modal-content modalevenrow"> <div class="modal-header modalevenrow"> <h4 class="modal-titlehelp text-primary"><i class="fas fa-hands-helping"></i> <span class="help"></span> </h4> <button type="button" class="btn-close close2" data-dismiss="modal"></button> </div> <!-- ./modal-header --> <span id="formresults"></span> <form id="ajaxmodalform" method="post" class="form-horizontal"> <div class="modal-body modalevenrow text-dark"> <div class="row p-2 modaloffrow"> <div class="col-12" id="helpcontentdiv"> </div> <!-- ./col6 --> </div> <!-- ./row1 --> </div> <!-- ./modal-body --> <div class="modal-footer modaloffrow"> </div> <!-- ./modal-footer --> </form> <!-- ./form --> </div> <!-- ./modal-content --> </div> <!-- ./modal-dialog --> </div> <!-- Help modal --> <div class="modal fade" id="faqtransactionmodal" tabindex="-1" role="dialog" aria-labelledby="faqcontentdiv" aria-hidden="true"> <div class="modal-dialog modal-xl" role="document"> <div class="modal-content modalevenrow"> <div class="modal-header modalevenrow"> <h4 class="modal-titlefaq text-primary faqheading"><i class="fas fa-users-cog"></i> </h4> <button type="button" class="close3 btn-close" data-dismiss="modal"></button> </div> <!-- ./modal-header --> <span id="formresults1"></span> <form id="ajaxmodalform1" method="post" class="form-horizontal"> <div class="modal-body modalevenrow text-dark"> <div class="row p-2 modaloffrow"> <div class="col-12" id="faqcontentdiv"> </div> <!-- ./col6 --> </div> <!-- ./row1 --> </div> <!-- ./modal-body --> <div class="modal-footer modaloffrow"> </div> <!-- ./modal-footer --> </form> <!-- ./form --> </div> <!-- ./modal-content --> </div> <!-- ./modal-dialog --> </div> <!-- ./transaction_modal --> <!--track complaint --> <div class="modal fade" id="transactionmodal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content modalevenrow"> <div class="modal-header modalevenrow"> <h4 class="modal-title text-primary"><i class="fas fa-users-cog"></i> Custom Ajax Title </h4> <button type="button" class="btn-close close1" data-dismiss="modal"></button> </div> <!-- ./modal-header --> <span id="formresults2"></span> <form id="ajaxmodalform2" method="post" class="form-horizontal"> <div class="modal-body modalevenrow text-dark"> <div class="row p-2 modaloffrow"> <div class="col-12 d-flex justify-content-center" id="contentdiv"> </div> <!-- ./col6 --> </div> <!-- ./row1 --> </div> <!-- ./modal-body --> <div class="modal-footer modaloffrow"> </div> <!-- ./modal-footer --> </form> <!-- ./form --> </div> <!-- ./modal-content --> </div> <!-- ./modal-dialog --> </div> <!-- ./transaction_modal --> <!--Visitor count --> <div class="modal fade" id="visitormodal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content modalevenrow"> <div class="modal-header modalevenrow"> <h4 class="modal-title text-primary"><i class="fas fa-eye"></i> Visitors</h4> <button type="button" class="btn-close close4" data-dismiss="modal"></button> </div> <!-- ./modal-header --> <span id="formresults3"></span> <form id="ajaxmodalform3" method="post" class="form-horizontal"> <div class="modal-body modalevenrow text-dark"> <div class="row p-2 modaloffrow"> <div class="col-12 justify-content-center" > <h3 class="text-center">Visit Analysis Report</h3> <p class="text-center"><a href="https://kerala.gov.in/assets/uploads/VisitAnalysisReport.pdf" class="btn btn-info" target="_blank">Download</a></p> </div> <!-- ./col6 --> </div> <!-- ./row1 --> </div> <!-- ./modal-body --> <div class="modal-footer modaloffrow"> </div> <!-- ./modal-footer --> </form> <!-- ./form --> </div> <!-- ./modal-content --> </div> <!-- ./modal-dialog --> </div> <!-- ./transaction_modal --> <!--/ End Footer Area --> <!-- scroll-top --> <a href="#" class="scroll-top"> <i class="lni lni-chevron-up"></i> </a> <script> $(document).ready(function() { $(document).on("click", ".refresh-captcha", function(event){ $.ajax({ type:'GET', url:'https://kerala.gov.in/refresh_captcha', success:function(data){ $(".captcha span").html(data.captcha); } }); }); }); //mobile notification code $('#error_subscribe').hide(); $('#resendotp').hide(); $('#input_subscribe').on('keyup', function(e) { var testres = mobileval('#input_subscribe', this.value); if (!testres) { $('#error_subscribe').show(); } else { $('#error_subscribe').hide(); } }); $('#input_subscribe').focusout(function(){ $('#error_subscribe').hide(); }); $('#input_subscribe').focusin(function(){ var testres = mobileval('#input_subscribe', this.value); if (!testres) { $('#error_subscribe').show(); } else { $('#error_subscribe').hide(); } }); $('#btn_subscribe').on('click',function(){ var mobileno = $('#input_subscribe').val(); var captcha = $('#captchasms').val(); $.ajax({ url :"/subscribe", type : "post", headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, data : { "_token": "TdQy2XzMbFFmYiF9iPPSxCMUlaVxLRE6NfU7K2c2","mobile":mobileno,"captcha":captcha}, dataType:"json", success:function(data) { if(typeof data.success === 'undefined') { if(typeof data.error != 'undefined') { $('#p_resulr').html(data.error); $('#result').show(); $('#otp').hide(); $('#subscribe').show(); } } else { // $('#otp').show(); $('#subscribe').hide(); $('#p_resulr').html('<span class="alert alert-primary">'+data.success+'</span>'); $('#result').show(); } } }); }); $('#btn_enter').on('click',function(){ var otp = $('#input_enter').val(); $.ajax({ url :"/verifyotp", type : "post", data : { "_token": "TdQy2XzMbFFmYiF9iPPSxCMUlaVxLRE6NfU7K2c2","otp":otp}, dataType:"json", success:function(data) { if(typeof data.success === 'undefined') { if(typeof data.error != 'undefined') { $('#p_resulr').html(data.error); $('#result').show(); $('#otp').hide(); $('#subscribe').hide(); $('#resendotp').show(); } } else { $('#otp').show(); $('#subscribe').hide(); $('#resendotp').hide(); } } }); }); $('#btn-otp-resend').on('click',function(){ $.ajax({ url :"/resendotp", type : "get", dataType:"json", success:function(data) { if(typeof data.success === 'undefined') { if(typeof data.error != 'undefined') { // $('#p_resulr').html(data.error); // $('#result').show(); // $('#otp').hide(); // $('#subscribe').hide(); // $('#resendotp').show(); } } else { $('#otp').show(); $('#resendotp').hide(); $('#result').hide(); $('#input_enter').val(''); } } }); }); jQuery(".captcha img").attr("alt", "Captcha Image"); //end mobile nottifcations </script> </body> </html> <script src="https://kerala.gov.in/assets/js/popper.min.js"> </script> <script src="https://kerala.gov.in/assets/js/bootstrap.bundle.min.js"></script> <script src="https://kerala.gov.in/assets/webassets/maps/js/leaflet.js" defer></script> <script src="https://kerala.gov.in/assets/webassets/maps/js/leaflet.label.js" defer></script> <script src="https://kerala.gov.in/assets/webassets/maps/js/choropleth.js" defer></script> <!-- font icon --> <script src="https://kerala.gov.in/assets/fontawesome/all.min.js"> </script> <!-- for preloader and scroll top --> <script src="https://kerala.gov.in/assets/js/main.js"></script> <script>(function(d){var s = d.createElement("script");s.setAttribute("data-position", 2);s.setAttribute("data-account", "g19ihCEBLb");s.setAttribute("src", "https://cdn.userway.org/widget.js");(d.body || d.head).appendChild(s);})(document)</script><noscript>Please ensure Javascript is enabled for accessibility</noscript> <script src="https://kerala.gov.in/assets/webassets/calender/mini-event-calendar.js"></script> <!-- jquery --> <script src="https://kerala.gov.in/assets/js/jquery-3.6.0.min.js"> </script> <script> function validateURL(link) { if (link.indexOf("http://") == 0 || link.indexOf("https://") == 0) { return true; } else{ return false; } } $.ajax({ url :"/chatfront", dataType:"json", success:function(data) { console.log("succ"+data.chatbotwidget); //chatbot //console.log(data.chatbotwidget); $("#chatbotdiv").html(''); $("#chatbotdiv").html(data.chatbotwidget); }, error:function(dataerr){ console.log("dataerr"+dataerr); } }); $( document ).ready(function() { $.ajax({ url :"/chatfront", dataType:"json", success:function(data) { console.log("succ"+data.chatbotwidget); //chatbot //console.log(data.chatbotwidget); $("#chatbotdiv").html(''); $("#chatbotdiv").html(data.chatbotwidget); }, error:function(dataerr){ console.log("dataerr"+dataerr); } }); /*chatbot close*/ $('img').attr('alt',$('#img_alt').val()); var acturlsubdetail=''; $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $("#result").hide(); $("#otp").hide(); var map = $("#map").val(); if (map != null){ initializemap(); } //showSlides(); //on page load $.ajax({ url :"/setvalueshomepage", dataType:"json", success:function(data) { if(data.logo!=null){ $("#logoimg").attr('src',"https://kerala.gov.in/Logo/"+data.logo.file); } //Social Media $.each(data.socialmedia, function (i) { $("#socialmedia").append('<li><a href="'+data.socialmedia[i].url+'" data-toggle="tooltip" data-placement="top" title="'+data.socialmedia[i].tooltip+'" target="_blank" ><i class="'+data.socialmedia[i].iconclass+'"></i></a></li>'); }); $.each(data.socialmedia, function (i) { $("#footermedia1").append('<li><a href="'+data.socialmedia[i].url+'" data-toggle="tooltip" data-placement="top" title="'+data.socialmedia[i].tooltip+'" target="_blank" ><i class="'+data.socialmedia[i].iconclass+'"></i></a></li>'); }); if(data.footer){ $('#footer-content').append(data.footer.title); $('#footer-subtitle').append(data.footer.subtitle); } //Site updated if(data.siteupdated!=null){ $("#lastviewhead").append(' '+data.siteupdated.titlevalues); } //Contact us if(data.address){ $('#contact_address').append(data.address.content) } //console.log(data.sitecontrollabels); $("#skipcontent").html(data.sitecontrollabels[7].title); $("#followus").append(data.sitecontrollabels[8].title); $("#dailyalertt").append(data.sitecontrollabels[9].title); $("#govthead").html(data.sitecontrollabels[10].title); $("#newshead").html(data.sitecontrollabels[11].title); $(".readmore").append(data.sitecontrollabels[3].title); $(".dowloadfont").append(data.sitecontrollabels[80].title); $("#whatsnewhead").html(data.sitecontrollabels[12].title); $("#announcehead").html(data.sitecontrollabels[81].title); $("#sitelisthead").html(data.sitecontrollabels[13].title); $("#touchhead").html(data.sitecontrollabels[14].title); $("#mobilehead").html(data.sitecontrollabels[15].title); $("#aboutgovthead").html(data.sitecontrollabels[16].title); $("#infmnhead").html(data.sitecontrollabels[17].title); $("#followusfooter").append(data.sitecontrollabels[8].title); $("#site_update_date").append(data.sitecontrollabels[20].title+' '); $("#homelbl").html(data.sitecontrollabels[25].title); $("#searchdata").attr('placeholder',data.sitecontrollabels[26].title); $("#small-title1").append(data.sitecontrollabels[21].title); $("#download1").attr('title',data.sitecontrollabels[21].title+' '+data.sitecontrollabels[22].title); $("#bannergallerylink").attr('title',data.sitecontrollabels[65].title); /* if(data.sessionbil==1){ $("#download1").attr('title','Currently not available'); } else { $("#download1").attr('title','നിലവിൽ ലഭ്യമല്ല'); }*/ //console.log(data.sitecontrollabels); $("#mobileapp1").append(data.sitecontrollabels[66].title); $("#mobileapp2").append(data.sitecontrollabels[67].title); $("#small-title2").append(data.sitecontrollabels[23].title); $("#app-store").append(data.sitecontrollabels[22].title); $("#google-play").append(data.sitecontrollabels[24].title); $("#download2").attr('title',data.sitecontrollabels[23].title+' '+data.sitecontrollabels[24].title); $("#small-title3").append(data.sitecontrollabels[61].title); $("#kerala-diary").append(data.sitecontrollabels[62].title); $("#small-title4").append(data.sitecontrollabels[66].title); $("#kerala-diary4").append(data.sitecontrollabels[67].title); $("#download3").attr('title',data.sitecontrollabels[61].title+' '+data.sitecontrollabels[62].title); $("#calendar2022").html(data.sitecontrollabels[63].title); // $("#footer-title1").append(data.sitecontrollabels[28].title); // $("#footer-title2").append(data.sitecontrollabels[29].title); // $("#footer-title3").append(data.sitecontrollabels[27].title); $(".viewmore").append(data.sitecontrollabels[4].title); $(".help").append(data.sitecontrollabels[30].title); $(".faqq").append(data.sitecontrollabels[31].title); //tourism widget $("#keralatourismhead").html(data.sitecontrollabels[44].title); //sdg $("#sdgbtn").html('<i class="lni lni-youtube"></i> '+data.sitecontrollabels[53].title); $("#sdgbtn").attr('title',data.sitecontrollabels[53].title); //banner $("#bannershome").html('<i class="far fa-images"></i> '+data.sitecontrollabels[65].title); $("#bannershome").attr('title',data.sitecontrollabels[65].title); /*Feedback label*/ $("#feedbackheadinglbl").html(data.sitecontrollabels[33].title); $("#namelbl").html(data.sitecontrollabels[34].title); $("#emaillbl").html(data.sitecontrollabels[35].title); $("#mobilelbl").html(data.sitecontrollabels[36].title); $("#subjectlbl").html(data.sitecontrollabels[37].title); $("#contentlbl").html(data.sitecontrollabels[38].title); $("#captchalbl").html(data.sitecontrollabels[39].title); $("#name").attr('placeholder',data.sitecontrollabels[34].title); $("#email").attr('placeholder',data.sitecontrollabels[35].title); $("#mobile").attr('placeholder',data.sitecontrollabels[36].title); $("#subject").attr('placeholder',data.sitecontrollabels[37].title); $("#content").attr('placeholder',data.sitecontrollabels[38].title); $("#captcha").attr('placeholder',data.sitecontrollabels[39].title); $("#calenderhead").html(data.sitecontrollabels[42].title); $(".feedbackbtn").append(data.sitecontrollabels[40].title); $("#nnamelbl").html(data.sitecontrollabels[34].title); $("#commentatorname").attr('placeholder',data.sitecontrollabels[34].title); $("#eparticipatelbladdress").html(data.sitecontrollabels[57].title); $("#eparticipatelblcontcantcat").html(data.sitecontrollabels[58].title); $("#eparticipatelblcontcantdetail").html(data.sitecontrollabels[59].title); $("#contributordetails").attr('placeholder',data.sitecontrollabels[59].title); $("#address").attr('placeholder',data.sitecontrollabels[57].title); $("#contributorname").attr('placeholder',data.sitecontrollabels[34].title); $("#survaymodeltitle").html(data.sitecontrollabels[52].title); $("#survaycomments").html(data.sitecontrollabels[60].title); $("#comments").attr('placeholder',data.sitecontrollabels[60].title); $("#dislblcomments").html(data.sitecontrollabels[60].title); $("#livevideo").attr('title',data.sitecontrollabels[56].title); $("#visitorcounter").html(' <i class="fas fa-walking"></i> '+data.sitecontrollabels[64].title); $("#visitormodelhead").html(' <i class="fas fa-eye"></i> '+data.sitecontrollabels[64].title); //notifications $("#notification_head").html(data.sitecontrollabels[69].title); $("#p_suscribe").html(data.sitecontrollabels[70].title); $("#btn_subscribe").html(data.sitecontrollabels[73].title); $('#input_subscribe').attr('placeholder', data.sitecontrollabels[75].title); $("#p_enter").html(data.sitecontrollabels[71].title); $("#input_enter").attr('placeholder', data.sitecontrollabels[71].title); $("#btn_enter").html(data.sitecontrollabels[74].title); $("#p_resulr").html(data.sitecontrollabels[72].title); $("#error_subscribe").html(data.sitecontrollabels[77].title); //hundred days programme // $("#hundred_days_title").html(data.sitecontrollabels[78].title) hdayurl = "https://kerala.gov.in/hundreddaysprogram"; $("#hundred_days_title").html(data.sitecontrollabels[78].title+' <span class="float-end"><a href="'+hdayurl+'"><i class="fas fa-angle-double-right"></i></span></a>'); //forwoman forwomanyurl = "https://kerala.gov.in/forwomanloadmore"; $("#forwoman_title").html(data.sitecontrollabels[79].title+' <span class="float-end"><a href="'+forwomanyurl+'"><i class="fas fa-angle-double-right"></i></span></a>'); //achievements achivementsyurl = "https://kerala.gov.in/initiatives"; //achivementsyurl = "https://kerala.gov.in/achievementloadmore"; $("#achievement_title").html(data.sitecontrollabels[41].title+' <span class="float-end"><a href="'+achivementsyurl+'"><i class="fas fa-angle-double-right"></i></span></a>'); //navakerala navakeralaurl = "https://kerala.gov.in/navakeralaloadmore"; $("#navakerala_title").html(data.sitecontrollabels[82].title+' <span class="float-end"><a href="'+navakeralaurl+'"><i class="fas fa-angle-double-right"></i></span></a>'); //chatbot //console.log(data.chatbotwidget); $("#chatbotdiv").html(data.chatbotwidget); //Menus start html= ''; var sub_menu_len = ''; var test =0; $.each( data.mainmenu, function(i) { var sub_menu_length = data.mainmenu[i].sub_menus.length; id = data.mainmenu[i].id; mainencid = data.mainmenu[i].mainencid; if(data.mainmenu[i].menulinktypes_id==6){ if(sub_menu_length > 6){ html+='<li class="nav-item">'; html+='<a class="dd-menu collapsed" href="javascript:void(0)" data-bs-toggle="collapse" data-bs-target="#submenu-1-1" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation" id="'+data.mainmenu[i].id+'" title="'+data.mainmenu[i].tooltip+'">'+data.mainmenu[i].title+'</a>'; html+='<ul class="sub-menu collapse sub-menu-maxwidth" id="submenu-1-1"><li><div class="row">'; if(data.mainmenu[i].sub_menus != ''){ sub_menu_len = data.mainmenu[i].sub_menus.length; var count=0; $.each( data.mainmenu[i].sub_menus, function(index,subMenuValue) { var encsubid = ''; subid = subMenuValue.id; encsubid = subMenuValue.encsubid; if(count %6 == 0){ html += '<div class="col-md-4"><ul>'; } if(subMenuValue.maintitle=='Departments'){ acturl = "https://kerala.gov.in/deptdetails"; html +='<li class="nav-item"> <a href="'+ acturl +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } else if(subMenuValue.menulinktypes_id==4 ){ acturlsubdetail = "https://kerala.gov.in/subdetail" + '/' + encsubid + '/' + mainencid; html +='<li class="nav-item"><a href="'+ acturlsubdetail +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } else if(subMenuValue.menulinktypes_id==2 ){ acturl = subMenuValue.file ; html +='<li class="nav-item"><a target="_blank" data-toggle="tooltip" data-placement="top" title="'+data.toolmsg+'" href="'+ acturl +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } else if(subMenuValue.menulinktypes_id==5 ){ acturl = subMenuValue.file ; html +='<li class="nav-item"><a href="https://kerala.gov.in/'+ acturl +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } else if(subMenuValue.menulinktypes_id==1 ){ acturl =subMenuValue.file ; html +='<li class="nav-item">a href="'+ acturl +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } else if(subMenuValue.menulinktypes_id==3 ){ acturl ="https://kerala.gov.in/Submenu/"+subMenuValue.file ; html +='<li class="nav-item"><a href="'+ acturl +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } else if(subMenuValue.menulinktypes_id==13 ){ acturlsubdetail = "https://kerala.gov.in/appdepartmentdetail/"+subMenuValue.enfile ; html +='<li class="nav-item"><a href="'+ acturlsubdetail +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } count ++; if(count %6 == 0){ html += '</ul></div>'; } }); } html+='</div></li></ul>'; html+='</li>'; } else{ html+='<li class="nav-item">'; html+='<a class="dd-menu collapsed" href="javascript:void(0)" data-bs-toggle="collapse" data-bs-target="#submenu-1-2" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation" id="'+data.mainmenu[i].id+'" title="'+data.mainmenu[i].tooltip+'">'+data.mainmenu[i].title+'</a>'; html+='<ul class="sub-menu collapse" i id="submenu-1-2""><li>'; if(data.mainmenu[i].sub_menus != ''){ sub_menu_len = data.mainmenu[i].sub_menus.length; var count=0; $.each( data.mainmenu[i].sub_menus, function(index,subMenuValue) { var encsubid = ''; subid = subMenuValue.id; encsubid = subMenuValue.encsubid; if(subMenuValue.maintitle=='Departments'){ acturl = "https://kerala.gov.in/deptdetails"; html +='<li class="nav-item"><a href="'+ acturl +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } else if(subMenuValue.menulinktypes_id==4 ){ acturlsubdetail = "https://kerala.gov.in/subdetail" + '/' + encsubid + '/' + mainencid; html +='<li class="nav-item"><a href="'+ acturlsubdetail +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } else if(subMenuValue.menulinktypes_id==2 ){ acturl = subMenuValue.file ; html +='<li class="nav-item"><a target="_blank" data-toggle="tooltip" data-placement="top" title="'+data.toolmsg+'" href="'+ acturl +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } else if(subMenuValue.menulinktypes_id==5 ){ acturl = subMenuValue.file ; html +='<li class="nav-item"><a href="https://kerala.gov.in/'+ acturl +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } else if(subMenuValue.menulinktypes_id==1 ){ acturl =subMenuValue.file ; html +='<li class="nav-item">a href="'+ acturl +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } else if(subMenuValue.menulinktypes_id==3 ){ acturl ="https://kerala.gov.in/Submenu/"+subMenuValue.file ; html +='<li class="nav-item"><a href="'+ acturl +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } else if(subMenuValue.menulinktypes_id==13 ){ acturlsubdetail = "https://kerala.gov.in/appdepartmentdetail"; html +='<li class="nav-item"><a href="'+ acturlsubdetail +'"><i class="fas fa-arrow-circle-right"></i> '+subMenuValue.title+'</a></li>'; } }); } html+='</li></ul>'; html+='</li>'; } } else if(data.mainmenu[i].menulinktypes_id==2){ html +='<li class="nav-item" id="'+data.mainmenu[i].id+'"><a href="'+data.mainmenu[i].file+'" target="_blank" aria-label="Toggle navigation" title="'+data.mainmenu[i].tooltip+'">'+data.mainmenu[i].title+'</a></li>'; } else if(data.mainmenu[i].menulinktypes_id==5){ html +='<li class="nav-item" id="'+data.mainmenu[i].id+'"><a href="https://kerala.gov.in/'+data.mainmenu[i].file+'" aria-label="Toggle navigation" title="'+data.mainmenu[i].tooltip+'" id="'+data.mainmenu[i].id+'" >'+data.mainmenu[i].title+'</a></li>'; } else if(data.mainmenu[i].menulinktypes_id==4){ $.ajax({ url :"/setvaluesencrypt/"+data.mainmenu[i].file, dataType:"json", success:function(datas) { html +='<li class="nav-item" id="'+data.mainmenu[i].id+'"><a href="mainarticles/'+datas.encid+'" aria-label="Toggle navigation" title="'+data.mainmenu[i].tooltip+'" id="'+data.mainmenu[i].id+'" >'+data.mainmenu[i].title+'</a></li>'; } }); } else if(data.mainmenu[i].menulinktypes_id==1){ html +='<li class="nav-item" id="'+data.mainmenu[i].id+'"><a href="#'+data.mainmenu[i].file+'" aria-label="Toggle navigation" title="'+data.mainmenu[i].tooltip+'" id="'+data.mainmenu[i].id+'" >'+data.mainmenu[i].title+'</a></li>'; } else if(data.mainmenu[i].menulinktypes_id==3){ html +='<li class="nav-item" id="'+data.mainmenu[i].id+'"><a href="https://kerala.gov.in/Mainmenu/'+data.mainmenu[i].file+'" target="_blank" aria-label="Toggle navigation" title="'+data.mainmenu[i].tooltip+'" id="'+data.mainmenu[i].id+'" >'+data.mainmenu[i].title+'</a></li>'; } else{ html +='<li class="nav-item" ><a href="#" target="_blank" aria-label="Toggle navigation" title="'+data.mainmenu[i].tooltip+'" >'+data.mainmenu[i].title+'</a></li>'; } }); $(".mainmenus").append(html); //Menus end //Banner $.each(data.banner, function (i) { if(data.banner[0].file!=''){ var banner1 = "https://kerala.gov.in/Banner/"+data.banner[0].file; } else { var banner1=''; } if(data.banner[1].file!=''){ var banner2 = "https://kerala.gov.in/Banner/"+data.banner[1].file; } else { var banner2=''; } if(data.banner[2].file!=''){ var banner3 = "https://kerala.gov.in/Banner/"+data.banner[2].file; } else { var banner3=''; } if(data.banner[3].file!=''){ var banner4 = "https://kerala.gov.in/Banner/"+data.banner[3].file; } else { var banner4=''; } if(data.banner[4].file!=''){ var banner5 = "https://kerala.gov.in/Banner/"+data.banner[4].file; } else { var banner5=''; } /*if(data.banner[5].file!=''){ var banner6 = "https://kerala.gov.in/Banner/"+data.banner[5].file; } else { var banner6=''; }*/ if(data.banner[0].url!=''){ $("#ba1").attr('href' , data.banner[0].url); } if(data.banner[1].url!=''){ $("#ba2").attr('href' , data.banner[1].url); } if(data.banner[2].url!=''){ $("#ba3").attr('href' , data.banner[2].url); } if(data.banner[3].url!=''){ $("#ba4").attr('href' , data.banner[3].url); } if(data.banner[4].url!=''){ $("#ba5").attr('href' , data.banner[4].url); } if(banner1!=''){ $("#banner1").attr('src' , banner1); $("#bannergallery").attr('src' , banner1); } if(banner2!=''){ $("#banner2").attr('src' , banner2); } if(banner3!=''){ $("#banner3").attr('src' , banner3); } if(banner4!=''){ $("#banner4").attr('src' , banner4); } if(banner5!=''){ $("#banner5").attr('src' , banner5); } // $("#bannertitle1").html(data.banner[0].title); // $("#bannertitle2").html(data.banner[1].title); // $("#bannertitle3").html(data.banner[2].title); // $("#bannersubtitle1").html(data.banner[0].subtitle); // $("#bannersubtitle2").html(data.banner[1].subtitle); // $("#bannersubtitle3").html(data.banner[2].subtitle); }); //Banner End //Short alert start if(data.short!=null){ $("#shortalertcol").show(); $("#shortaltitle").html(data.short.title); $("#shortalcontent").html(data.short.content); } else { $("#shortalertcol").hide(); } //Short alert end //Department Intro start $("#deptimg1").attr('src',"https://kerala.gov.in/Departmentuser/"+data.deptintro.file1); $("#deptuser1").html(data.deptintro.user1); $("#deptdesg1").html(data.deptintro.desg1); $("#deptimg2").attr('src',"https://kerala.gov.in/Departmentuser/"+data.deptintro.file2); $("#deptuser2").html(data.deptintro.user2); $("#deptdesg2").html(data.deptintro.desg2); //$("#deptuser1link").attr('href',data.deptintro.file2); //$("#deptuser2link").attr('href',data.deptintro.file2); $("#deptuser1link").attr('href',data.deptintro.user_link1); $("#deptuser2link").attr('href',data.deptintro.user_link2); $("#depttitle").html(data.deptintro.title); $("#deptbrief").html(data.deptintro.brief); //Department Intro end //What is new start $.each(data.whatsnew, function (i) { $.ajax({ url :"/setvaluesencrypt/"+data.whatsnew[i].id, dataType:"json", async: false, success:function(datas3) { var action_urlwhats = "https://kerala.gov.in/whatsnewdetailwise" + '/' + datas3.encid; $("#whatsnewlist").append('<div class="single-list"><div class="fancy-icon"><a href="'+action_urlwhats+'"><i class="fas fa-check-circle fa-2x"></i></a></div><div class="list-info"><h3><a href="'+action_urlwhats+'">'+data.whatsnew[i].title+'</a></h3></div></div>'); } }); }); //What is new end //Recent article start if(data.articlelatest!=null){ $('#newstitle').html(data.articlelatest.title); $('#newsimg').attr('src',"https://kerala.gov.in/Article/"+data.articlelatest.poster); var txt = data.articlelatest.content; var cont = txt.substring(0,600); $('#newscontent').append(cont); $.ajax({ url :"/setvaluesencrypt/"+data.articlelatest.id, dataType:"json", success:function(datas4) { var action_url1 = "https://kerala.gov.in/articledetail" + '/' + datas4.encid + '/'+ data.articlelatest.homepagestatus; $('#newsurl').attr('href',action_url1); } }); } $("#recentmul").html(''); var countrec = 1; $.each(data.articlelatestmul, function (i) { $.ajax({ url :"/setvaluesencrypt/"+data.articlelatestmul[i].id, dataType:"json", success:function(datas4) { var action_url1 = "https://kerala.gov.in/articledetail" + '/' + datas4.encid + '/'+ data.articlelatestmul[i].homepagestatus; var txt = data.articlelatestmul[i].content; var trim_content = $(txt).text(); var cont = trim_content.substring(0,1000); cont = cont.substr(0, Math.min(cont.length, cont.lastIndexOf(" "))); if(trim_content.length>1000) { cont = cont+'...'; } var img = "https://kerala.gov.in/Article/"+data.articlelatestmul[i].poster $("#recentmul").append('<input type="radio" name="slide-switches" id="slide_text'+countrec+'" checked class="slide-switch"><label for="slide_text'+countrec+'" class="slide-label"></label><div class="slide-content padded"><div class="single-list"><div class="list-info"><h6><strong data-uw-styling-context="true">'+data.articlelatestmul[i].title+'</strong></h6><img src="'+img+'" class="rounded img-fluid" width="100%" alt="newsimg"><p class="articlebrief text-justify-break-all" data-uw-styling-context="true">'+cont+'</p><br><div class="col-12"><div class="wish-button"><a href="'+action_url1+'" id="newsurl"><button class="btn readmore mb-3" data-uw-styling-context="true"><i class="lni lni-angle-double-right"></i> '+data.sitecontrollabels[3].title+'</button></a></div></div></div></div></div>'); countrec++; } }); }); //Recent article end //Services start if(data.widget!=null){ $.each(data.widget, function (i) { if(data.widget[i].menulinktypes_id==2){ $("#widgetrow").append('<li class="servicerow"><div class="media-icon"><i class="'+data.widget[i].icon+'"></i></div><div class="media-body"><h5><a href="'+data.widget[i].fileval+'" target="_blank" data-toggle="tooltip" data-placement="top" title="'+data.widget[i].tooltip+'" >'+data.widget[i].title+'</a></h5></div></li>'); } else if(data.widget[i].menulinktypes_id==5){ $("#widgetrow").append('<li class="servicerow"><div class="media-icon"><i class="'+data.widget[i].icon+'"></i></div><div class="media-body"><h5><a href="'+data.widget[i].fileval+'" target="_blank" ata-toggle="tooltip" data-placement="top" title="'+data.widget[i].tooltip+'" ><div style="background-image: url(./Widgetlink/'+data.widget[i].file+'");" class="img-border rounded-circle cs-img"></div>'+data.widget[i].title+'</a></h5></div></li>'); } else if(data.widget[i].menulinktypes_id==4){ $.ajax({ url :"/setvaluesencrypt/"+data.widget[i].fileval, dataType:"json", success:function(datas) { $("#widgetrow").append('<li class="servicerow"><div class="media-icon"><i class="'+data.widget[i].icon+'"></i></div><div class="media-body"><h5><a href="mainarticles/'+datas.encid+'" target="_blank" ata-toggle="tooltip" data-placement="top" title="'+data.widget[i].tooltip+'" ><div style="background-image: url(./Widgetlink/'+data.widget[i].file+'");" class="img-border rounded-circle cs-img"></div>'+data.widget[i].title+'</a></h5></div></li>'); } }); } else if(data.widget[i].menulinktypes_id==1){ $("#widgetrow").append('<li class="servicerow"><div class="media-icon"><i class="'+data.widget[i].icon+'"></i></div><div class="media-body"><h5><a href="'+data.widget[i].fileval+'" target="_blank" ata-toggle="tooltip" data-placement="top" title="'+data.widget[i].tooltip+'" ><div style="background-image: url(./Widgetlink/'+data.widget[i].file+'");" class="img-border rounded-circle cs-img"></div>'+data.widget[i].title+'</a></h5></div></li>'); } else if(data.widget[i].menulinktypes_id==3){ $("#widgetrow").append('<li class="servicerow"><div class="media-icon"><i class="'+data.widget[i].icon+'"></i></div><div class="media-body"><h5><a href="https://kerala.gov.in/Mainmenu/'+data.widget[i].fileval+'" target="_blank" ata-toggle="tooltip" data-placement="top" title="'+data.widget[i].tooltip+'" ><div style="background-image: url(./Widgetlink/'+data.widget[i].file+'");" class="img-border rounded-circle cs-img"></div>'+data.widget[i].title+'</a></h5></div></li>'); } else { } }); } //Services end //Website listing start $.each( data.indialogo, function(i) { $("#weblogos").append(' <div class="col align-middle"><a href="'+data.indialogo[i].url+'" target="_blank" data-toggle="tooltip" data-placement="top" title="'+data.indialogo[i].tooltip+'" ><img src="https://kerala.gov.in/Logo/'+data.indialogo[i].file+'"></a> </div> '); }); $.each( data.statelogo, function(i) { $("#weblogos").append(' <div class="col align-middle"><a href="'+data.statelogo[i].url+'" target="_blank" data-toggle="tooltip" data-placement="top" title="'+data.statelogo[i].tooltip+'"><img src="https://kerala.gov.in/Logo/'+data.statelogo[i].file+'"></a> </div> '); }); //Website listing end //Footer menus start $.each( data.footermenus, function(i) { $("#footermenus").append('<li class="modalwind" id="'+data.footermenus[i].id+'"><a href="javascript:void(0)">'+data.footermenus[i].title+'</a></li>'); }); //Site Compatibility Info if(data.sitecompinfo!=null){ $("#sitecompinfo").append(' '+data.sitecompinfo.title); } //Footer Link $.each( data.footerlinks, function(i) { $("#footerlinks").append(' <li><a href="'+data.footerlinks[i].url+'" data-toggle="tooltip" data-placement="top" title="'+data.footerlinks[i].tooltip+'" target="_blank">'+data.footerlinks[i].title+'</a></li>'); }); //Media if(data.media!=null){ $("#longalertcolumn").show(); $("#longaltitle").html(data.media.title); $("#longalbrief").html(data.media.brief); $("#longalcontent").append(data.media.content); // $("#mediaimg").attr('src',"https://kerala.gov.in/Mediaalert/"+data.media.file); /*var video = videojs("mediaalertdiv"); video.src("https://kerala.gov.in/Mediaalert/"+data.media.file);*/ $("#mediaalertdiv").attr('src',"https://kerala.gov.in/Mediaalert/"+data.media.file); // $(".video_click").attr('href',"https://kerala.gov.in/Mediaalert/"+data.media.file); } else { $("#longalertcolumn").hide(); } //Livestream video if(data.widgettop!=null){ var topurl = ""; $.each(data.widgettop, function (i) { if(data.widgettop[i].menulinktypes_id==1) { topurl = data.widgettop[i].fileval; } else if(data.widgettop[i].menulinktypes_id==2) { topurl = data.widgettop[i].fileval; } else if(data.widgettop[i].menulinktypes_id==5) { topurl = "https://kerala.gov.in/"+data.widgettop[i].fileval; } else { topurl = ""; } $("#topwidget").append('<li><a href="'+topurl+'" title="'+data.widgettop[i].tooltip+'"><i class="'+data.widgettop[i].icon+'"></i></a></li>'); }); } if(data.widgetservice!=null){ $.each(data.widgetservice, function (i) { $("#servicewidget").append('<div class="col-md-6 col-lg-3 column"><div class="card '+data.widgetservice[i].color_class+'"><div class="txt"><h1>'+data.widgetservice[i].title+'</h1><p>'+data.widgetservice[i].subtitle+'</p></div><a href="'+data.widgetservice[i].fileval+'" title="'+data.widgetservice[i].tooltip+'" target="_blank">'+data.sitecontrollabels[54].title+'</a><div class="ico-card"><i class="'+data.widgetservice[i].icon+'"></i></div></div></div>'); }); } if(data.widgettourism!=null){ $.each(data.widgettourism, function (i) { $link = "window.open('"+data.widgettourism[i].fileval+"', '_blank')"; $("#tourismwidget").append('<div class="col-md-4 mt-4" onclick="'+$link+'" title="'+data.widgettourism[i].tooltip+'"><div class="tourismbox"><i class="'+data.widgettourism[i].icon+' fa-3x"></i><h3>'+data.widgettourism[i].title+'</h3></div></div>'); }); } if(data.widgetimporttant!=null){ $.each(data.widgetimporttant, function (i) { if(data.widgetimporttant[i].menulinktypes_id == 2) { acturl = data.widgetimporttant[i].fileval; } else { acturl = "https://kerala.gov.in/"+data.widgetimporttant[i].fileval; } $("#widgetimportant").append('<div class="col-lg widget1card"><div class="card '+data.widgetimporttant[i].color_class+'"><div class="background"></div><div class="card-icon"><div class="wrap"><i class="'+data.widgetimporttant[i].icon+'"></i></div></div><div class="card-title"><h5><a href="'+acturl+'">'+data.widgetimporttant[i].title+'</a></h5></div><div class="card-content"></div></div></div>'); }); } if(data.whatsnewsidelinks!=null){ var sideurl = ""; $.each(data.whatsnewsidelinks, function (i) { if(data.whatsnewsidelinks[i].menulinktypes_id==1) { sideurl = data.whatsnewsidelinks[i].fileval; } else if(data.whatsnewsidelinks[i].menulinktypes_id==2) { sideurl = data.whatsnewsidelinks[i].fileval; } else if(data.whatsnewsidelinks[i].menulinktypes_id==5) { sideurl = "https://kerala.gov.in/"+data.whatsnewsidelinks[i].fileval; } else { sideurl = ""; } $('#whatsnewsidelinks').append('<a class="'+data.whatsnewsidelinks[i].color_class+'" href="'+sideurl+'" title="'+data.whatsnewsidelinks[i].tooltip+'">'+data.whatsnewsidelinks[i].title+'</a>'); }); } //innathe vakku if(data.todayword.length>0){ $.each(data.todayword, function (i) { //acturl = "https://kerala.gov.in/"+data.widgetimporttant[i].fileval; $("#innathevakk").append('<h4><i class="fas fa-quote-left"></i> '+data.sitecontrollabels[55].title+'</h4><h5>'+data.todayword[i].word+'</h5><p class="">'+data.todayword[i].meanings+'</p>'); }); } else { $("#innathevakk").append('<h4><i class="fas fa-quote-left"></i> '+data.sitecontrollabels[55].title+'</h4><h5>അംശകം</h5><p class="">അംശം,പങ്ക്,ഓഹരി,ഭാഗം;ഒരു നക്ഷത്ര ദിവസത്തിന്റെ നാലിലൊരു ഭാഗം;മുപ്പതു ദിവസം കൊണ്ടുള്ള ഒരു മാസത്തിലെ ഒരു ദിവസം;രാശിയുടെ ഒരു ഭാഗം</p>'); } // if(data.anukalikam_main!=null){ // $.ajax({ // url :"/setvaluesencrypt/"+data.anukalikam_main.id, // dataType:"json", // success:function(datas4) // { // //var acturl = "https://kerala.gov.in/"+data.wanukalikam_main.fileval; // var img = "https://kerala.gov.in/Article/"+data.anukalikam_main.poster // var txt = data.anukalikam_main.content; // var trim_content = $(txt).text(); // // var cont = trim_content.substring(0,800); // cont = cont.substr(0, Math.min(cont.length, cont.lastIndexOf(" "))); // if(trim_content.length>800) // { // cont = cont+'...'; // } // // var updateddt = new Date(data.anukalikam_main.created_at); // var dd = updateddt.getDate(); // var mm = updateddt.getMonth()+1; //January is 0! // var yyyy = updateddt.getFullYear(); // var updateddt = dd+'-'+mm+'-'+yyyy; // var action_url1 = "https://kerala.gov.in/articledetail" + '/' + datas4.encid + '/'+ data.anukalikam_main.homepagestatus; // $("#anukalikam_main_content").html('<img src="'+img+'" class="col-md-6 float-md-end mb-3 ms-md-3 " alt="'+data.anukalikam_main.title+'"><h4 class="card-title">'+data.anukalikam_main.title+'</h4><p class="articlebrief">'+cont+'</p><p class="card-text text-right"><small class="text-muted">'+data.sitecontrollabels[32].title+' : '+updateddt+'</small></p><div class="wish-button mt-2"><a href="'+action_url1+'"><button class="btn readmore mb-3" data-uw-styling-context="true"><i class="lni lni-angle-double-right"></i> '+data.sitecontrollabels[3].title+'</button></a></div>'); // } // }); // } if(data.anukalikam_main!=null){ $.ajax({ url :"/setvaluesencrypt/"+data.anukalikam_main.id, dataType:"json", success:function(datas4) { //var acturl = "https://kerala.gov.in/"+data.wanukalikam_main.fileval; var img = "https://kerala.gov.in/Article/"+data.anukalikam_main.poster var txt = data.anukalikam_main.content; var trim_content = $(txt).text(); var cont = trim_content.substring(0,1200); cont = cont.substr(0, Math.min(cont.length, cont.lastIndexOf(" "))); if(trim_content.length>1200) { cont = cont+'...'; } var updateddt = new Date(data.anukalikam_main.created_at); var dd = updateddt.getDate(); var mm = updateddt.getMonth()+1; //January is 0! var yyyy = updateddt.getFullYear(); var updateddt = dd+'-'+mm+'-'+yyyy; var action_url1 = "https://kerala.gov.in/articledetail" + '/' + datas4.encid + '/'+ data.anukalikam_main.homepagestatus; //$("#anukalikam_main_content").html('<img src="'+img+'" class="col-md-6 float-md-end mb-3 ms-md-3 " alt="'+data.anukalikam_main.title+'"><h4 class="card-title">'+data.anukalikam_main.title+'</h4><p class="articlebrief">'+cont+'</p><p class="card-text text-right"><small class="text-muted">'+data.sitecontrollabels[32].title+' : '+updateddt+'</small></p><div class="wish-button mt-2"><a href="'+action_url1+'"><button class="btn readmore mb-3" data-uw-styling-context="true"><i class="lni lni-angle-double-right"></i> '+data.sitecontrollabels[3].title+'</button></a></div>'); $("#anukalikam_main_content").html('<h4 class="card-title">'+data.anukalikam_main.title+'</h4><img src="'+img+'" class="col-md-6 float-md-end mb-3 ms-md-3 " alt="'+data.anukalikam_main.title+'"><p class="articlebrief">'+cont+'</p><p class="card-text text-right"><small class="text-muted">'+data.sitecontrollabels[32].title+' : '+updateddt+'</small></p><div class="wish-button mt-2"><a href="'+action_url1+'"><button class="btn readmore mb-3" data-uw-styling-context="true"><i class="lni lni-angle-double-right"></i> '+data.sitecontrollabels[3].title+'</button></a></div>'); } }); } $("#anukalikam_sub_content").html(''); $.each(data.anukalikam_sub, function (i) { $.ajax({ url :"/setvaluesencrypt/"+data.anukalikam_sub[i].id, dataType:"json", success:function(datas4) { var action_url1 = "https://kerala.gov.in/articledetail" + '/' + datas4.encid + '/'+ data.anukalikam_sub[i].homepagestatus; var txt = data.anukalikam_sub[i].content; var trim_content = $(txt).text(); var cont = trim_content.substring(0,100); cont = cont.substr(0, Math.min(cont.length, cont.lastIndexOf(" "))); if(trim_content.length>100) { cont = cont+'...'; } var updateddt = new Date(data.anukalikam_sub[i].created_at); var dd = updateddt.getDate(); var mm = updateddt.getMonth()+1; //January is 0! var yyyy = updateddt.getFullYear(); var updateddt = dd+'-'+mm+'-'+yyyy; var img = "https://kerala.gov.in/Article/"+data.anukalikam_sub[i].poster $("#anukalikam_sub_content").append('<div class="col-md-6 "><div class="card mb-3 whstnewbox h-100 "><div class="zoomimage"><a href="'+action_url1+'"><img src="'+img+'" class="card-img-top" alt="'+data.anukalikam_sub[i].title+'"></a></div><div class="card-body"><a href="'+action_url1+'"><h5 class="card-title">'+data.anukalikam_sub[i].title+'</h5></a><span class=" articlebrief">'+cont+'</span><p class="card-text"><small class="text-muted">'+data.sitecontrollabels[32].title+' : '+updateddt+'</small></p></div><div class="card-footer"><div class="wish-button "><a href="'+action_url1+'"><button class="btn readmore" data-uw-styling-context="true"><i class="lni lni-angle-double-right"></i> '+data.sitecontrollabels[3].title+'</button></a></div></div></div></div>'); } }); }); $("#hundreddaysprg").html(''); $.each(data.hundreddaysprg, function (i) { //console.log('in'); $.ajax({ url :"/setvaluesencrypt/"+data.hundreddaysprg[i].id, dataType:"json", success:function(datas4) { var action_url1 = "https://kerala.gov.in/urappodeunarvodekeralam" + '/' + datas4.encid + '/100'; var txt = data.hundreddaysprg[i].content; var trim_content = $(txt).text(); var cont = trim_content.substring(0,100); cont = cont.substr(0, Math.min(cont.length, cont.lastIndexOf(" "))); if(trim_content.length>100) { cont = cont+'...'; } var updateddt = new Date(data.hundreddaysprg[i].created_at); var dd = updateddt.getDate(); var mm = updateddt.getMonth()+1; //January is 0! var yyyy = updateddt.getFullYear(); var updateddt = dd+'-'+mm+'-'+yyyy; var img = "https://kerala.gov.in/Article/"+data.hundreddaysprg[i].poster $("#hundreddaysprg").append('<div class="col-lg-2 col-md-2 col-sm-4 mb-2"><a href="'+action_url1+'" class="portfolio"><div class="portfolio-thumb"><img src="'+img+'" alt="portfolio thumb 1"></div><div class="portfolio-content"><h5 class="text-justify-break-all">'+data.hundreddaysprg[i].title+'</h5></div></a></div>'); } }); }); //for woman $("#forwoman").html(''); $.each(data.forwoman, function (i) { // console.log('in'); $.ajax({ url :"/setvaluesencrypt/"+data.forwoman[i].id, dataType:"json", success:function(datas4) { var action_url1 = "https://kerala.gov.in/forwoman" + '/' + datas4.encid + '/100'; var txt = data.forwoman[i].content; var trim_content = $(txt).text(); var cont = trim_content.substring(0,100); cont = cont.substr(0, Math.min(cont.length, cont.lastIndexOf(" "))); if(trim_content.length>100) { cont = cont+'...'; } var updateddt = new Date(data.forwoman[i].created_at); var dd = updateddt.getDate(); var mm = updateddt.getMonth()+1; //January is 0! var yyyy = updateddt.getFullYear(); var updateddt = dd+'-'+mm+'-'+yyyy; var img = "https://kerala.gov.in/Article/"+data.forwoman[i].poster $("#forwoman").append('<div class="col-lg-2 col-md-2 col-sm-4 mb-2"><a href="'+action_url1+'" class="portfolio"><div class="portfolio-thumb"><img src="'+img+'" alt="portfolio thumb 1"></div><div class="portfolio-content"><h5 class="text-justify-break-all">'+data.forwoman[i].title+'</h5></div></a></div>'); } }); }); //$("#articlelist").html(''); $.each(data.articlerecent, function (i) { $.ajax({ url :"/setvaluesencrypt/"+data.articlerecent[i].id, dataType:"json", success:function(datas4) { //var action_url1 = "https://kerala.gov.in/articledetail" + '/' + datas4.encid+ '/' + data.articlerecent[i].homepagestatus; var action_url1 = "https://kerala.gov.in/achievement" + '/' + datas4.encid + '/100'; var txt = data.articlerecent[i].content; var trim_content = $(txt).text(); var cont = trim_content.substring(0,300); cont = cont.substr(0, Math.min(cont.length, cont.lastIndexOf(" "))); if(trim_content.length>300) { cont = cont+'...'; } var img = "https://kerala.gov.in/Article/"+data.articlerecent[i].poster $("#articlelist").append('<div class="col-lg-4 col-md-4 col-12"><div class="single-blog h-100 bottom-btn-section pb-2"><div class="blog-img"><a href="'+action_url1+'"> <img src="'+img+'" height="300" alt=""> </a></div><div class="blog-content text-justify-break-all"> <a href="'+action_url1+'"><h5><span>'+data.articlerecent[i].title+'</span></h5></a> <p class="shortintro">'+cont+'</p><br> <div class="wish-button bottom-btn"><a href="'+action_url1+'"><button class="btn btn-sm btn-flat"><i class="lni lni-angle-double-right"></i>'+data.sitecontrollabels[3].title+'</button></a></div></div></div></div>'); } }); }); //achievement $("#achievement").html(''); $.each(data.achievement, function (i) { // console.log('in'); $.ajax({ url :"/setvaluesencrypt/"+data.achievement[i].id, dataType:"json", success:function(datas11) { var action_url1 = "https://kerala.gov.in/articledetail" + '/' + datas11.encid+ '/' + data.achievement[i].homepagestatus; //var action_url1 = "https://kerala.gov.in/achievement" + '/' + datas4.encid + '/100'; var txt = data.achievement[i].content; var trim_content = $(txt).text(); var cont = trim_content.substring(0,100); cont = cont.substr(0, Math.min(cont.length, cont.lastIndexOf(" "))); if(trim_content.length>100) { cont = cont+'...'; } var updateddt = new Date(data.achievement[i].created_at); var dd = updateddt.getDate(); var mm = updateddt.getMonth()+1; //January is 0! var yyyy = updateddt.getFullYear(); var updateddt = dd+'-'+mm+'-'+yyyy; var img = "https://kerala.gov.in/Article/"+data.achievement[i].poster $("#achievement").append('<div class="col-lg-3 col-md-3 col-sm-4 mb-2"><a href="'+action_url1+'" class="portfolio"><div class="portfolio-thumb"><img src="'+img+'" alt="portfolio thumb 1"></div><div class="portfolio-content"><h5 class="text-justify-break-all">'+data.achievement[i].title+'</h5></div></a></div>'); } }); }); $("#navakerala").html(''); $.each(data.navakerala, function (i) { // console.log('in'); $.ajax({ url :"/setvaluesencrypt/"+data.navakerala[i].id, dataType:"json", success:function(datas4) { var action_url1 = "https://kerala.gov.in/navakerala" + '/' + datas4.encid + '/100'; var txt = data.navakerala[i].content; var trim_content = $(txt).text(); var cont = trim_content.substring(0,100); cont = cont.substr(0, Math.min(cont.length, cont.lastIndexOf(" "))); if(trim_content.length>100) { cont = cont+'...'; } var updateddt = new Date(data.navakerala[i].created_at); var dd = updateddt.getDate(); var mm = updateddt.getMonth()+1; //January is 0! var yyyy = updateddt.getFullYear(); var updateddt = dd+'-'+mm+'-'+yyyy; var img = "https://kerala.gov.in/Article/"+data.navakerala[i].poster $("#navakerala").append('<div class="col-lg-3 col-md-3 col-sm-4 mb-2"><a href="'+action_url1+'" class="portfolio"><div class="portfolio-thumb"><img src="'+img+'" alt="portfolio thumb 1"></div><div class="portfolio-content"><h5 class="text-justify-break-all">'+data.navakerala[i].title+'</h5></div></a></div>'); } }); }); } //end success }); }); $(document).on("change", ".lang", function(event){ if($(this).val() == 0){ $.ajax({ url :"/setbilingualval", dataType:"json", success:function(data) { window.location.reload(); } }) }else{ $.ajax({ url :"/setbilingualvalmal", dataType:"json", success:function(data) { window.location.reload(); } }) } }); function readMorealert(){ var dots = document.getElementById("dots"); var moreText = document.getElementById("more"); var btnText = document.getElementById("myBtn"); if (dots.style.display === "none") { dots.style.display = "inline"; btnText.innerHTML = "Read more"; moreText.style.display = "none"; } else { dots.style.display = "none"; btnText.innerHTML = "Read less"; moreText.style.display = "inline"; } } $(document).ready(function () { $("#longalcontent").hide(); $("#readless").hide(); /*$(".show_hide").on("click", function () { var txt = $("#longalcontent").is(':visible') ? 'Read More' : 'Read Less'; if($("#longalcontent").is(':visible')){ $("#longalcontent").hide(); $("#longalbrief").show(); $(".show_hide").empty(); $(".show_hide").append('<i class="lni lni-menu"></i>Read Less'); }else{ $("#longalcontent").show(); $("#longalbrief").hide(); $(".show_hide").empty(); $(".show_hide").append('<i class="lni lni-menu"></i>Read More'); } // $(".show_hide").append('<i class="lni lni-menu"></i> '+txt+')'; $(this).next('#longalcontent').slideToggle(200); });*/ $("#readmore").on("click", function () { $("#longalcontent").show(); $("#longalbrief").hide(); $("#readless").show(); $("#readmore").hide(); }); $("#readless").on("click", function () { $("#longalcontent").hide(); $("#longalbrief").show(); $("#readless").hide(); $("#readmore").show(); }); }); $(document).ready(function () { $(document).on("click", ".modalwind", function(event){ var id = $(this).attr('id'); $.ajax({ url :"/modalpop/"+id, dataType:"json", success:function(data) { $('#contentdiv').html(data.resultdata.content); $('.modal-title').text(data.resultdata.title); $('#transactionmodal').modal('show'); } }) }); $( ".close1" ).click(function() { $('#transactionmodal').modal('hide'); }); $(document).on("click", "#helplist", function(event){ $("#helpcontentdiv").empty(); var html1 = ""; $.ajax({ url :"/helpdetlist", dataType:"json", success:function(data) { //console.log(data.resultdata); $.each( data.resultdata, function(i) { html1 += '<div class="card-title h5">'+data.resultdata[i].title+'</div><div>'+data.resultdata[i].content+'</div>'; }); $("#helpcontentdiv").append(html1); //$('.modal-title').text("Help"); $('#helpmodal').modal('show'); } }) });// $(document).on("click", "#helptop", function(event){ $("#helpcontentdiv").empty(); var html1 = ""; $.ajax({ url :"/helpdetlist", dataType:"json", success:function(data) { //console.log(data.resultdata); $.each( data.resultdata, function(i) { html1 += '<div class="card-title h5">'+data.resultdata[i].title+'</div><div>'+data.resultdata[i].content+'</div>'; }); $("#helpcontentdiv").append(html1); //$('.modal-title').text("Help"); $('#helpmodal').modal('show'); } }) });// $( ".close2" ).click(function() { $('#helpmodal').modal('hide'); }); $(document).on("click", "#faqlistt", function(event){ var html=''; $.ajax({ url :"/faq_modalpop", dataType:"json", success:function(data) { var j=0; $.each(data.resultdata, function (i) { j++; html+='<div class="alert alert-success" role="alert">'+j+'.'+data.resultdata[i].question+'<br>'+data.resultdata[i].answer+'</div><br>'; }); $("#faqcontentdiv").append(html); $('.modal-titlefaq').text(data.sitecontrollbl.title); $('#faqtransactionmodal').modal('show'); } }); }); $( ".close3" ).click(function() { $('#faqtransactionmodal').modal('hide'); }); /*visitor count*/ $(document).on("click", "#histats_counter", function(event){ var id = $(this).attr('id'); $('#visitormodal').modal('show'); }); $( ".close4" ).click(function() { $('#visitormodal').modal('hide'); }); }); </script> <script> // console.log(new Date("2021-10-02").getTime()); // All dates should be provided in timestamps var dbEvents = [ { title: "Gandhi Jayandhi", type: "Full holiday", date: new Date("2021-10-02").getTime(), type: "Full holiday", }, { title: "Maha Navami", type: "Full holiday", date: new Date("2021-10-14").getTime(), type: "Full holiday", }, { title: "Vijayadashami", type: "Full holiday", date: new Date("2021-10-15").getTime(), type: "Full holiday", }, { title: "Miladi sherif", type: "Full holiday", date: new Date("2021-10-19").getTime(), type: "Full holiday", }, { title: "Deepavali", type: "Full holiday", date: new Date("2021-11-04").getTime(), type: "Full holiday", }, { title: "Christmas", type: "Full holiday", date: new Date("2021-12-25").getTime(), type: "Full holiday", } ]; $(document).ready(function () { $("#calendar").MEC({ events: dbEvents }); }); </script> <script> var slideIndex = 0; function showSlides() { var i; var slides = document.getElementsByClassName("slide-content"); var dots = document.getElementsByClassName("slide-switch"); slideIndex++; if (slideIndex > slides.length) { slideIndex = 1 } for (i = 0; i < dots.length; i++) { //dots[i].className = dots[i].className.replace(" active", ""); dots[i].setAttribute("checked", "false"); //alert(dots[i]); } //dots[slideIndex].setAttribute("checked", "true"); if(typeof dots[slideIndex-1] === "undefined") { } else { //alert(dots[slideIndex]); dots[slideIndex-1].setAttribute("checked", "true"); } //slides[slideIndex-1].style.display = "block"; // dots[slideIndex-1].className += " active"; //dots[i].setAttribute("checked", "true") setTimeout(showSlides, 2000); // Change image every 2 seconds } function initializemap() { var map = new L.Map('map', { center: [11,76.3], zoom:7, keyboard: false, dragging: false, zoomControl: false, boxZoom: false, doubleClickZoom: false, scrollWheelZoom: false, tap: false, touchZoom: false, }) function onEachFeature(feat){ return console.log(feat.properties) } var info2 = L.control({position: 'topright'}); info2.onAdd = function (map) { this._div = L.DomUtil.create('div', 'info2'); // create a div with a class "info2" this.update(); return this._div; }; // method that we will use to update the control based on feature properties passed info2.update = function (props) { this._div.innerHTML = '<h5>കേരളം ഒറ്റനോട്ടത്തിൽ </h5>' + (props ? '<span title=""> ജില്ല :<b> ' + props.District + '</b></span><br />' + '<span title=""> ഏരിയ : <b>' + props.area_district + '</b></span><br />' + '<span title=""> ജനസംഖ്യ : <b>' + props.tot_population + '</b></span><br />' + '<span title=""> സ്ത്രീ : <b>' + props.female_population + '</b></span><br />' + '<span title=""> പുരുഷൻ : <b>' + props.male_population + '</b></span><br />' : ''); }; info2.addTo(map); var maloutsidemap = "https://kerala.gov.in/assets/webassets/maps/maps/maloutsidemap.geojson"; $.getJSON(maloutsidemap, function (geojson) { var choroplethLayer =L.choropleth(geojson, { valueProperty: 'tot_population', //scale: ['#00cef7', '#5d6dbf', '#00b232','#ffb200','#ed0a02','#e2bd00','#14db11','#557004'], scale: ['#ffffff','#ffffff'], steps: 2, mode: 'q', style: { color: 'black', weight: 1, fillOpacity: 0.8 } , onEachFeature: function (feature, layer) { layer.on('mouseover', function (e) { this.setStyle({ weight: 3, color: '#595B0D', dashArray: '', fillOpacity: 0.7 }); if (!L.Browser.ie && !L.Browser.opera) { layer.bringToFront(); } info2.update(layer.feature.properties); }); layer.on('mouseout', function (e) { choroplethLayer.resetStyle(e.target); //NEW info2.update(); }); //layer.bindPopup(feature.properties.District + '<br>' + //feature.properties.covid_stat.toLocaleString()) } }).addTo(map) /*var legend = L.control({ position: 'bottomright' }) legend.onAdd = function (map) { var div = L.DomUtil.create('div', 'info2 legend') var limits = choroplethLayer.options.limits var colors = choroplethLayer.options.colors var labels = [] // Add min & max div.innerHTML = '<div class="labels"><div class="min">' + limits[0] + '</div> \ <div class="max">' + limits[limits.length - 1] + '</div></div>' limits.forEach(function (limit, index) { labels.push('<li style="background-color: ' + colors[index] + '"></li>') }) div.innerHTML += '<ul>' + labels.join('') + '</ul>' return div }*/ //legend.addTo(map) }) var labelMarkerOptions = { opacity: 0, fillOpacity: 0, fillColor:'brown' }; var outsidemap1 = "https://kerala.gov.in/assets/webassets/maps/maps/outsidemap.geojson"; $.getJSON(outsidemap1, function (geojson) { var labelLayer = L.geoJson(geojson, { pointToLayer: function (feature, latlng) { return L.circleMarker(latlng, labelMarkerOptions); }, onEachFeature: function (feature, layer) { //layer.bindLabel(feature.properties.covid_statactive.toString(), {noHide:false, direction:'right'}); } }); }) /*$.getJSON('assets/webassets/assets/maps/maps/insidemap.geojson', function (geojson) { var labelLayer = L.geoJson(geojson, { pointToLayer: function (feature, latlng) { return L.circleMarker(latlng, labelMarkerOptions); }, onEachFeature: function (feature, layer) { layer.bindLabel(feature.properties.covid_statactive.toString(), {noHide:true, direction:'right'}); } }); labelLayer.eachLayer(function(l) {l.showLabel();}); map.addLayer(labelLayer); })*/ } $('table').each(function() { $(this).wrap('<div class="table-responsive"></div>'); $(this).addClass('table'); $(this).addClass('table-hover') }); function mobileval(id, testval) { var tested = /^[0-9]{10}$/; if (testval.search(tested) != 0) { // $('#Savebtn').attr('disabled','disabled'); return false; } else { // $('#Savebtn').removeAttr('disabled'); return true; } } </script>