CINXE.COM
Mumbai Weather | Mumbai Temperature Today | Mumbai Weather Forecast | Times of India Travel
<!DOCTYPE HTML><html xmlns:math="java.lang.Math" xmlns:ext="http://exslt.org/common" xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml"><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><script> var sectionvalue = "weatherpage"; var hdomain='indiatimes.com'; var tempname = 'weatherpage' if (document.domain != hdomain) {if ((document.domain.indexOf(hdomain)) != -1) {document.domain = hdomain}} </script><meta charset="utf-8"><title>Mumbai Weather | Mumbai Temperature Today | Mumbai Weather Forecast | Times of India Travel</title><meta name="description" content="Today Weather in Mumbai: Get Current Mumbai weather and temperature updates along with today, tomorrow and weekly weather forecast at Times of India Travel"><meta name="keywords" content="Weather in Mumbai, Mumbai weather, Mumbai Temperature, Mumbai today temperature, Mumbai weather forecast, Current temperature of Mumbai"><meta itemprop="datePublished" content=""><meta itemprop="dateModified" content=""><meta name="section" itemprop="articleSection" content=""><link rel="image_src" itemprop="thumbnailUrl" href="https://static.toiimg.com/photo/2147477992.cms"><meta property="og:title" content=""><meta property="og:description" content=""><meta property="og:site_name" content="Times of India Travel"><meta content="article" property="og:type"><meta property="og:url" itemprop="url" content="https://timesofindia.indiatimes.com/travel///2147477992.cms"><meta property="og:image" content="https://static.toiimg.com/thumb/msid-2147477992,width-1070,height-580,resizemode-75,imgsize-2147477992,pt-32,y_pad-40/2147477992.jpg"><meta property="og:image:width" content="1070"><meta property="og:image:height" content="580"><meta content="summary_large_image" name="twitter:card"><meta content="@myhappytrips" name="twitter:site"><meta name="twitter:url" content="https://timesofindia.indiatimes.com/travel///2147477992.cms"><meta name="twitter:title" content=""><meta name="twitter:description" content=""><meta name="twitter:image" content="https://static.toiimg.com/thumb/width-600,height-400,msid-2147477992.cms"><meta content="" name="google-site-verification"><script> var readCookie=function(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } </script><script src="https://geoapi.indiatimes.com?cb=1" type="text/javascript"></script><script> function attachjs_head(file){ var jsElm = document.createElement("script"); jsElm.type = "application/javascript"; jsElm.src = file; document.body.appendChild(jsElm); } </script><script type="text/javascript"> var site_config = { channel: "happytrips", domain: "happytrips.com", url: "www.happytrips.com", direct_url: "www.happytrips.com", } </script><link rel="publisher" href="https://plus.google.com/101477074758045547124/"><script type="text/javascript">var _sf_startpt=(new Date()).getTime()</script><link href="https://timesofindia.indiatimes.com/travel/icons/ttfavicon.ico" type="image/x-icon" rel="shortcut icon"><link href="https://timesofindia.indiatimes.com/travel/icons/ttfavicon.ico" rel="icon"><meta content="NOODP" name="robots"><script> var activatesubscription = ''; var activatealert = ''; var cancelalert = ''; var unsubscribealert = ''; var useremailid = ''; var openlogin = ''; var usernameemailer = ''; var configid = ''; var hashcode= ''; var newsletterid= ''; var listpreference= ''; var listtype= ''; var unsubscribenewsletter= ''; var hdomain='indiatimes.com'; if (document.domain != hdomain) {if ((document.domain.indexOf(hdomain)) != -1) {document.domain = hdomain}} var serverDate = '28 Nov 2024, 4:46PM'; </script><!--params:lat=19.0822507,lon=72.8812042,query=mumbai,sk=12896,msid=2147477992,--><!--[if lte IE 8]> <script src="/travel/html5.cms"></script> <style> .first_txt h4{position:relative;top:-6px;} .next-gallery .preview-box p{position:relative;top:-13px;} </style> <![endif]--><meta content="#52ac29" name="theme-color"><meta content="width=device-width,user-scalable=no" name="viewport"><meta content="1398600243720712" property="fb:pages"><link rel="stylesheet" type="text/css" href="https://timesofindia.indiatimes.com/travel/css_style/minify-1,version-485.cms"><link rel="stylesheet" type="text/css" href="https://timesofindia.indiatimes.com/travel/headercss/minify-1,version-23.cms"><link rel="stylesheet" type="text/css" href="https://timesofindia.indiatimes.com/travel/hpleadstories_css/minify-1,version-3.cms"><link rel="stylesheet" type="text/css" href="https://timesofindia.indiatimes.com/travel/destinationwidget_css/minify-1,version-2.cms"><link rel="stylesheet" type="text/css" href="https://timesofindia.indiatimes.com/travel/gdpr_css/minify-1,version-6.cms"><script src="https://timesofindia.indiatimes.com/travel/jquery_1_11_0_min/version-13,minify-1.cms"></script><!--[if lte IE 9]> <script src="/travel/xdomainrequest.cms"></script> <![endif]--><style> .box1 p {padding-bottom:10px;} .weatherwidget_box {background-color:#001d2a !important;} .weather-slides table{border:1px solid #333333;} .weather-slides tr th{background-color: #333333;border:1px solid #545454; padding-left: 2%; text-align: left; color: #fff; font-size: 16px; line-height: 28px;} .weather-slides tr{height:19px;} .weather-slides tr td{ padding-left: 2%;border:1px solid #333333; color: #414141; font-size: 14px; line-height: 28px;font-weight:600;} .weather-slides tr:nth-child(2n+1){background-color:#fff;} .weather-slides tr:nth-child(2n){background-color:#edeeef;} .weather-slides tr td.max{font-weight:bold} .weather-slides tr td.min{font-weight:bold} .weather-detail .main-content h2{margin:0;margin-bottom:15px;} .weather-detail h4,.weather-detail h2{ color: #000000; font-size: 20px; font-weight: 600; margin-bottom: 15px;} .weather-detail .main-content .box1 h2 span.cptl{background:none;color:#000;text-transform:none;font-size:100%;font-weight:600;} span.cptl{text-transform: capitalize;padding-left:3px!important;} .box1 h2 span{text-transform:uppercase;} .weather-slides { overflow:hidden;padding:20px 0 0;} .weather-slides .viewport { float: left; width: 620px; overflow: hidden; position: relative; } .weather-slides .buttons { display: block; margin: 30px 10px 0 0; float: left; } .weather-slides .disable { visibility: hidden; } .weather-slides .overview { list-style: none; position: relative; padding: 0; margin: 0; left: 0; top: 0; } .weather-slides .overview li{ float: left; margin: 0 15px 0 0; padding: 1px; height: 217px; width: 120px;} .weather-slides a.previous{background-position:-129px -1260px} .weather-slides:hover a.previous { background-position: -129px -1300px; } span.icon i { display: block; width: 64px; height: 61px; background: url(https://static.toiimg.com/photo/35947039.cms) no-repeat; } span.icon i.sunny { background-position: -128px -61px; } span.icon i.cloudy { background-position: -256px 0; } span.icon i.cloudylightrain { background-position: -128px 0; } span.icon i.cloudymoderaterain { background-position: -192px 0; } span.icon i.cloudyheavyrain { background-position: -64px 0; } span.icon i.partlycloudy { background-position: -512px 0; } span.icon i.partlycloudylightrain { background-position: -576px 0; } span.icon i.partlycloudymoderaterain { background-position: 0 -61px; } span.icon i.partlycloudyheavyrain { background-position: -64px -61px; } span.icon i.overcast { background-position: -256px 0; } span.icon i.overcastlightrain { background-position: -384px 0; } span.icon i.overcastmoderaterain { background-position: -448px 0; } span.icon i.overcastheavyrain { background-position: -320px 0; } #city_guide_show #mainshow div.main-show-inner{padding-left:0;} #city_guide_show #mainshow div.main-show-inner .shareblock{display:none;} .pagination{display:none;} </style><style> .weather-detail .best-weather{border-right:none;width:100%;min-height:inherit;} </style><script> var a='2147477992'; var skynet_id='12896'; var latitude='19.0822507'; var longitude='72.8812042'; var city='mumbai'; </script><script>var _ibeat_track = {"ct":20}</script><iframe style="display:none" width="1" height="1" id="__tiluuid_frame"></iframe><script> //User Unification Start var __tiluuid = localStorage.getItem('__til_uuid'); if (__tiluuid === null) { function receiveMessage(evt) { if (evt.origin === 'https://tilanalytics.timesinternet.in') { __tiluuid = evt.data; localStorage.setItem('__til_uuid', __tiluuid); } } window.addEventListener('message', receiveMessage, false); document.getElementById("__tiluuid_frame").src='https://tilanalytics.timesinternet.in/frame_v3.min.html'; } //User Unification End /* (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); */ window.ga = function() {return true} ga('create', 'UA-198011-4', 'auto', {'allowLinker': true}); var userCookie = document.cookie.match(/(?:\s)?ssoid=(\w+);?/); var dimensionValue = (document.cookie.match(/(?:\s)?ssoid=(\w+);?/) && document.cookie.match(/(?:\s)?prc=(\w+);?/)) ? 1 : 0; //For prime if(!!(userCookie)) { ga('set', 'userId', userCookie[1]); } <!--ga('set', 'dimension10', dimensionValue);--> ga('require', 'linker'); ga('linker:autoLink', ['timesofindia.com', 'gocricket.com', 'gadgetsnow.com'] ); //Let's wait for EU if (window.TimesGDPR && TimesGDPR.common.consentModule.gdprCallback){ TimesGDPR.common.consentModule.gdprCallback(function(dataObj){ if (dataObj.isEUuser){ ga('set', 'anonymizeIp', true); } ga('send', 'pageview', {'dimension28': __tiluuid}); }); }else{ /* *geo ip call failed * show EU */ ga('set', 'anonymizeIp', true); ga('send', 'pageview', {'dimension28': __tiluuid}); } ga('require', 'displayfeatures'); var hdomain='indiatimes.com'; if (document.domain != hdomain) {if ((document.domain.indexOf(hdomain)) != -1) {document.domain = hdomain}} window.getccpaCookie = function(name){ var re = new RegExp(name + "=([^;]+)"); var value = re.exec(document.cookie); return (value != null) ? unescape(value[1]) : null; }; (function(){ var dsmiparam = "",_fpc = "",_optout = ""; if (getccpaCookie("_col_ccds")) { dsmiparam = "dsmi=" + getccpaCookie("_col_ccds") + "&" ; } if (getccpaCookie("_col_uuid")) { _fpc = "fpc=" + getccpaCookie("_col_uuid") + "&" ; } if (getccpaCookie("optout")) { dsmiparam = "optout=" + getccpaCookie("optout") + "&" ; } const ccaudUrl = "https://ade.clmbtech.com/cde/aef/var=colaud?cid=2658:3&"+dsmiparam+_fpc+_optout+"_u="+encodeURIComponent(window.location.href); const ccaudjs = document.createElement("script"); ccaudjs.src = ccaudUrl; ccaudjs.async = true; document.head.appendChild(ccaudjs); })() </script><script src="https://timesofindia.indiatimes.com/pn/version-40,minify-1.cms" type="text/javascript"></script><script> // growthrx.in snippet common (function (g, r, o, w, t, h, rx) { g[t] = g[t] || function () {(g[t].q = g[t].q || []).push(arguments) }, g[t].l = 1 * new Date(); g[t] = g[t] || {}, h = r.createElement(o), rx = r.getElementsByTagName(o)[0]; h.async = 1;h.src = w;rx.parentNode.insertBefore(h, rx) })(window, document, 'script', 'https://static.growthrx.in/js/v2/web-sdk.js', 'grx'); var __DEV_ENV__ = (["toidev8365.indiatimes.com", "mdev8365.indiatimes.com"].indexOf(document.location.hostname) > -1) ? true : false; var grx_proj_code = (__DEV_ENV__) ? 'g3bf3e414' : 'g7af6dd9d' ; grx('init',grx_proj_code); grx('track', 'page_view', {url: window.location.href , subProject:'travel'}); </script><link rel="canonical" href="https://timesofindia.indiatimes.com/travel/mumbai/weather"><script type="application/ld+json"> { "@context": "http://schema.org/", "@type": "WebPage", "name": "Weather in Mumbai", "speakable": { "@type": "SpeakableSpecification", "cssSelector": ["page-title","page-descp"] }, "url":"https://timesofindia.indiatimes.com/travel/mumbai/weather" } </script><script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-P3PMSJN'); </script><script type="text/javascript"> var targetDevice ='web'; if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ // true for mobile device targetDevice ='mweb'; } var page_template = "listing"; var type = "listpage"; var authors = ""; var agency = ""; var section = ""; var subsection = ""; var msid = "2147477992"; var mssid = '2147477992'; var published_date = ""; var published_time=''; var last_update_date = ""; var meta_keywords = document?.head?.getElementsByTagName('meta')['keywords']? document?.head?.getElementsByTagName('meta')['keywords']?.getAttribute('content'):''; var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection; var pageno = "" var perpetual = "N/A"; var pagination = ""; var browsing_platform = targetDevice; var showajax = ""; var seotitle =""; var seourl =""; var pathname = window.location.pathname; var splitSection = pathname.split('/'); // console.log("splitSection", splitSection); function toCamelCase(str){ return str.replace(/(?:^\w|[A-Z]|\b\w)/g, (word, index) => { return index === 0 ? word.toUpperCase() : word.toLowerCase(); }); } var sec1 = splitSection[1]; var sec2 = splitSection[2]; var sec3 = splitSection[3]; function getDiff(){ var today = new Date(); var publishedDate = ''; var diff = Math.round((today - new Date(Number(publishedDate))) / (1000 * 60 * 60 * 24)); console.log('publishedDateDidd22....',diff); return diff; } if(pageno && pageno > 0){ pagination = 'p'+(pageno-1); } if(type == 'listpage'){ if(sec1 && sec1!=''){ page_template = "Listing "+toCamelCase(sec1); }else{ page_template = 'Listing Page'; } } var dimension55=''; if(page_template == 'Articleshow' || page_template == 'articleshow' || page_template == 'videoshow' || page_template == 'Guideshow' || page_template == 'photostory'){ dimension55 = getDiff(); } if(section =='' && type == 'listpage') { section = toCamelCase(sec1); } window.dataLayer = window.dataLayer || []; var userCookie = document.cookie.match(/(?:\s)?ssoid=(\w+);?/); var userType= false; if(userCookie){ var prcpval = document.cookie.match(/(?:\s)?prc=(\w+);?/)[1]; if(prcpval==5){ userType= true; } } if( type == 'listpage' && tempname !=''){ if(tempname =='homepage'){ page_template = 'Home' }else { page_template = tempname; } } //-- GA4 Custom page View -- if(type == 'listpage'){ mssid = ''; } if(authors){ authors = authors.toLowerCase(); authors = authors.replaceAll('-','_'); } if(section){ section = section.toLowerCase(); } if(subsection){ subsection = subsection.toLowerCase(); } if(agency){ agency = agency.toLowerCase(); agency = agency.replaceAll('-','_'); } function getStringToLowerCase(val) { let data = val; if (val) { if (val && typeof val === 'string') { data = val.replace(/\s+/g, '_').toLowerCase(); } } else { data = 'N/A'; } return data; }; if(page_template == 'videoshow'){ section = ''; subsection = ''; } dataLayer.push({ 'event' : 'page_view', <!--'page_title' : showajax ? seotitle : document.title,--> 'page_template' : getStringToLowerCase(page_template), 'authors' : getStringToLowerCase(authors), 'agency' : getStringToLowerCase(agency), 'section' : getStringToLowerCase(section), 'subsection' : getStringToLowerCase(subsection), 'msid' : mssid ? mssid : 'N/A', 'keywords' : meta_keywords?meta_keywords:'N/A', 'browsing_platform' : browsing_platform, 'browsing_client' : 'web', 'business_property' : 'travel', 'page_stack' : 'xslt', 'prime_content' : false, 'perpetual' : perpetual ? perpetual : 'N/A', 'pagination' : pagination ? getStringToLowerCase(pagination) : 'N/A', 'network' : connection.effectiveType, 'login_status' : userCookie?'true':'false', 'days_since_created' : dimension55?dimension55:'N/A', }); dataLayer.push({ 'event' : 'user_details_manual', 'sso_id' : userCookie?userCookie[1]:'0', 'prime_user' : userType, 'prime_status' : prcpval, 'login_status' : userCookie?'true':'false', 'notifi_subs_status' : '' }); function ga4dataLayer(template, authors, agency, msid, pagination, days_since_created, keywords, perpetual, section){ var targetDevice ='web'; if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){ // true for mobile device targetDevice ='mweb'; } var meta_keywords = document?.head?.getElementsByTagName('meta')['keywords']? document?.head?.getElementsByTagName('meta')['keywords']?.getAttribute('content'):''; var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection; window.dataLayer = window.dataLayer || []; var userCookie = document.cookie.match(/(?:\s)?ssoid=(\w+);?/); var userType= false; if(userCookie){ var prcpval = document.cookie.match(/(?:\s)?prc=(\w+);?/)[1]; if(prcpval==5){ userType= true; } } dataLayer.push({ 'event' : 'page_view', 'page_template' : template ? template.toLowerCase() : 'N/A', 'authors' : authors ? authors.toLowerCase() : 'N/A', 'agency' : agency ? agency.toLowerCase() : 'N/A', 'section' : section ? section.toLowerCase() : 'N/A', 'subsection' : subsection ? subsection.toLowerCase() : 'N/A', 'msid' : msid, 'keywords' : keywords ? keywords : 'N/A', 'browsing_platform' : targetDevice, 'browsing_client' : 'web', 'business_property' : 'travel', 'page_stack' : 'xslt', 'prime_content' : false, 'perpetual' : perpetual ? perpetual : 'N/A', 'pagination' : pagination ? pagination: 'N/A', 'network' : connection.effectiveType ? connection.effectiveType : 'N/A', 'login_status' : userCookie?'true':'false', 'days_since_created' : days_since_created ? days_since_created : 'N/A' }); dataLayer.push({ 'event' : 'user_details_manual', 'sso_id' : userCookie?userCookie[1]:'0', 'prime_user' : userType, 'prime_status' : prcpval ? 'true' : 'false', 'login_status' : userCookie?'true':'false', 'notifi_subs_status' : '' }); } function mmt_logo_click() { dataLayer.push({ 'event':'user_click', 'category':'sponsored_widget', 'type': 'mmt_logo' }); } </script><!--/travel_v2_ga4.cms?v=6&msid=2147477992&page_template=listing&type=listpage&frmapp=&pagination=potime:2--></head><body><div class="banner_local INTERSTITIALAD"></div><div id="container"><div class="slideNavigation"><ul id="ulsidebar" class=""><li class="snavhead"><span class="closeBtnMenu"></span><span class="user-login"><span class="hide" data-plugin="user-isloggedin"><div class="user-controls"><span data-plugin="user-name"></span><span data-plugin="user-logout">Logout</span></div></span><span class="hide pointer sildelogin" data-plugin="user-notloggedin"><span data-plugin="user-login">Login</span></span></span></li></ul></div><header class="travelheader"><div class="wrapper clearfix"><div class="travelinnerheader"><span class="mhumburger"><span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 12" height="12" width="22"><g fill-rule="evenodd" fill="none"><g fill-rule="nonzero" fill="#1A1A1A"><g><path transform="translate(-16 -14)" d="M37.64 25c.48 0 .48 1 0 1H16.36c-.48 0-.48-1 0-1zm0-5.5c.48 0 .48 1 0 1H16.36c-.48 0-.48-1 0-1zm0-5.5c.48 0 .48 1 0 1H16.36c-.48 0-.48-1 0-1z"/></g></g></g></svg></span></span><div class="logoWrap"><span class="mlogo"><a aria-label="travel logo" href="/travel"></a></span></div><div class="loginshare"><span class="msearchicon"><span><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" height="18" width="18"><g fill-rule="evenodd" fill="none"><g fill="#1A1A1A"><g><path transform="translate(-1280 -94) translate(459 92)" d="M838.795 19.798c-.28.27-.721.271-1.002.004l-4.439-4.222c-3.362 2.36-8.054 1.752-10.65-1.383-2.597-3.134-2.18-7.686.945-10.333 3.126-2.647 7.855-2.453 10.737.44 2.881 2.894 2.896 7.464.033 10.374l4.373 4.16c.266.253.276.674.023.94l-.02.02zm-16.46-10.277c0 3.437 2.887 6.224 6.448 6.224 3.561 0 6.448-2.787 6.448-6.224 0-3.437-2.887-6.224-6.448-6.224-3.56 0-6.448 2.787-6.448 6.224z"/></g></g></g></svg></span></span><span style="display:none;" class="msearchCloseicon"><span><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="enable-background:new 0 0 94.926 94.926;" viewBox="0 0 94.926 94.926" height="94.926px" width="94.926px" y="0px" x="0px" id="Capa_1" version="1.1"> <g> <path d="M55.931,47.463L94.306,9.09c0.826-0.827,0.826-2.167,0-2.994L88.833,0.62C88.436,0.224,87.896,0,87.335,0 c-0.562,0-1.101,0.224-1.498,0.62L47.463,38.994L9.089,0.62c-0.795-0.795-2.202-0.794-2.995,0L0.622,6.096 c-0.827,0.827-0.827,2.167,0,2.994l38.374,38.373L0.622,85.836c-0.827,0.827-0.827,2.167,0,2.994l5.473,5.476 c0.397,0.396,0.936,0.62,1.498,0.62s1.1-0.224,1.497-0.62l38.374-38.374l38.374,38.374c0.397,0.396,0.937,0.62,1.498,0.62 s1.101-0.224,1.498-0.62l5.473-5.476c0.826-0.827,0.826-2.167,0-2.994L55.931,47.463z"/> </g> </svg></span></span><span class="user-login"><span class="hide" data-plugin="user-isloggedin"><div class="user-controls pointer"><span><span data-plugin="user-name"></span><i class="icon-down-arrow"></i></span><div class="drop-down"><ul class=""><li><span data-plugin="user-logout">LOGOUT</span></li></ul></div></div></span><span class="hide pointer" data-plugin="user-notloggedin"><span class="user-icon-default"></span><span data-plugin="user-login">SIGN IN</span> / <span data-plugin="user-login">CREATE ACCOUNT</span></span></span><div class="travel_social social_header"><ul class="socialfooter"><li class="fb"><a aria-label="facebook" href="https://www.facebook.com/TimesofIndiaTravel" onclick="ga('send', 'event', 'web_top_header_timestravel', 'social_profile_icons', 'click_social_facebook');" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="twitter"><a aria-label="twitter" href="https://twitter.com/TOItravel" onclick="ga('send', 'event', 'web_top_header_timestravel', 'social_profile_icons', 'click_social_twitter');" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="rss"><a aria-label="rss" onclick="ga('send', 'event', 'web_top_header_timestravel', 'social_profile_icons', 'click_social_rss');" href="https://timesofindia.indiatimes.com/rss.cms" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="youtube"><a aria-label="youtube" onclick="ga('send', 'event', 'web_top_header_timestravel', 'social_profile_icons', 'click_social_youtube');" href="https://www.youtube.com/timesofindia" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="insta"><a aria-label="instagram" href="https://www.instagram.com/timesofindiatravel/" onclick="ga('send', 'event', 'web_top_header_timestravel', 'social_profile_icons', 'click_social_instagram');" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="linkedin"><a aria-label="linkedin" onclick="ga('send', 'event', 'web_top_header_timestravel', 'social_profile_icons', 'click_social_linkedin');" href="https://www.linkedin.com/company/timesofindia/" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="pinterest"><a aria-label="pinterest" target="_blank" onclick="ga('send', 'event', 'web_top_header_timestravel', 'social_profile_icons', 'click_social_pinterest');" href="https://in.pinterest.com/TimesOfIndia_Travel/" rel="nofollow noreferrer" class="pinsocialshare social_sprite"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 20 20" height="20px" width="20px"><g fill-rule="evenodd" fill="none" stroke-width="1" stroke="none" id="Page-1"><g transform="translate(-1496.000000, -28.000000)" id="times-travel-home1-copy-2"><g transform="translate(1273.000000, 28.000000)" id="Group-10"><g transform="translate(223.000000, 0.000000)" id="pinterest"><path stroke="#595959" id="Path" d="M10,0.5 C12.6233392,0.5 14.9983462,1.56331317 16.7175152,3.2824619 C18.4366719,5.00159823 19.5,7.37656126 19.5,9.9998817 C19.5,12.6232396 18.4367018,14.9982906 16.717561,16.7174924 C14.9984574,18.436657 12.6235383,19.5 10.0002366,19.5 C7.37686002,19.5 5.00176503,18.4367167 3.28253047,16.7175838 C1.56335794,14.998513 0.5,12.6236379 0.5,10.0003549 C0.5,7.48073515 1.50075637,5.06427802 3.28236637,3.28260479 C5.06397165,1.50093627 7.48038493,0.5 10,0.5 Z"/><g id="Path" fill-rule="nonzero" fill="#595959" transform="translate(6.000000, 5.000000)"><path d="M4.54324796,0 C1.58138321,0.00045019984 0.0070343725,1.89804253 0.0070343725,3.96716099 C0.0070343725,4.92653685 0.543222382,6.12361823 1.40175348,6.50313669 C1.64666219,6.61343565 1.6142478,6.4788259 1.82494133,5.67296819 C1.84159872,5.60588841 1.83304492,5.54781263 1.77902094,5.48523485 C0.551776179,4.06575476 1.53951463,1.14755939 4.36812022,1.14755939 C8.46178737,1.14755939 7.69689784,6.81197378 5.08033637,6.81197378 C4.40593701,6.81197378 3.90351399,6.28253877 4.06243453,5.627498 C4.25512006,4.84730168 4.63238753,4.00857938 4.63238753,3.44627978 C4.63238753,2.02905068 2.52095028,2.239294 2.52095028,4.11707754 C2.52095028,4.69738513 2.72624141,5.08905899 2.72624141,5.08905899 C2.72624141,5.08905899 2.04688985,7.83347722 1.92083389,8.34625484 C1.70743917,9.21424013 1.94964668,10.6193138 1.97080608,10.7404176 C1.98386187,10.8070472 2.05859504,10.8282066 2.10046363,10.7732822 C2.16754341,10.6854932 2.98870791,9.51407322 3.21876003,8.66724732 C3.3024972,8.35886043 3.64599968,7.10730488 3.64599968,7.10730488 C3.8724502,7.51608633 4.52523997,7.85823821 5.22079872,7.85823821 C7.28991719,7.85823821 8.78548106,6.03943086 8.78548106,3.78257906 C8.77827786,1.61891863 6.92660592,0 4.54324796,0 Z"/></g></g></g></g></g></svg></a></li></ul></div></div></div></div><div style="display:none" class="" id="login-popup"><button class="close-btn" type="button">+</button><div id="user-sign-in"></div></div></header><div class="explorecont"><div class="topnav"><div class="nav_wrap"><nav class="navigation "><script> $(document).ready(function(){ $(".mob_hor_nav").scrollLeft((100*$(".mob_hor_nav ul li").index($(".mob_hor_nav ul li.active")))); $(".mob_search_btn").on("click",function(){ $(".inc_search_mob .search-form3").show('fast'); $(".mob_search_btn").hide('slow') $(".inc_search_mob .logo").hide(); $(".inc_search_mob .header_get_app").hide(); }); $(".inc_search_mob .close_search").on("click",function(){ $(".inc_search_mob .search-form3").hide('slow'); $(".mob_search_btn").show('slow'); $(".inc_search_mob .logo").show('slow'); $(".inc_search_mob .header_get_app").show(); }); }) </script><div class="wrapper inc_search_mob"><ul class="clearfix L1menu"><li style="display:none;" id="toi_home" class="ft home"><a href="https://timesofindia.indiatimes.com/" rel="nofollow">TOI</a></li><li class="ft home"><a data-ga="Navigation,Home,Click" href="https://timesofindia.indiatimes.com/travel">Home</a></li><li><a target="_blank" data-ga="Navigation,Visual Stories,Click" href="https://timesofindia.indiatimes.com/web-stories/travel">Visual Stories</a></li><li class="mhide"><a data-ga="Navigation,TravelNews,Click" href="https://timesofindia.indiatimes.com/travel/travel-news">Travel News</a></li><li class="sub-nav"><a data-ga="Navigation,AdventureHolidays,Click" href="https://timesofindia.indiatimes.com/travel/adventure-holidays">Adventure Holidays</a></li><li class="sub-nav"><a data-ga="Navigation,WeekendGetaways,Click" href="https://timesofindia.indiatimes.com/travel/weekend-getaways">Weekend Getaways</a></li><li class="sub-nav"><a data-ga="Navigation,DrivingHolidays,Click" href="https://timesofindia.indiatimes.com/travel/driving-holidays">Driving Holidays</a></li><li class="sub-nav"><a data-ga="Navigation,TravelNews,Click" href="https://timesofindia.indiatimes.com/travel/travel-news">Travel News</a></li><li class="sub-nav hide-small"><a href="http://timespassiontrails.com" data-ga="Navigation,TimesPassion,Click" rel="nofollow">TIMES PASSION TRAILS</a></li><li data-sn="destinations" data-secname="Destinations"><a data-ga="Navigation,Destinations,Click" href="https://timesofindia.indiatimes.com/travel/destinations">Destinations</a></li><li data-sn="hotels" data-secname="Hotels"><a data-ga="Navigation,Hotels,Click" href="https://timesofindia.indiatimes.com/travel/hotels">Hotels</a></li><li data-sn="things to do" data-secname="Things to do"><a data-ga="Navigation,Things to do,Click" href="https://timesofindia.indiatimes.com/travel/things-to-do">Things to do</a></li><li data-sn="eating out" data-secname="Eating Out"><a data-ga="Navigation,Eating Out,Click" href="https://timesofindia.indiatimes.com/travel/eating-out">Eating Out</a></li><li data-sn="nightlife" data-secname="Nightlife"><a data-ga="Navigation,Nightlife,Click" href="https://timesofindia.indiatimes.com/travel/nightlife">Nightlife</a></li><li class="li_travel_photos"><a data-ga="Navigation,Photos,Click" href="https://timesofindia.indiatimes.com/travel/travel-photogallery">Photos</a></li><li data-sn="guides" data-secname="Guides"><a data-ga="Navigation,Guides,Click" href="https://timesofindia.indiatimes.com/travel/guides">Guides</a></li><li class=""><a href="https://timesofindia.indiatimes.com/travel/videolisting.cms" data-ga="Navigation,Videos,Click">Videos</a></li><li><a href="https://timesofindia.indiatimes.com/gousa" data-ga="Navigation,GeoUSA,Click">GO USA</a></li></ul></div></nav></div><div class="level2-menu"><div class="wrapper clearfix"><ul class=""><li><a data-ga="Navigation,AdventureHolidays,Click" href="https://timesofindia.indiatimes.com/travel/adventure-holidays">Adventure Holidays</a></li><li><a data-ga="Navigation,WeekendGetaways,Click" href="https://timesofindia.indiatimes.com/travel/weekend-getaways">Weekend Getaways</a></li><li><a data-ga="Navigation,DrivingHolidays,Click" href="https://timesofindia.indiatimes.com/travel/driving-holidays">Driving Holidays</a></li><li><a data-ga="Navigation,TravelNews,Click" href="https://timesofindia.indiatimes.com/travel/travel-news">Travel News</a></li></ul><div class="clear"></div></div></div><div class="htshowingsearch clearfix"><div class="htshowingsearchIn clearfix"><div class="wrapper clearfix"><div style="display:none" class="stylefixer"></div><form onsubmit="return verify_web_tag();" class="animatesearch clearfix"><input autocomplete="off" value="Type here to Search" onfocus="if (this.value == 'Type here to Search') this.value = '' " onblur="if (this.value == '') this.value = 'Type here to Search';" name="q" id="explore_text" class="placeholder blurtexteffect" type="text" placeholder="Type here to Search"><input type="submit" class="ent_sprite searchclose" value="Search"><a href="javascript://" class="searchclosen" style="display:none;">×</a></form><div class="showblanksearcherror"></div></div></div></div></div></div><div class="content clearfix"><div class="banner_local ATF"></div><div itemscope="itemscope" itemtype="https://schema.org/BreadcrumbList" class="breadcrumbs wrapper clearfix"><div itemtype="https://schema.org/ListItem" itemprop="itemListElement" itemscope="itemscope"><a itemprop="item" href="/travel"><span itemprop="name">Travel</span></a><span>/</span><meta content="1" itemprop="position"></div><div itemtype="https://schema.org/ListItem" itemprop="itemListElement" itemscope="itemscope"><a itemprop="item" href="/travel/guides"><span itemprop="name">Travel Guide</span></a><span>/</span><meta content="2" itemprop="position"></div><div style="float:none;display:inline"><span><span class="" itemprop="name"><div><span class="camelcase" data-href=""><span> Weather in mumbai</span></span></div></span></span></div></div><div class="wrapper weather-detail article"><div class="main-content weather-content"><div style="display: none;" class="data-not-found weather-ajax-error"><p>Unable to fetch the weather details. Please try again.</p></div><div class="weatherwidget_box weather_details"><h3>Weather in Mumbai</h3><h5><span class="date-time"></span></h5><div class="degcelsbox weather-unit"><div class="unit"><span data-temp="F"><strong><super>o</super>F</strong></span><span data-temp="C" class="active"><strong><super>°</super>C</strong></span></div></div><div class="temp_display"><div class="temp_displayleft"><span data-changetemp="true" class="tempdigitbox" data-weather="city-curtemp" data-citycurtemp="31"><strong class="_temp">31</strong><super>°C</super></span><span class="tempimg"><i class="weathericonsl weathericon_sprite iconlarge hazy" id="weathericonmain" data-iconid="22"></i><span>Partly Cloudy</span></span></div><div class="temp_displayleft"><div class="sunrise_set"><span>Sun Rise <strong data-weather="sunrise">06:53</strong></span><span>Sun Set <strong data-weather="sunset">17:58</strong></span></div><div class="sunrise_set"><span>Low <strong data-issuper="true" data-changetemp="true" data-weather="city-mintemp" data-citycurtemp="23">23<super>°</super></strong></span><span>High <strong data-issuper="true" data-changetemp="true" data-weather="city-maxtemp" data-citycurtemp="33">33<super>°</super></strong></span></div></div></div><ul class="weather_list"><li><span>Humidity</span><strong data-weather="max-humid">26</strong></li><li><span>UV Index</span><strong data-weather="uv-index">1</strong></li><li><span>Rainfall Probability (in %)</span><strong data-weather="rain-prob">0</strong></li><li><span>Wind Speed (Kmph)</span><strong data-weather="wind-spd">16</strong></li></ul><div class="scroll_weatherwidget"><h2 id="whTab"><a class="tabs active" href="javascript://">Daily</a><a class="tabs" href="javascript://">Weekly</a><div style="float:right" class="dailytabarrow"><button type="button" class="btn prev disabled leftarrow_weatherwidget" href="javascript://"></button><button type="button" class="btn next activeArrowClick rightarrow_weatherwidget" href="javascript://"></button></div></h2><div data-slideShowActive="false" class="slideshowbox weekhourforcast" data-plugin="weather_slideshow"><div class="scroll_weatherwidgetIn" id="weekhour-forecast"><ul class="hoursul"><li><p data-fcstValidLocal="2024-11-28T17:30:00+0530" data-fcstValid="1732795200">17:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="34"></i><strong data-changetemp="true" data-hwtemp="30" data-citycurtemp="30">30<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-28T18:30:00+0530" data-fcstValid="1732798800">18:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="31"></i><strong data-changetemp="true" data-hwtemp="29" data-citycurtemp="29">29<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-28T19:30:00+0530" data-fcstValid="1732802400">19:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="33"></i><strong data-changetemp="true" data-hwtemp="28" data-citycurtemp="28">28<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-28T20:30:00+0530" data-fcstValid="1732806000">20:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="31"></i><strong data-changetemp="true" data-hwtemp="27" data-citycurtemp="27">27<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-28T21:30:00+0530" data-fcstValid="1732809600">21:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="31"></i><strong data-changetemp="true" data-hwtemp="27" data-citycurtemp="27">27<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-28T22:30:00+0530" data-fcstValid="1732813200">22:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="33"></i><strong data-changetemp="true" data-hwtemp="26" data-citycurtemp="26">26<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-28T23:30:00+0530" data-fcstValid="1732816800">23:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="31"></i><strong data-changetemp="true" data-hwtemp="25" data-citycurtemp="25">25<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T00:30:00+0530" data-fcstValid="1732820400">00:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="31"></i><strong data-changetemp="true" data-hwtemp="24" data-citycurtemp="24">24<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T01:30:00+0530" data-fcstValid="1732824000">01:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="31"></i><strong data-changetemp="true" data-hwtemp="23" data-citycurtemp="23">23<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T02:30:00+0530" data-fcstValid="1732827600">02:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="33"></i><strong data-changetemp="true" data-hwtemp="23" data-citycurtemp="23">23<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T03:30:00+0530" data-fcstValid="1732831200">03:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="31"></i><strong data-changetemp="true" data-hwtemp="23" data-citycurtemp="23">23<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T04:30:00+0530" data-fcstValid="1732834800">04:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="31"></i><strong data-changetemp="true" data-hwtemp="23" data-citycurtemp="23">23<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T05:30:00+0530" data-fcstValid="1732838400">05:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="33"></i><strong data-changetemp="true" data-hwtemp="22" data-citycurtemp="22">22<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T06:30:00+0530" data-fcstValid="1732842000">06:30</p><i class="weathericon weathericon_sprite clearsky" data-iconid="31"></i><strong data-changetemp="true" data-hwtemp="22" data-citycurtemp="22">22<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T07:30:00+0530" data-fcstValid="1732845600">07:30</p><i class="weathericon weathericon_sprite sunny" data-iconid="32"></i><strong data-changetemp="true" data-hwtemp="22" data-citycurtemp="22">22<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T08:30:00+0530" data-fcstValid="1732849200">08:30</p><i class="weathericon weathericon_sprite sunny" data-iconid="32"></i><strong data-changetemp="true" data-hwtemp="23" data-citycurtemp="23">23<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T09:30:00+0530" data-fcstValid="1732852800">09:30</p><i class="weathericon weathericon_sprite sunny" data-iconid="32"></i><strong data-changetemp="true" data-hwtemp="25" data-citycurtemp="25">25<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T10:30:00+0530" data-fcstValid="1732856400">10:30</p><i class="weathericon weathericon_sprite sunny" data-iconid="32"></i><strong data-changetemp="true" data-hwtemp="27" data-citycurtemp="27">27<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T11:30:00+0530" data-fcstValid="1732860000">11:30</p><i class="weathericon weathericon_sprite sunny" data-iconid="32"></i><strong data-changetemp="true" data-hwtemp="28" data-citycurtemp="28">28<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T12:30:00+0530" data-fcstValid="1732863600">12:30</p><i class="weathericon weathericon_sprite sunny" data-iconid="32"></i><strong data-changetemp="true" data-hwtemp="29" data-citycurtemp="29">29<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T13:30:00+0530" data-fcstValid="1732867200">13:30</p><i class="weathericon weathericon_sprite sunny" data-iconid="32"></i><strong data-changetemp="true" data-hwtemp="30" data-citycurtemp="30">30<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T14:30:00+0530" data-fcstValid="1732870800">14:30</p><i class="weathericon weathericon_sprite sunny" data-iconid="32"></i><strong data-changetemp="true" data-hwtemp="31" data-citycurtemp="31">31<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T15:30:00+0530" data-fcstValid="1732874400">15:30</p><i class="weathericon weathericon_sprite sunny" data-iconid="32"></i><strong data-changetemp="true" data-hwtemp="31" data-citycurtemp="31">31<sup>o</sup></strong></li><li><p data-fcstValidLocal="2024-11-29T16:30:00+0530" data-fcstValid="1732878000">16:30</p><i class="weathericon weathericon_sprite sunny" data-iconid="32"></i><strong data-changetemp="true" data-hwtemp="30" data-citycurtemp="30">30<sup>o</sup></strong></li></ul></div></div><div class="slideshowbox weekforcast"><div style="display:none" class="scroll_weatherwidgetIn" id="week-forecast"><ul></ul></div></div></div></div><div><!-- could not get data --> <!--/travel/travel_dubai_ads_widget.cms?adonpage=4potime:1--><div class="box1"><div style="padding: 0px;" class="page-title clearfix"><h1>Weather in Mumbai</h1></div><p class="page-descp"> Today's temperature in Mumbai is 31<sup>°c</sup>. Day's maximum temperature would hover at 33<sup>°c</sup>, while minimum temperature is predicted to be 23<sup>°c</sup>.</p><p class="city_overview"></p></div><div class="box1 clearfix"><div class="best-weather"><h2>Best Time to Visit <span class="cptl">Mumbai</span></h2><p class="best_time"></p></div></div><div class="box1 seasons"></div><div class="box1 city_weather"><h4>Weather by City</h4><ul class="list7 clearfix"><li><a href="/travel/goa/weather">Weather in Goa</a></li><li><a href="/travel/delhi/weather">Weather in Delhi</a></li><li><a href="/travel/mumbai/weather">Weather in Mumbai</a></li><li><a href="/travel/bangalore/weather">Weather in Bangalore</a></li><li><a href="/travel/chennai/weather">Weather in Chennai</a></li><li><a href="/travel/hyderabad/weather">Weather in Hyderabad</a></li></ul><ul class="list7 clearfix more_weather"><li><a href="/travel/jaipur/weather">Weather in Jaipur</a></li><li><a href="/travel/puri/weather">Weather in Puri</a></li><li><a href="/travel/kolkata/weather">Weather in Kolkata</a></li><li><a href="/travel/shimla/weather">Weather in Shimla</a></li><li><a href="/travel/manali/weather">Weather in Manali</a></li><li><a href="/travel/ooty/weather">Weather in Ooty</a></li><li><a href="/travel/agra/weather">Weather in Agra</a></li><li><a href="/travel/mahabaleshwar/weather">Weather in Mahabaleshwar</a></li><li><a href="/travel/nainital/weather">Weather in Nainital</a></li><li><a href="/travel/srinagar/weather">Weather in Srinagar</a></li><li><a href="/travel/mysore/weather">Weather in Mysore</a></li><li><a href="/travel/udaipur/weather">Weather in Udaipur</a></li><li><a href="/travel/darjeeling/weather">Weather in Darjeeling</a></li><li><a href="/travel/kochi/weather">Weather in Kochi</a></li><li><a href="/travel/kodaikanal/weather">Weather in Kodaikanal</a></li><li><a href="/travel/tirupathi/weather">Weather in Tirupathi</a></li><li><a href="/travel/amritsar/weather">Weather in Amritsar</a></li><li><a href="/travel/varanasi/weather">Weather in Varanasi</a></li><li><a href="/travel/trivandrum/weather">Weather in Trivandrum</a></li><li><a href="/travel/pondicherry/weather">Weather in Pondicherry</a></li><li><a href="/travel/kanyakumari/weather">Weather in Kanyakumari</a></li><li><a href="/travel/jaisalmer/weather">Weather in Jaisalmer</a></li><li><a href="/travel/dalhousie/weather">Weather in Dalhousie</a></li><li><a href="/travel/leh/weather">Weather in Leh</a></li><li><a href="/travel/surat/weather">Weather in Surat</a></li><li><a href="/travel/allahabad/weather">Weather in Allahabad</a></li><li><a href="/travel/gaya/weather">Weather in Gaya</a></li><li><a href="/travel/dehradun/weather">Weather in Dehradun</a></li><li><a href="/travel/dwarka/weather">Weather in Dwarka</a></li><li><a href="/travel/ujjain/weather">Weather in Ujjain</a></li><li><a href="/travel/vellore/weather">Weather in Vellore</a></li><li><a href="/travel/kalimpong/weather">Weather in Kalimpong</a></li><li><a href="/travel/jamnagar/weather">Weather in Jamnagar</a></li><li><a href="/travel/andamans/weather">Weather in Andamans</a></li></ul><a href="/travel/weather" class="more-btn">Weather in India</a></div></div></div><div class="sidebar"><div class="banner_local Mrec"></div><div class="banner_local MREC1"></div></div></div></div><div style="opacity: 0; display: none; position: absolute; top: 0px; left: 0px; z-index: 1000; background:#000; filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0)" id="backgroundPopup"></div><link xmlns:xslthelper="com.times.utils.xslthelper.XMLHelper" xmlns:og="http://ogp.me/ns#" xmlns:math="java.lang.Math" xmlns:java="java" xmlns:g="http://base.google.com/ns/1.0" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:ext="http://exslt.org/common" xmlns:dateUtil="com.indiatimes.cms.utilities.CMSDateUtility" href="/travel/footercss_tt/minify-1,version-5.cms" type="text/css" rel="stylesheet"><style> .ntfc_popup { bottom: 0px; top: auto!important; width: 100%!important; height: 69px!important; text-align: center; max-width: 100%!important; background: white; /* For browsers that do not support gradients */ background: -webkit-linear-gradient(white, #ddd); /* For Safari 5.1 to 6.0 */ background: -o-linear-gradient(white, #ddd); /* For Opera 11.1 to 12.0 */ background: -moz-linear-gradient(white, #ddd); /* For Firefox 3.6 to 15 */ background: linear-gradient(white, #ddd); /* Standard syntax */ } .ntfc_buttongroup { width: 221px; float: right; } .ntfc_buttongroup .ntfc_dactive { background: none!important; border: 1px solid #989898; padding: 10px 7px!important; margin-top: -7px } .ntfc_buttongroup .ntfc_active { background-color: #f24d09!important; padding: 10px 7px!important; margin-top: -7px; } .ntfc_buttongroup a.ntfc_active, .ntfc_buttongroup a.ntfc_dactive { display:none; } .ntfc_buttongroup a.ntfc_active:link, .ntfc_buttongroup a.ntfc_active:visited { color: #fff!important } .ntfc_buttongroup a.ntfc_active:link:hover, .ntfc_buttongroup a.ntfc_active:visited:hover { color: #fff!important } .ntfc_buttongroup a.ntfc_active:hover { color: #fff !important; } .ntfc_logo { background: url("https://static.toiimg.com/photo/64781900.cms?width=120&height=40&resizemode=4") no-repeat 0 0; width: 126px!important; height: 43px!important; padding-right: 28px; border-right: 1px solid #cacaca; margin-right: 31px!important; } .ntfc_content p { float: left; text-align: left; line-height: 18px!important; margin-top: -11px!important; color: #191919; width: 51%; padding-top: 10px } .ntfc_popup .ntfc_inner { display: inline-block; width: 920px } .ntfc_buttongroup .ntfc_active[data-plugin="ntfc-enable-green"]{background-color:#55b229!important;} @media screen and (max-width: 768px) { .ntfc_cont_mob { display: block!important; } .ntfc_cont_desk { display: none } .ntfc_popup { height: 88px!important; } .ntfc_content p { width: 78% } .ntfc_buttongroup { margin: 10px 0 10px 0!important; float: left; } .ntfc_inner .ntfc_logo { background: url("https://static.toiimg.com/thumb/65990759.cms?width=40&height=40&resizemode=4") no-repeat 0 0; width: 40px!important; height: 43px!important; padding-right: 8px; border-right: none; margin-right: 10px!important; } .ntfc_popup .ntfc_inner { ; width: 100% } } @media screen and (min-width: 768px and max-width: 1024px) { .ntfc_cont_mob { display: block!important; } .ntfc_cont_desk { display: none } .ntfc_inner .ntfc_logo { background: url("https://static.toiimg.com/thumb/46675841.cms?width=40&height=40&resizemode=4") no-repeat 0 0; width: 40px!important; height: 43px!important; padding-right: 28px; border-right: 1px solid #cacaca; margin-right: 31px!important; } .ntfc_popup .ntfc_inner { ; width: 100% } } .otcookie { color: #e21b22 !important; border: 0px !important; padding: 0px !important; margin-left: 8px !important; background: none !important; font-size: 11px !important; } </style><script> try { if ($(window).width() > 1024) { $(".mobile_ctn").remove(); } else { $(".desktop_ctn").remove(); } } catch (e) {} </script><script type="text/javascript"> function refreshLastFooterSection() { var urlval = 'https://timesofindia.indiatimes.com/travel/lastfootersection.cms'; if(typeof setInterval == 'function') { var xmlhttp=false; xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP"); setInterval( ()=>{ if (xmlhttp){ xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4){ if (xmlhttp.status==200){ document.getElementById('lastSection').innerHTML=xmlhttp.responseText; } } } xmlhttp.open("GET",urlval,true); xmlhttp.send(null); } }, 600000) } } refreshLastFooterSection(); </script><p style="display:none;" id="back-top"><a href="#top"><span></span></a></p><div class="footer_container"><div class="wrapper"><div class="footer_wrap"><div class="leftcol"><div class="logo_tt"><img height="54" width="160" src="https://static.toiimg.com/photo/90664349.cms" alt="logo"></div><div class="social_footer footer_social hidden-xs"><div><h4 class="follow_us_title">Follow us on</h4></div><ul class="socialfooter"><li class="fb"><a href="https://www.facebook.com/TimesofIndiaTravel" onclick="ga('send', 'event', 'web_bottom_footer_timestravel', 'social_profile_icons', 'click_social_facebook');" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="twitter"><a href="https://twitter.com/TOItravel" onclick="ga('send', 'event', 'web_bottom_footer_timestravel', 'social_profile_icons', 'click_social_twitter');" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="rss"><a onclick="ga('send', 'event', 'web_bottom_footer_timestravel', 'social_profile_icons', 'click_social_rss');" href="https://timesofindia.indiatimes.com/rss.cms" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="youtube"><a onclick="ga('send', 'event', 'web_bottom_footer_timestravel', 'social_profile_icons', 'click_social_youtube');" href="https://www.youtube.com/timesofindia" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="insta"><a href="https://www.instagram.com/timesofindiatravel/" onclick="ga('send', 'event', 'web_bottom_footer_timestravel', 'social_profile_icons', 'click_social_instagram');" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="linkedin"><a onclick="ga('send', 'event', 'web_bottom_footer_timestravel', 'social_profile_icons', 'click_social_linkedin');" href="https://www.linkedin.com/company/timesofindia/" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="koo"><a href="https://www.kooapp.com/profile/timesofindia" onclick="ga('send', 'event', 'web_bottom_footer_timestravel', 'social_profile_icons', 'click_social_koo');" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="wikipedia"><a onclick="ga('send', 'event', 'web_bottom_footer_timestravel', 'social_profile_icons', 'click_social_wikipedia');" href="https://en.wikipedia.org/wiki/The_Times_of_India" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li></ul></div></div><div class="rightcol"><div class="links_footer"><a href="/travel/about-us">About us</a><a href="/travel/authors">Authors </a><a href="https://timesofindia.indiatimes.com/privacy-policy/cookiepolicy/86934312.cms">Privacy Policy</a><a href="/travel/sitemap.cms">Sitemap</a><a href="/travel/contact-us">Contact Us</a><a href="/travel/advertise-with-us">Advertise with us</a></div></div></div><div class="last_section_footer" id="lastSection"><article xmlns:g="http://base.google.com/ns/1.0"><h3><span>Latest News</span></h3><ul><li><a data-action="Navigation_FooterItem" data-ga="true" data-label="Ahmedabad’s famous Shastri Bridge to remain shut till Dec 31; traffic advisory issues" href="https://timesofindia.indiatimes.com/travel/travel-news/ahmedabads-famous-shastri-bridge-to-remain-shut-till-dec-31-traffic-advisory-issues/articleshow/115764339.cms" target="_blank" title="Ahmedabad’s famous Shastri Bridge to remain shut till Dec 31; traffic advisory issues">Ahmedabad’s famous Shastri Bridge to remain shut till Dec 31; traffic advisory issues</a></li><li><a data-action="Navigation_FooterItem" data-ga="true" data-label="Sikkim: Mangan District ready to welcome tourists from December 1; all that you need to know" href="https://timesofindia.indiatimes.com/travel/travel-news/sikkim-mangan-district-ready-to-welcome-tourists-from-december-1-all-that-you-need-to-know/articleshow/115763514.cms" target="_blank" title="Sikkim: Mangan District ready to welcome tourists from December 1; all that you need to know">Sikkim: Mangan District ready to welcome tourists from December 1; all that you need to know</a></li><li><a data-action="Navigation_FooterItem" data-ga="true" data-label="Winterline phenomenon in Mussoorie: A rare Himalayan delight" href="https://timesofindia.indiatimes.com/travel/destinations/winterline-phenomenon-in-mussoorie-a-rare-himalayan-delight/articleshow/115739082.cms" target="_blank" title="Winterline phenomenon in Mussoorie: A rare Himalayan delight">Winterline phenomenon in Mussoorie: A rare Himalayan delight</a></li></ul></article><!--/lastfootersection.cmspotime:1--></div><div class="hidden-md"><div class="social_footer footer_social"><div><h4 class="follow_us_title">Follow us on</h4></div><ul class="socialfooter"><li class="fb"><a href="https://www.facebook.com/TimesofIndiaTravel" onclick="ga('send', 'event', 'mWeb_bottom_footer_timestravel', 'social_profile_icons', 'click_social_facebook');" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="twitter"><a href="https://twitter.com/TOItravel" onclick="ga('send', 'event', 'mWeb_bottom_footer_timestravel', 'social_profile_icons', 'click_social_twitter');" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="rss"><a onclick="ga('send', 'event', 'mWeb_bottom_footer_timestravel', 'social_profile_icons', 'click_social_rss');" href="https://timesofindia.indiatimes.com/rss.cms" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="youtube"><a onclick="ga('send', 'event', 'mWeb_bottom_footer_timestravel', 'social_profile_icons', 'click_social_youtube');" href="https://www.youtube.com/timesofindia" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="insta"><a href="https://www.instagram.com/timesofindiatravel/" onclick="ga('send', 'event', 'mWeb_bottom_footer_timestravel', 'social_profile_icons', 'click_social_instagram');" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="linkedin"><a onclick="ga('send', 'event', 'mWeb_bottom_footer_timestravel', 'social_profile_icons', 'click_social_linkedin');" href="https://www.linkedin.com/company/timesofindia/" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="koo"><a href="https://www.kooapp.com/profile/timesofindia" onclick="ga('send', 'event', 'mWeb_bottom_footer_timestravel', 'social_profile_icons', 'click_social_koo');" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li><li class="wikipedia"><a onclick="ga('send', 'event', 'mWeb_bottom_footer_timestravel', 'social_profile_icons', 'click_social_wikipedia');" href="https://en.wikipedia.org/wiki/The_Times_of_India" rel="nofollow noreferrer" class="social_sprite" target="_blank"></a></li></ul></div></div><div class="copyright"><span>Copyright © <script>document.write(new Date().getFullYear())</script>. Times Internet Limited. All rights reserved. A </span><a href="https://timesofindia.indiatimes.com" class="toi_link">Times of India</a><span> initiative | Weather powered by Skymet Weather</span><button style="display:none;" class="otcookie ot-sdk-show-settings" id="ot-sdk-btn">Do Not Sell or Share My Personal Information</button></div></div></div><script> /* Fetch user info from cooies*/ var loadUser = function(){ var src = $('#profileimg2').attr('src'); if(typeof apifstnameonly != 'undefined' && apifstnameonly != ''){ var userTemp = apifstnameonly; if(src && src.indexOf('11964050') != -1 && !userTemp) {$('#apifstnameonly').text(username.split(' ')[0]);$('#profileimg2').attr('src','https://mytimes.indiatimes.com/image/thumb/0/default'); } //try{console.log("USER INFO SUCCESS:")}catch(e){} } } setTimeout(function(){loadUser();},3000); $( "body" ).on( "click", "[data-ga]", function () { try{ var ga_data = $( this ).attr( "data-ga" ); var ga_arr = ga_data.split( "," ); ga_arr.unshift( "event" ); ga_arr.unshift( "send" ); ga.apply(this,ga_arr); }catch(e){} } ); if ( typeof window !== 'undefined' && window.geoinfo && typeof window.geoinfo.CountryCode === 'string' && typeof window.geoinfo.region_code === 'string' && (window.geoinfo.CountryCode === 'US' || window.geoinfo.region_code === 'CA') ) { $("#ot-sdk-btn").show(); } </script><div class="newsletterconfirmbox"><div><h2>Congratulations!</h2><p>You have been successfully added to the mailing list of Times of India Travel. To complete the subscription process, kindly open your inbox and click on the confirmation link which has been emailed to you.</p></div><span onclick="newsletterwidget.closeconfirm('newsletterconfirmbox')" class="closeconfirm">close</span></div><script>$(document).ready(function(){$(".slideshowadd").hide();}) </script><!--/footer.cms?v=49&place=&frmapp=nopotime:1--><script src="/travel/requirejs/version-1,minify-1.cms" defer></script><script src="https://jssocdn.indiatimes.com/crosswalk/jsso_crosswalk_legacy_0.5.3.min.js" type="text/javascript"></script><script src="https://www.google.com/recaptcha/api.js"></script><script src="https://connect.facebook.net/en_US/sdk.js"></script><link href="/travel/usermanagementcss/version-24,minify-1.cms" media="screen" type="text/css" rel="stylesheet"><script> var globaluser; var ssoid = undefined; var profilePicImg = $('[data-profile="pic"] img'); window.timestravel = window.timestravel || {}; window.timestravel.mobile = window.timestravel.mobile || {}; /* require(["jquery", "tiljs/login", "tiljs/event"], function($, login, event) { event.subscribe("user.status", function(user) { if(login.getUser()){ globaluser = login.getUser(); // ssoid = cookies.get_cookie("ssoid"); //timesfood.timestravel.userid = cookies.get_cookie("ssoid"); profilePicImg.attr('src',login.getUser().getThumb()); } else{ globaluser = ''; // ssoid = cookies.get_cookie("ssoid"); // timesfood.mobile.userid = cookies.get_cookie("ssoid"); profilePicImg.attr('src','https://static.toiimg.com/photo/29251859.cms'); } }); });*/ </script><script src="/travel/htjsnew/version-97,minify-1.cms" defer></script><script src="/travel/travel_login/version-6,minify-1.cms" defer type="text/javascript"></script><script data-domain-script="c4da41da-1e22-4088-b5ac-5c8293819628" charset="UTF-8" type="text/javascript" src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js"></script><script type="text/javascript"> var optOutCookieName = "optout"; var optOutCookieAge = 365; const date = new Date(); date.setTime(date.getTime() + optOutCookieAge * 24 * 60 * 60 * 1000); function onAcceptOnetrust() { document.cookie = 'optout=0; expires=date.toGMTString(); path=/;'; } function onRejectOnetrust() { document.cookie = 'optout=1; expires=date.toGMTString(); path=/;'; } function attachOnetrustListener() { if (window.onetrustEventsAttached) { return; } const onetrustSDK = document.querySelector("#onetrust-consent-sdk"); if (onetrustSDK) { const acceptBtn = onetrustSDK.querySelector("#onetrust-banner-sdk #onetrust-accept-btn-handler"); const closeBtn = onetrustSDK.querySelector("#onetrust-banner-sdk .onetrust-close-btn-handler"); const rejectAllBtn = onetrustSDK.querySelector("#onetrust-banner-sdk #onetrust-reject-all-handler"); // Adding events if acceptBtn is present then related buttons also be presented. if (acceptBtn) { acceptBtn.addEventListener("click", onAcceptOnetrust); } if (closeBtn) { closeBtn.addEventListener("click", onRejectOnetrust); } if (rejectAllBtn) { rejectAllBtn.addEventListener("click", onRejectOnetrust); } window.onetrustEventsAttached = true; const onetrustPCSDK = onetrustSDK.querySelector("#onetrust-pc-sdk"); if (!onetrustPCSDK) { return; } const allowBtn = onetrustPCSDK.querySelector("#accept-recommended-btn-handler"); const rejectBtn = onetrustPCSDK.querySelector(".ot-pc-refuse-all-handler"); const confirmChoiceBtn = onetrustPCSDK.querySelector(".save-preference-btn-handler"); // Adding events if allowBtn is present then related buttons also be presented. if (allowBtn) { allowBtn.addEventListener("click", onAcceptOnetrust); } if (confirmChoiceBtn) { confirmChoiceBtn.addEventListener("click", onAcceptOnetrust); } if (rejectBtn) { rejectBtn.addEventListener("click", onRejectOnetrust); } } } function OptanonWrapper() { attachOnetrustListener(); } </script><script type="text/javascript" src="https://timesofindia.indiatimes.com/travel/articleshowjs/minify-1,version-34.cms"></script><script type="text/javascript" src="https://timesofindia.indiatimes.com/travel/timessliderjs/minify-1,version-16.cms"></script><script src="/travel/js_footer/version-8,minify-1.cms" type="text/javascript"></script><script src="/travel/gdpr_js_hc/version-16,minify-0.cms" type="text/javascript"></script><script src="/travel/gdpr_eu_cookies_js/version-12,minify-0.cms" defer type="text/javascript"></script><script type="application/javascript"> function loadDynamicJS(file) { var jsElm = document.createElement("script"); jsElm.type = "application/javascript"; jsElm.src = file; document.body.appendChild(jsElm); } $(document).ready(function(){ if (window.TimesGDPR && TimesGDPR.common.consentModule.gdprCallback){ TimesGDPR.common.consentModule.gdprCallback(function(dataObj){ if(dataObj.userRegion == 'CA'){ loadDynamicJS("https://static.clmbtech.com/ase/7477/55/aa.js"); document.getElementById("ccpadnt").style.display = "inline-block"; } else if (dataObj.isEUuser && dataObj.consentGiven && !parseInt(Get_Ckie("optout"))){ loadDynamicJS("https://static.clmbtech.com/ase/7477/55/aa.js") } else if(!dataObj.isEUuser){ loadDynamicJS("https://static.clmbtech.com/ase/7477/55/aa.js") } else{ //do nothing } }); } else{ loadDynamicJS("https://static.clmbtech.com/ase/7477/55/aa.js") } }); </script><script type="application/javascript"> var _comscore = _comscore || []; function fireComscore(condition){ var objComScore = { c1: "2", c2: "6036484" }; if(condition){ objComScore['cs_ucfr'] = 0; } _comscore.push(objComScore); (function() { var s = document.createElement("script"), el = document.getElementsByTagName("script")[0]; s.async = true; s.src = (document.location.protocol == "https:" ? "https://sb" : "http://b") + ".scorecardresearch.com/beacon.js"; el.parentNode.insertBefore(s, el); })(); } if (window.TimesGDPR && TimesGDPR.common.consentModule.gdprCallback){ TimesGDPR.common.consentModule.gdprCallback(function(dataObj){ if (dataObj.isEUuser){ fireComscore(true); }else{ fireComscore(false); } }); }else{ fireComscore(true); } </script><noscript><img src="http://b.scorecardresearch.com/p?c1=2&c2=6036484&cv=2.0&cj=1"></noscript><script type="text/javascript"> var _iBeat_field = ''; var content_type = 1; if ((window.location.pathname.split('/')[window.location.pathname.split('/').length - 1].substring(0, 2) == 'ss') || (window.location.pathname.split('/')[window.location.pathname.split('/').length - 2] == 'slideshow_list')){ content_type = 3; _iBeat_field ="groupId="; } if ((window.location.pathname.split('/')[window.location.pathname.split('/').length - 1].substring(0, 2) == 'ss') || (window.location.pathname.split('/')[window.location.pathname.split('/').length - 2] == 'photostory')){ content_type = 3; _iBeat_field ="groupId="; } var _page_config = { host: "happytrips.com", key: "13b84649c74ae6635ead40e254328b1", domain: "happytrips.com", channel: "happytrips", action: 1, articleId: '2147477992', contentType: content_type, catIds : '0', location: 1, subcat: '', contenttag: '', articledt:'' ,//MMM dd, yyyy, hh.mma zzz author:'', cat: '', iBeatField: _iBeat_field }; </script><script> if ( window.TimesGDPR && TimesGDPR.common.consentModule.gdprCallback) { TimesGDPR.common.consentModule.gdprCallback(function(data){ if(!data.isEUuser){ !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, document,'script','//connect.facebook.net/en_US/fbevents.js'); fbq('init', '1047366448616807'); fbq('track', "PageView"); } }) } </script><div class="gutter_ad_wrap"><div class="banner_local GUTTERAD"><div data-adsslot="HappyTrips/HappyTrips_ROS/Happytrips_ROS_Sticky" data-size="[[160, 600]]" data-value="HappyTrips/HappyTrips_ROS/Happytrips_ROS_Sticky" id="div-gpt-ad-1495699528020-0-2147477992"></div></div></div><script> $(document).ready(function(){ gutterad_position(); }) </script><script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.2/jquery-ui.min.js"></script></div><div style="display:none;" class="vcard"><span class="adr"><span class="locality"><span class="value-title" title=""></span></span><abbr class="region" title=""></abbr></span><span class="geo"><span class="latitude"><span class="value-title" title=""></span></span><span class="longitude"><span class="value-title" title=""></span></span></span></div><script type="text/javascript"> function get_stumble() {/* http://www.stumbleupon.com/services/1.01/badge.getinfo?url=' */ } function getfbcount(url){ var fblikes; $.getJSON('https://graph.facebook.com/?ids=' + url, function(data){; fblikes = data[url].shares; lg('https://graph.facebook.com/?ids=' + url); if(fblikes != undefined){ $(".share-count span").html(parseInt($(".share-count span").html())+parseInt(fblikes)); } }); } function gettwcount(url){ var tweets; $.getJSON('https://urls.api.twitter.com/1/urls/count.json?url=' + url + '&callback=?', function(data){ lg('http://urls.api.twitter.com/1/urls/count.json?url=' + url + '&callback=?'); tweets = data.count; $(".share-count span").html(parseInt($(".share-count span").html())+parseInt(tweets)); }); } //getfbcount(document.location.href); //gettwcount(document.location.href); </script><script src="/travel/toi_js_ads/version-74,minify-1.cms" type="text/javascript"></script><script src="/travel/newtraveladcodes/version-11,minify-1.cms" type="text/javascript"></script><script src="/travel/newtraveladcoderender/version-9,minify-1.cms" type="text/javascript"></script><script type="text/javascript" src="https://timesofindia.indiatimes.com/travel/js_poi/minify-1,version-379.cms"></script><script type="text/javascript"> $( document ).ready(function() { $('.nav-btn, .page-overlay').click(function() { $('.navigation ul').slideToggle(); $('.page-overlay').toggleClass('show'); }); if(openlogin == 1){loadPopup(3); $("#signupsso").load(function (){ window.frames.signupsso.openregister_div(); }); } if(window.newsletterwidget || window.newslettersubscribe){newsletterwidget.init(); } }); </script><script type="text/javascript"> /* */ var google_conversion_id = 976739060; var google_custom_params = window.google_tag_params; var google_remarketing_only = true; /* */ </script><script src="//www.googleadservices.com/pagead/conversion.js" type="text/javascript"></script><script type="application/ld+json"> { "@context": "https://schema.org", "@type": "Organization", "name": "Times of India", "url": "https://timesofindia.indiatimes.com", "logo": { "@type": "ImageObject", "url": "https://static.toiimg.com/photo/msid-58127550/toilogo.jpg", "width": 600, "height": 60 } } </script><script type="text/javascript" src="https://timesofindia.indiatimes.com/travel/htnotifacation_pn_js/minify-1,version-27.cms"></script><div class="banner_local Innov1"></div><script> var city_searched='Mumbai'; var seasons_block='0'; var city_overview=""; var best_time=""; var seasons="<h2>Seasons in <span class=cptl>"+city_searched+"</span></h2>"; var seasons_temp=""; var temp_data_cust="[['Month', 'MIN',{ role: 'style' },{ type: 'string', role: 'tooltip'}, 'MAX', { role: 'style' },{ type: 'string', role: 'tooltip'}]"; var rain_data_cust="[['Month', 'RAINY DAYS',{ type: 'string', role: 'tooltip'}]"; var rainy_days=0; function populate_data(){ if(city_overview!=''){$(".city_overview").html(city_overview);} if(best_time!=''){$(".best_time").html(best_time);} google.setOnLoadCallback(drawChart); } function loadcityinfo(url,type){ $.ajax( {crossDomain: true, url: url, type: 'GET', dataType: 'json', success: function( data ){ if(data==""){ $("#temp_div").parent().prev().hide(); $("#temp_div").parent().hide(); $("#rain_div").parent().hide(); } /* if(data==""){ $("#temp_div,#rain_div").parent().hide(); $("#temp_div").parent().prev().hide(); if($(".seasons .sub-title").length==0){ $(".seasons").hide(); } } */ for(i in data[0].periods) { if(data[0].periods[i].name=="OVERVIEW") { city_overview=data[0].periods[i].content; } if(data[0].periods[i].name=="BEST") { if(data[0].periods[i].content!=""){ best_time=data[0].periods[i].content; $(".best-weather").show(); } else { if ($('.best-weather').is(':empty')){ $(".best-weather").hide(); } if(seasons_block==0) { $(".best-weather").parent().hide(); } $(".travel_g").css("float","left") } } if(data[0].periods[i].name=="WINTER") { if(data[0].periods[i].content!=''){ seasons_temp +='<span class="sub-title">WINTERS</span>' seasons_temp +='<p>'+data[0].periods[i].content+'</p><br/><br/>'; } } if(data[0].periods[i].name=="SUMMER") { if(data[0].periods[i].content!=''){ seasons_temp +='<span class="sub-title">SUMMERS</span>' seasons_temp +='<p>'+data[0].periods[i].content+'</p><br/><br/>'; } } if(data[0].periods[i].name=="MONSOON") { if(data[0].periods[i].content!=''){ seasons_temp +='<span class="sub-title">MONSOONS</span>' seasons_temp +='<p>'+data[0].periods[i].content+'</p><br/><br/>'; } } } if(seasons_temp==""){ if($(".seasons .sub-title").length==0){ $(".seasons").hide(); //if not from content and js hide it } }else{seasons=seasons+seasons_temp; $(".seasons").html(seasons); } for(i=0;i<12;i++) { temp_data_cust+=",['"+data[0].periods[i].name.substring(0,3)+"',"; temp_data_cust+=Math.round(data[0].periods[i].records.temp_dailyMin)+", 'fill-color: #acdd2a','"+Math.round(data[0].periods[i].records.temp_dailyMin)+"掳C',"; temp_data_cust+=Math.round(data[0].periods[i].records.temp_dailyMax)+", 'fill-color: #e03152','"+Math.round(data[0].periods[i].records.temp_dailyMax)+"掳C']"; rain_data_cust+=",['"+data[0].periods[i].name.substring(0,3)+"',"; rain_data_cust+=Math.round(data[0].periods[i].records.rain_rainyDays)+","+Math.round(data[0].periods[i].records.rain_rainyDays)+"]"; rainy_days +=data[0].periods[i].records.rain_rainyDays; } temp_data_cust+="]"; rain_data_cust+="]"; populate_data(); }, error: function(jqXHR, textStatus, errorThrown){ } } ); } $( document ).ready(function() { //loadcityinfo("https://api.skymet.net/api/d5e22624983e6e46fff6f76e86dae19b/1/web/climate/records/json/"+skynet_id+"/"); }); function loadweatherapi(url,type){ $.ajax( {crossDomain: true, url: url, type: 'GET', dataType: 'json', success: function( data ){ if(type=="multi"){ weather_w(data,type); } if(type=="single"){ append_title(data); } }, error: function(jqXHR, textStatus, errorThrown){ // alert(errorThrown); } } ); } var charttype=""; function append_title(data) { try{ if(data.actual.temp){ document.title=data.actual.temp +String.fromCharCode(176)+ "C " + document.title } }catch(e){} } function weather_w(data,type){ var w_block=$("#week_temp"); var month = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; var temp='<div class="slides-wrap viewport"><ul class="clearfix overview">'; var temp_mobile ='<table style="width:100%"><tr><th>Day</th><th>Max</th><th>Min</th></tr>'; var today_temp=''; var today_temp_mob=''; for(var i=0;i<data.length;i++){ dte=f_weather_date(data[i].date); var mydate=new Date(dte.split("-").join("/")); var temp_month=month[mydate.getMonth()]; var year=mydate.getFullYear()+""; var date_today = mydate.getDate()+""; temp +='<li><h5>'+data[i].weekday.substring(0,3)+'<span>'+temp_month.substring(0,3)+' '+date_today+'</span></h5><div class="detail-box clearfix"><div class="value max"><h6>MAX</h6><span>'+convert(data[i].temp_max)+'</span></div><div class="value min"><h6>MIN</h6><span>'+convert(data[i].temp_min)+'</span></div><span class="icon"><i class="'+data[i].icon+'" title="'+data[i].icon+'"></i></span></div></li>'; temp_mobile +='<tr><td>'+data[i].weekday+' '+temp_month.substring(0,3)+' '+date_today+'</td><td class="max">'+convert(data[i].temp_max)+'</td><td class="min">'+convert(data[i].temp_min)+'</td></tr>'; if(i==0){ today_temp =temp; today_temp_mob =temp_mobile; } } temp +='</ul></div>'; temp_mobile +='</table>'; today_temp +='</ul></div>';; today_temp_mob +='</table>';; if($(".main-content").width()<649){ charttype="mobile"; $(w_block).html(temp_mobile); $("#today_temp").html(today_temp_mob); } else{ charttype="desktop"; $(w_block).html(temp); $("#today_temp").html(today_temp_mob); } //multi_weather(); } function convert(num) { return num+"°C"; } function fixcrousel(){ if($(window).width()<321) { $('.weather-slides').tinycarousel({pager:true,display:1}); } else if($(window).width()<474) { $('.weather-slides').tinycarousel({pager:true,display:2}); } else { $('.weather-slides').tinycarousel({pager:true,display:3}); } } function multi_weather() { fixcrousel(); } function f_weather_date(dte) { dte=dte.split("-"); day_s=dte[2] if(day_s.length==1) {day_s="0"+day_s;} month_s=dte[1]; if(month_s.length==1){month_s="0"+month_s;} year_s=dte[0]; dte=year_s+"-"+month_s+"-"+day_s; return dte; } multiforecastapi='https://api.skymet.net/api/d5e22624983e6e46fff6f76e86dae19b/1/web/multiforecast/ll/json/'+latitude+','+longitude+'/'; var singleforecastapi='https://api.skymet.net/api/d5e22624983e6e46fff6f76e86dae19b/1/web/forecast/ll/json/'+latitude+','+longitude+'/'; //multiforecastapi='http://api.skymet.net/api/d5e22624983e6e46fff6f76e86dae19b/1/web/multiforecast/id/json/'+skynet_id+'/'; // var singleforecastapi='http://api.skymet.net/api/d5e22624983e6e46fff6f76e86dae19b/1/web/forecast/id/json/'+skynet_id+'/'; //loadweatherapi(multiforecastapi,'multi'); //loadweatherapi(singleforecastapi,'single'); </script><script type="text/javascript"> google.load("visualization", "1", {packages:["corechart"]}); function drawChart() { var data = google.visualization.arrayToDataTable(eval(temp_data_cust)); var data_rain = google.visualization.arrayToDataTable(eval(rain_data_cust)); var options = { chartArea:{width:"90%"}, title: 'Average Monthly Temperature (掳C)', legend : {position: 'bottom'} , colors: ['#acdd2a', '#e03152'], hAxis: { showTextEvery:1, slantedText: false, slantedTextAngle: 0.1, // here you can even use 180 textPosition: 'out' }, titleTextStyle: { fontSize: 14, }, vAxis: { textPosition: 'out' }, }; var chart = new google.visualization.ColumnChart(document.getElementById('temp_div')); chart.draw(data, options); var options_rain = { chartArea:{width:"90%"}, title: 'Average Rainy Days', legend:'none', hAxis: { showTextEvery:1, slantedText: false, slantedTextAngle: 0.1, // here you can even use 180 textPosition: 'out' }, colors: ['#1fc1f0'], titleTextStyle: { fontSize: 14, }, // hAxis: {title: 'Year', titleTextStyle: {color: 'yellow'}} }; var chart_rain = new google.visualization.ColumnChart(document.getElementById('rain_div')); $("#rainy_days").html("NO OF RAINY DAYS:"+Math.round(rainy_days)); chart_rain.draw(data_rain, options_rain); } //alert('0'); </script><script>ajaxslide(); function drawchartcustom(){ try{drawChart();}catch(e){}; if($("#temp_div").text().indexOf("Average")==-1) { setTimeout('drawchartcustom()', 700); } } $(document).ready(function() { drawchartcustom(); }); $(window).resize(function(){ try{drawChart();}catch(e){} try{fixcrousel();}catch(e){} if($(".main-content").width()<649){ if(charttype=="desktop"){ charttype="mobile"; //loadweatherapi(multiforecastapi,'multi'); } } else{ if(charttype=="mobile"){ charttype="desktop"; //loadweatherapi(multiforecastapi,'multi'); } } }); </script><script> var getCityJSON = {"Berlin":{ "country": "Germany", "sid": 121953, "country_code": "DE", "lat": "52.504", "long": "13.393" }, "Bremen":{ "country": "Germany", "sid": 120666, "country_code": "DE", "lat": "53.077", "long": "8.809" }, "Cologne":{ "country": "Germany", "sid": 122473, "country_code": "DE", "lat": "50.942", "long": "6.958" }, "Dresden":{ "country": "Germany", "sid": 121810, "country_code": "DE", "lat": "51.033", "long": "13.733" }, "Dusseldorf":{ "country": "Germany", "sid": 121849, "country_code": "DE", "lat": "51.217", "long": "6.817" }, "Frankfurt":{ "country": "Germany", "sid": 122850, "country_code": "DE", "lat": "50.114", "long": "8.68" }, "Hanover":{ "country": "Germany", "sid": 120744, "country_code": "DE", "lat": "52.374", "long": "9.739" }, "Hamburg":{ "country": "Germany", "sid": 121914, "country_code": "DE", "lat": "53.569", "long": "9.942" }, "Leipzig":{ "country": "Germany", "sid": 121407, "country_code": "DE", "lat": "51.333", "long": "12.383" }, "Munich":{ "country": "Germany", "sid": 123032, "country_code": "DE", "lat": "48.133", "long": "11.567" }, "Nuremberg":{ "country": "Germany", "sid": 121589, "country_code": "DE", "lat": "49.453", "long": "11.078" }, "Rostock":{ "country": "Germany", "sid": 142740, "country_code": "DE", "lat": "54.083", "long": "12.133" }, "Stuttgart":{ "country": "Germany", "sid": 122447, "country_code": "DE", "lat": "48.776", "long": "9.177" }, "Sylt":{ "country": "Germany", "sid": 142753, "country_code": "DE", "lat": "54.893", "long": "8.324" }, "Amsterdam":{ "country": "Europe", "sid": 122876, "country_code": "NL", "lat": "52.383", "long": "4.9" }, "Athens":{ "country": "Europe", "sid": 121966, "country_code": "GR", "lat": "38", "long": "23.717" }, "Barcelona":{ "country": "Europe", "sid": 123123, "country_code": "ES", "lat": "41.382", "long": "2.177" }, "Bilbao":{ "country": "Europe", "sid": 121524, "country_code": "ES", "lat": "43.262", "long": "-2.953" }, "Bucharest":{ "country": "Europe", "sid": 122174, "country_code": "RO", "lat": "44.439", "long": "26.087" }, "Budapest":{ "country": "Europe", "sid": 122044, "country_code": "HU", "lat": "47.481", "long": "19.146" }, "Brussels":{ "country": "Europe", "sid": 122928, "country_code": "BE", "lat": "50.847", "long": "4.355" }, "Copenhagen":{ "country": "Europe", "sid": 121992, "country_code": "DK", "lat": "55.676", "long": "12.569" }, "Dublin":{ "country": "Europe", "sid": 122993, "country_code": "IE", "lat": "53.349", "long": "-6.26" }, "Florence":{ "country": "Europe", "sid": 120328, "country_code": "IT", "lat": "43.771", "long": "11.254" }, "Geneva":{ "country": "Europe", "sid": 122343, "country_code": "CH", "lat": "46.222", "long": "6.147" }, "Graz":{ "country": "Europe", "sid": 142766, "country_code": "AT", "lat": "47.067", "long": "15.433" }, "Innsbruck":{ "country": "Europe", "sid": 142779, "country_code": "AT", "lat": "47.267", "long": "11.383" }, "Istanbul":{ "country": "Europe", "sid": 123045, "country_code": "TR", "lat": "41.01", "long": "28.96" }, "Helsinki":{ "country": "Europe", "sid": 122499, "country_code": "FI", "lat": "60.173", "long": "24.949" }, "Kiev":{ "country": "Europe", "sid": 122161, "country_code": "UA", "lat": "50.45", "long": "30.524" }, "Lisbon":{ "country": "Europe", "sid": 123175, "country_code": "PT", "lat": "38.717", "long": "-9.167" }, "London":{ "country": "Europe", "sid": 141284, "country_code": "GB", "lat": "51.507", "long": "-0.128" }, "M谩laga":{ "country": "Europe", "sid": 142792, "country_code": "ES", "lat": "36.717", "long": "-4.417" }, "Milan":{ "country": "Europe", "sid": 122759, "country_code": "IT", "lat": "45.464", "long": "9.19" }, "Madrid":{ "country": "Europe", "sid": 122811, "country_code": "ES", "lat": "40.419", "long": "-3.692" }, "Majorca":{ "country": "Europe", "sid": 142805, "country_code": "ES", "lat": "39.463", "long": "3.278" }, "Manchester":{ "country": "Europe", "sid": 122187, "country_code": "GB", "lat": "53.479", "long": "-2.244" }, "Marseille":{ "country": "Europe", "sid": 123786, "country_code": "FR", "lat": "43.297", "long": "5.376" }, "Moscow":{ "country": "Europe", "sid": 122837, "country_code": "RU", "lat": "55.756", "long": "37.618" }, "Nice":{ "country": "Europe", "sid": 121381, "country_code": "FR", "lat": "43.702", "long": "7.268" }, "Oslo":{ "country": "Europe", "sid": 122148, "country_code": "NO", "lat": "59.972", "long": "10.776" }, "Paris":{ "country": "Europe", "sid": 122668, "country_code": "FR", "lat": "48.859", "long": "2.321" }, "Prague":{ "country": "Europe", "sid": 121875, "country_code": "CZ", "lat": "50.089", "long": "14.421" }, "Rome":{ "country": "Europe", "sid": 121901, "country_code": "IT", "lat": "41.893", "long": "12.483" }, "Sofia":{ "country": "Europe", "sid": 122460, "country_code": "BG", "lat": "42.7", "long": "23.333" }, "Stockholm":{ "country": "Europe", "sid": 121862, "country_code": "SE", "lat": "59.329", "long": "18.069" }, "St. Petersburg":{ "country": "Europe", "sid": 123578, "country_code": "RU", "lat": "59.95", "long": "30.317" }, "Turin":{ "country": "Europe", "sid": 123942, "country_code": "IT", "lat": "45.067", "long": "7.7" }, "Valencia":{ "country": "Europe", "sid": 121238, "country_code": "ES", "lat": "39.467", "long": "-0.375" }, "Venice":{ "country": "Europe", "sid": 142818, "country_code": "IT", "lat": "45.44", "long": "12.332" }, "Vienna":{ "country": "Europe", "sid": 123097, "country_code": "AT", "lat": "48.221", "long": "16.372" }, "Warsaw":{ "country": "Europe", "sid": 123071, "country_code": "PL", "lat": "52.217", "long": "21.033" }, "Zurich":{ "country": "Europe", "sid": 123019, "country_code": "CH", "lat": "47.379", "long": "8.54" }, "Atlanta":{ "country": "North America", "sid": 123110, "country_code": "US", "lat": "33.749", "long": "-84.39" }, "Boston":{ "country": "North America", "sid": 123058, "country_code": "US", "lat": "42.361", "long": "-71.06" }, "Chicago":{ "country": "North America", "sid": 122720, "country_code": "US", "lat": "41.876", "long": "-87.624" }, "Los Angeles":{ "country": "North America", "sid": 122824, "country_code": "US", "lat": "34.054", "long": "-118.244" }, "Miami":{ "country": "North America", "sid": 122980, "country_code": "US", "lat": "25.774", "long": "-80.194" }, "New York":{ "country": "North America", "sid": 122642, "country_code": "US", "lat": "40.765", "long": "-73.981" }, "Orlando":{ "country": "North America", "sid": 123760, "country_code": "US", "lat": "28.542", "long": "-81.379" }, "San Francisco":{ "country": "North America", "sid": 122954, "country_code": "US", "lat": "37.765", "long": "-122.463" }, "Seattle":{ "country": "North America", "sid": 122096, "country_code": "US", "lat": "47.604", "long": "-122.33" }, "Toronto":{ "country": "North America", "sid": 122785, "country_code": "CA", "lat": "43.653", "long": "-79.385" }, "Washington":{ "country": "North America", "sid": 122967, "country_code": "US", "lat": "38.895", "long": "-77.037" }, "Buenos Aires":{ "country": "South America", "sid": 122889, "country_code": "AR", "lat": "-34.618", "long": "-58.44" }, "Rio de Janeiro":{ "country": "South America", "sid": 122317, "country_code": "BR", "lat": "-22.908", "long": "-43.196" }, "S茫o Paulo":{ "country": "South America", "sid": 122798, "country_code": "BR", "lat": "-23.5", "long": "-46.617" }, "Abu Dhabi":{ "country": "Middle East", "sid": 122278, "country_code": "AE", "lat": "24.478", "long": "54.369" }, "Dubai":{ "country": "Middle East", "sid": 122733, "country_code": "AE", "lat": "25.27", "long": "55.309" }, "Bangkok":{ "country": "South-East Asia", "sid": 123136, "country_code": "TH", "lat": "13.75", "long": "100.517" }, "Delhi":{ "country": "India", "sid": 103610, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "-2128839596", "eventid": 2277589, "governance": 47082178, "state": "Delhi", "country_code": "IN", "lat": "28.667", "long": "77.217", "Code": "DL" }, "Agra":{ "country": "India", "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "-2128839596", "eventid": 2277589, "state": "Uttar Pradesh", "country_code": "IN", "lat": "27.176", "long": "78.008" }, "Agartala":{ "country": "India", "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "-2128839596", "eventid": 2277589, "state": "Tripura", "country_code": "IN", "lat": "23.831", "long": "91.286" }, "Hong Kong":{ "country": "South-East Asia", "sid": 122655, "country_code": "CN", "lat": "22.347", "long": "114.135" }, "Jakarta":{ "country": "South-East Asia", "sid": 122941, "country_code": "ID", "lat": "-6.173", "long": "106.841" }, "Kuala Lumpur":{ "country": "South-East Asia", "sid": 122902, "country_code": "MY", "lat": "3.13", "long": "101.688" }, "Shanghai":{ "country": "South-East Asia", "sid": 122707, "country_code": "CN", "lat": "31.167", "long": "121.467" }, "Singapore":{ "country": "South-East Asia", "sid": 122681, "country_code": "SG", "lat": "1.352", "long": "103.808" }, "Beijing":{ "country": "North Asia", "sid": 122772, "country_code": "CN", "lat": "39.905", "long": "116.391" }, "Tokyo":{ "country": "North Asia", "sid": 122694, "country_code": "JP", "lat": "35.68", "long": "139.77" }, "Johannesburg":{ "country": "Africa", "sid": 123201, "country_code": "ZA", "lat": "-26.163", "long": "28.033" }, "Cape Town":{ "country": "Africa", "sid": 122226, "country_code": "ZA", "lat": "-33.935", "long": "18.429" }, "Ajmer":{ "country": "India", "country_code": "IN", "lat": "26.27", "long": "74.42" }, "Amaravati":{ "country": "India", "country_code": "IN", "lat": "16.528", "long": "80.468" }, "Amritsar":{ "country": "India", "country_code": "IN", "lat": "31.617", "long": "74.85" }, "Bareilly":{ "country": "India", "country_code": "IN", "lat": "28.364", "long": "79.415" }, "Cuttack":{ "country": "India", "country_code": "IN", "lat": "20.45", "long": "85.867" }, "Dehradun":{ "country": "India", "country_code": "IN", "lat": "30.251", "long": "78.209" }, "Erode":{ "country": "India", "country_code": "IN", "lat": "11.35", "long": "77.733" }, "Faridabad":{ "country": "India", "country_code": "IN", "lat": "28.417", "long": "77.3" }, "Ghaziabad":{ "country": "India", "country_code": "IN", "lat": "28.667", "long": "77.417" }, "Imphal":{ "country": "India", "country_code": "IN", "lat": "24.903", "long": "93.884" }, "Itanagar":{ "country": "India", "country_code": "IN", "lat": "27.681", "long": "93.847" }, "Jammu":{ "country": "India", "country_code": "IN", "lat": "32.733", "long": "74.85" }, "Jamshedpur":{ "country": "India", "country_code": "IN", "lat": "22.8", "long": "86.183" }, "Jodhpur":{ "country": "India", "country_code": "IN", "lat": "26.173", "long": "73.261" }, "Kohima":{ "country": "India", "country_code": "IN", "lat": "25.667", "long": "94.119" }, "Meerut":{ "country": "India", "country_code": "IN", "lat": "28.993", "long": "77.682" }, "Salem":{ "country": "India", "country_code": "IN", "lat": "11.65", "long": "78.167" }, "Shillong":{ "country": "India", "country_code": "IN", "lat": "25.574", "long": "91.879" }, "Shimla":{ "country": "India", "country_code": "IN", "lat": "31.103", "long": "77.172" }, "Srinagar":{ "country": "India", "country_code": "IN", "lat": "34.091", "long": "74.806" }, "Udaipur":{ "country": "India", "country_code": "IN", "lat": "24.583", "long": "73.683" }, "Vijayawada":{ "country": "India", "country_code": "IN", "lat": "16.517", "long": "80.617" }, "Mumbai":{ "country": "India", "sid": 12896, "lang": "Hindi", "langid": "27134572", "tvid": "17781976", "section": "-2128838597", "eventid": 2277583, "governance": 47093057, "state": "Maharashtra", "country_code": "IN", "lat": "18.967", "long": "72.833" }, "Bangalore":{ "country": "India", "sid": 28756, "lang": "Kannada", "langid": "27135414", "tvid": "45457295", "section": "-2128833038", "eventid": 2277590, "governance": 47093501, "state": "Karnataka", "country_code": "IN", "lat": "12.97", "long": "77.598" }, "Bengaluru":{ "country": "India", "sid": 28756, "lang": "Kannada", "langid": "27135414", "tvid": "45457295", "section": "-2128833038", "eventid": 2277590, "governance": 47093501, "state": "Karnataka", "country_code": "IN", "lat": "12.97", "long": "77.598" }, "Kolkata":{ "country": "India", "sid": 47541, "lang": "Bengali", "langid": "27135398", "tvid": "45457278", "section": "-2128830821", "eventid": 2277586, "governance": 47093424, "state": "West Bengal", "country_code": "IN", "lat": "22.541", "long": "88.338" }, "Chennai":{ "country": "India", "sid": 2730, "lang": "Tamil", "langid": "27135454", "tvid": "45457467", "section": "2950623", "eventid": 2965523, "governance": 47093514, "state": "Tamil Nadu", "country_code": "IN", "lat": "13.09", "long": "80.27" }, "Ahmedabad":{ "country": "India", "sid": 25844, "lang": "Gujarati", "langid": "29982848", "tvid": "29982848", "section": "-2128821153", "eventid": 23804293, "governance": 47082164, "state": "Gujarat", "country_code": "IN", "lat": "23.03", "long": "72.58" }, "Allahabad":{ "country": "India", "sid": 4914, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "3947060", "governance": 47082156, "state": "Uttar Pradesh", "country_code": "IN", "lat": "25.45", "long": "81.85" }, "Aurangabad":{ "country": "India", "sid": 11544, "lang": "Marathi", "langid": "27134572", "tvid": "27134572", "section": "17388722", "governance": 47093057, "state": "Maharashtra", "country_code": "IN", "lat": "24.75", "long": "84.37" }, "Bhopal":{ "country": "India", "sid": 31135, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "10744190", "eventid": 23805370, "governance": 47093320, "state": "Madhya Pradesh", "country_code": "IN", "lat": "23.25", "long": "77.417" }, "Bhubaneswar":{ "country": "India", "sid": 77831, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "4118235", "governance": 47091662, "state": "Odisha", "country_code": "IN", "lat": "20.264", "long": "85.828" }, "Chandigarh":{ "country": "India", "sid": 106054, "lang": "Punjabi", "langid": "27135289", "tvid": "27136962", "section": "-2128816762", "governance": 47093396, "state": "Punjab", "country_code": "IN", "lat": "30.739", "long": "76.768" }, "Coimbatore":{ "country": "India", "sid": 39208, "lang": "Tamil", "langid": "27135454", "tvid": "45457467", "section": "7503091", "governance": 47093514, "state": "Tamil Nadu", "country_code": "IN", "lat": "11", "long": "76.967" }, "Goa":{ "country": "India", "sid": 125411, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "3012535", "eventid": 3021482, "governance": 47093287, "state": "Goa", "country_code": "IN", "lat": "15.502", "long": "73.912" }, "Gurgaon":{ "country": "India", "sid": 128050, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "6547154", "eventid": 2277589, "governance": 47082185, "state": "Haryana", "country_code": "IN", "lat": "28.467", "long": "77.033" }, "Guwahati":{ "country": "India", "sid": 128570, "lang": "Hindi", "langid": "27135527", "tvid": "44810989", "section": "4118215", "governance": 47093262, "state": "Assam", "country_code": "IN", "lat": "26.167", "long": "91.767" }, "Hubli":{ "country": "India", "sid": 29549, "lang": "Kannada", "langid": "27135414", "tvid": "45457295", "section": "3942695", "governance": 47093501, "state": "Karnataka", "country_code": "IN", "lat": "15.35", "long": "75.167" }, "Hyderabad":{ "country": "India", "sid": 19279, "lang": "Telugu", "langid": "27135440", "tvid": "45457315", "section": "-2128816011", "governance": 47093246, "state": "Andhra Pradesh", "country_code": "IN", "lat": "17.367", "long": "78.467" }, "Indore":{ "country": "India", "sid": 31837, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "9644624", "eventid": 23806576, "governance": 47093320, "state": "Madhya Pradesh", "country_code": "IN", "lat": "22.721", "long": "75.847" }, "Jaipur":{ "country": "India", "sid": 37570, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "3012544", "eventid": 23806674, "country_code": "IN", "lat": "26.917", "long": "75.867" }, "Kanpur":{ "country": "India", "sid": 7553, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "3947067", "eventid": 23806746, "governance": 47082156, "state": "Uttar Pradesh", "country_code": "IN", "lat": "26.472", "long": "80.331" }, "Kochi":{ "country": "India", "sid": 73762, "lang": "Malayalam", "langid": "27135428", "tvid": "45457304", "section": "9710057", "eventid": 23885123, "governance": 47093312, "state": "Kerala", "country_code": "IN", "lat": "9.965", "long": "76.248" }, "Kolhapur":{ "country": "India", "sid": 101764, "lang": "Marathi", "langid": "27134572", "tvid": "27134572", "section": "22778873", "governance": 47093057, "state": "Maharashtra", "country_code": "IN", "lat": "16.7", "long": "74.233" }, "Kozhikode":{ "country": "India", "sid": 74139, "lang": "Malayalam", "langid": "27135428", "tvid": "45457304", "section": "9710567", "governance": 47093312, "state": "Kerala", "country_code": "IN", "lat": "11.25", "long": "75.767" }, "Lucknow":{ "country": "India", "sid": 3341, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "-2128819658", "eventid": 23807319, "governance": 47082156, "state": "Uttar Pradesh", "country_code": "IN", "lat": "26.861", "long": "80.916" }, "Ludhiana":{ "country": "India", "sid": 35256, "lang": "Punjabi", "langid": "27135289", "tvid": "27136962", "section": "3947051", "governance": 47093396, "state": "Punjab", "country_code": "IN", "lat": "30.908", "long": "75.849" }, "Madurai":{ "country": "India", "sid": 39962, "lang": "Tamil", "langid": "27135454", "tvid": "45457467", "section": "9632514", "governance": 47093514, "state": "Tamil Nadu", "country_code": "IN", "lat": "9.92", "long": "78.119" }, "Mangalore":{ "country": "India", "sid": 29445, "lang": "Kannada", "langid": "27135414", "tvid": "45457295", "section": "3942690", "governance": 47093501, "state": "Karnataka", "country_code": "IN", "lat": "12.87", "long": "74.881" }, "Mysore":{ "country": "India", "sid": 30186, "lang": "Kannada", "langid": "27135414", "tvid": "45457295", "section": "3942693", "governance": 47093501, "state": "Karnataka", "country_code": "IN", "lat": "12.303", "long": "76.643" }, "Nagpur":{ "country": "India", "sid": 12987, "lang": "Marathi", "langid": "27134572", "tvid": "27134572", "section": "442002", "eventid": 23808081, "governance": 47093057, "state": "Maharashtra", "country_code": "IN", "lat": "21.154", "long": "79.083" }, "Nashik":{ "country": "India", "sid": 13455, "lang": "Marathi", "langid": "27134572", "tvid": "27134572", "section": "11459502", "governance": 47093057, "state": "Maharashtra", "country_code": "IN", "lat": "20", "long": "73.783" }, "Navi Mumbai":{ "country": "India", "sid": 107237, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "22126655", "governance": 47093057, "state": "Maharashtra", "country_code": "IN", "lat": "19.014", "long": "73.022" }, "Noida":{ "country": "India", "sid": 6448, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "8021716", "eventid": 2277589, "governance": 47082156, "state": "Uttar Pradesh", "country_code": "IN", "lat": "28.57", "long": "77.32" }, "Patna":{ "country": "India", "sid": 63141, "lang": "Bhojpuri", "langid": "27134497", "tvid": "27137111", "section": "-2128817995", "eventid": 23808282, "governance": 47093272, "state": "Bihar", "country_code": "IN", "lat": "25.61", "long": "85.141" }, "Puducherry":{ "country": "India", "sid": 79066, "lang": "Tamil", "langid": "27135454", "tvid": "45457467", "section": "22777916", "governance": 47093514, "state": "Tamil Nadu", "country_code": "IN", "lat": "10.848", "long": "79.853" }, "Pune":{ "country": "India", "sid": 99099, "lang": "Marathi", "langid": "27134572", "tvid": "27134572", "section": "-2128821991", "eventid": 23808355, "governance": 47093057, "state": "Maharashtra", "country_code": "IN", "lat": "18.519", "long": "73.894" }, "Raipur":{ "country": "India", "sid": 69212, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "17388717", "eventid": 23808388, "governance": 47093283, "state": "Chattisgarh", "country_code": "IN", "lat": "21.238", "long": "81.634" }, "Rajkot":{ "country": "India", "sid": 27755, "lang": "Gujarati", "langid": "29982848", "tvid": "29982848", "section": "3942663", "governance": 47082164, "state": "Gujarat", "country_code": "IN", "lat": "22.297", "long": "70.798" }, "Ranchi":{ "country": "India", "sid": 73008, "lang": "Bhojpuri", "langid": "27134497", "tvid": "27137111", "section": "4118245", "country_code": "IN", "lat": "23.356", "long": "85.335" }, "Surat":{ "country": "India", "sid": 28145, "lang": "Gujarati", "langid": "29982848", "tvid": "29982848", "section": "3942660", "governance": 47082164, "state": "Gujarat", "country_code": "IN", "lat": "21.17", "long": "72.83" }, "Thane":{ "country": "India", "sid": 14729, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "3831863", "governance": 47093057, "state": "Maharashtra", "country_code": "IN", "lat": "19.18", "long": "72.963" }, "Thiruvananthapuram":{ "country": "India", "sid": 74503, "lang": "Malayalam", "langid": "27135428", "tvid": "45457304", "section": "878156304", "governance": 47093312, "state": "Kerala", "country_code": "IN", "lat": "8.5", "long": "76.9" }, "Trichy":{ "country": "India", "sid": 41210, "lang": "Tamil", "langid": "27135454", "tvid": "45457467", "section": "22778270", "governance": 47093514, "state": "Tamil Nadu", "country_code": "IN", "lat": "10.779", "long": "78.673" }, "Vadodara":{ "country": "India", "sid": 28522, "lang": "Gujarati", "langid": "29982848", "tvid": "29982848", "section": "3942666", "governance": 47082164, "state": "Gujarat", "country_code": "IN", "lat": "22.3", "long": "73.2" }, "Varanasi":{ "country": "India", "sid": 11310, "lang": "Hindi", "langid": "27135527", "tvid": "17781976", "section": "3947071", "governance": 47082156, "state": "Uttar Pradesh", "country_code": "IN", "lat": "25.307", "long": "83.006" }, "Visakhapatnam":{ "country": "India", "sid": 546, "lang": "Telugu", "langid": "27135440", "tvid": "45457315", "section": "17388704", "governance": 47093246, "state": "Andhra Pradesh", "lat": "17.7", "long": "83.25" }, "AN":{ "fullname" : "Andaman and Nicobar Islands", "lang": "Hindi","tvid":"17781976", "langid":"27135527", "videos": "Hindi", "city":"All Cities","section":"59192346","eventid":"23807319","governance":"47082156","tin":"35"}, "AP":{ "fullname" : "Andhra Pradesh", "lang": "Telugu","tvid":"45457315", "langid":"27135440", "videos": "Telugu", "city":"Hyderabad","section":"-2128816011","governance":"47093246","tin":"28"}, "AD":{ "fullname" : "Andhra Pradesh (New)", "lang": "Telugu","tvid":"45457315", "langid":"27135440", "videos": "Telugu", "city":"Hyderabad","section":"-2128816011","governance":"47093246","tin":"37"}, "AR":{ "fullname" : "Arunachal Pradesh", "lang": "Hindi","tvid":"17781976", "langid":"27135527", "videos": "Hindi", "city":"Itanagar","tin":"12"}, "AS":{ "fullname" : "Assam", "lang": "Bengali","tvid":"45457278","langid":"27135398", "videos": "Bangla", "city":"Guwahati","section":"4118215","governance":"47093262","tin":"18"}, "BH":{ "fullname" : "Bihar", "lang": "Bhojpuri","tvid":"27137111","langid":"27134497", "videos": "Hindi", "city":"Patna","section":"-2128817995","eventid":"23808282","governance":"47093272","tin":"10"}, "CH":{ "fullname" : "Chandigarh", "lang": "Punjabi", "langid":"27135289", "videos": "Hindi", "city":"Chandigarh","section":"-2128816762","governance":"47093396","tin":"04"}, "CT":{ "fullname" : "Chattisgarh", "lang": "Hindi","tvid":"17781976", "langid":"27135527", "videos": "Hindi", "city":"Raipur","section":"17388717","eventid":"23808388","governance":"47093283","tin":"22"}, "DN":{ "fullname" : "Dadra and Nagar Haveli", "lang": "Gujarati","tvid":"29982848", "langid":"29982848", "videos": "Hindi", "city":"All Cities","section":"59192346","eventid":"23807319","governance":"47082156","tin":"26"}, "DD":{ "fullname" : "Daman and Diu", "lang": "Gujarati","tvid":"29982848", "langid":"29982848", "videos": "Hindi", "city":"All Cities","section":"59192346","eventid":"23807319","governance":"47082156","tin":"25"}, "DL":{ "fullname" : "Delhi", "lang": "Hindi","tvid":"17781976", "langid":"27135527", "videos": "Hindi", "city":"Delhi","section":"-2128839596","eventid":"2277589","governance":"47082178","tin":"07"}, "GA":{ "fullname" : "Goa", "lang": "English","langid":"27135489", "videos": "Hindi", "city":"Goa","section":"3012535","eventid":"3021482","governance":"47093287","tin":"30"}, "GJ":{ "fullname" : "Gujarat", "lang": "Gujarati","tvid":"29982848", "langid":"29982848", "videos": "Hindi", "city":"Ahmedabad","section":"-2128821153","eventid":"23804293","governance":"47082164","tin":"24"}, "HR":{ "fullname" : "Haryana", "lang": "Hindi","tvid":"17781976", "langid":"27135527", "videos": "Hindi", "city":"Gurgaon","section":"6547154","eventid":"2277589","governance":"47082185","tin":"06"}, "HP":{ "fullname" : "Himachal Pradesh", "lang": "Hindi","tvid":"17781976", "langid":"27135527", "videos": "Hindi", "city":"Shimla","tin":"02"}, "JK":{ "fullname" : "Jammu and Kashmir", "lang": "Hindi","tvid":"17781976", "langid":"27135527", "videos": "Hindi", "city":"Srinagar","tin":"01"}, "JH":{ "fullname" : "Jharkhand", "lang": "Bhojpuri","tvid":"27137111","langid":"27134497", "videos": "Hindi", "city":" Ranchi","section":"4118245","tin":"20"}, "KA":{ "fullname" : "Karnataka", "lang": "Kannada","tvid":"45457295", "langid":"27135414", "videos": "Kannada", "city":"Bangalore","section":"-2128833038","eventid":"2277590","governance":"47093501","tin":"29"}, "KL":{ "fullname" : "Kerala", "lang": "Malayalam","tvid":"45457304", "langid":"27135428", "videos": "Malayalam", "city":"Kochi","section":"9710057","eventid":"23885123","governance":"47093312","tin":"32"}, "LD":{ "fullname" : "Lakshadweep Islands", "lang": "Malayalam","tvid":"45457304", "langid":"27135428", "videos": "Malayalam", "city":"All Cities","section":"59192346","eventid":"23807319","governance":"47082156","tin":"31"}, "MP":{ "fullname" : "Madhya Pradesh", "lang": "Hindi","tvid":"17781976", "langid":"27135527", "videos": "Hindi", "city":"Bhopal","section":"10744190","eventid":"23805370","governance":"47093320","tin":"23"}, "MH":{ "fullname" : "Maharashtra", "lang": "Marathi","tvid":"27134572", "langid":"27134572", "videos": "Marathi", "city":"Mumbai","section":"22126655","governance":"47093057","tin":"27"}, "MN":{ "fullname" : "Manipur", "lang": "English","langid":"27135489", "videos": "Hindi", "city":"Imphal","tin":"14"}, "ME":{ "fullname" : "Meghalaya", "lang": "English","langid":"27135489", "videos": "Hindi", "city":"Shillong","tin":"17"}, "MI":{ "fullname" : "Mizoram", "lang": "English","langid":"27135489", "videos": "Hindi", "city":"Guwahati","section":"4118215","governance":"47093262","tin":"15"}, "NL":{ "fullname" : "Nagaland", "lang": "English","langid":"27135489", "videos": "Hindi", "city":"Guwahati","section":"4118215","governance":"47093262","tin":"13"}, "OR":{ "fullname" : "Odisha", "lang": "Bengali","tvid":"45457278","langid":"27135398", "videos": "Bengali", "city":"Bhubaneshwar","tin":"21"}, "PY":{ "fullname" : "Pondicherry", "lang": "Tamil","tvid":"45457467", "videos": "Tamil", "city":"Puducherry","section":"22777916","governance":"47093514","tin":"34"}, "PB":{ "fullname" : "Punjab", "lang": "Punjabi", "langid":"27135289", "videos": "Hindi", "city":"Chandigarh","section":"-2128816762","governance":"47093396","tin":"03"}, "RJ":{ "fullname" : "Rajasthan", "lang": "Hindi","tvid":"17781976", "langid":"27135527", "videos": "Hindi", "city":"Jaipur","section":"3012544","eventid":"23806674","tin":"08"}, "SK":{ "fullname" : "Sikkim", "lang": "Bengali","tvid":"45457278","langid":"27135398", "videos": "Bengali", "city":"Kolkata","section":"-2128830821","eventid":"2277586","governance":"47093424","tin":"11"}, "TN":{ "fullname" : "Tamil Nadu", "lang": "Tamil","tvid":"45457467", "videos": "Tamil", "city":"Chennai","section":"2950623","eventid":"2965523","governance":"47093514","tin":"33"}, "TS":{ "fullname" : "Telangana", "lang": "Telugu","tvid":"45457315", "langid":"27135440", "videos": "Telugu", "city":"Hyderabad","section":"-2128816011","governance":"47093246","tin":"36"}, "TR":{ "fullname" : "Tripura", "lang": "Bengali","tvid":"45457278","langid":"27135398", "videos": "Bengali", "city":"Agartala","tin":"16"}, "UP":{ "fullname" : "Uttar Pradesh", "lang": "Hindi","tvid":"17781976", "langid":"27135527", "videos": "Hindi", "city":"Lucknow","section":"-2128819658","eventid":"23807319","governance":"47082156","tin":"09"}, "UT":{ "fullname" : "Uttarakhand", "lang": "Hindi","tvid":"17781976", "langid":"27135527", "videos": "Hindi", "city":"Dehradun","tin":"05"}, "WB":{ "fullname" : "West Bengal", "lang": "Bengali","tvid":"45457278","langid":"27135398", "videos": "Bengali", "city":"Kolkata","section":"-2128830821","eventid":"2277586","governance":"47093424","tin":"19"} } ; var citylat = 19.0822507 var citylon = 72.8812042 var weather_slideShow = (function() { function rightEndReached($slider, $outerWidthEl, totalInnerWidth) { if ((Math.abs(parseFloat($slider.css("margin-left"))) + $outerWidthEl.outerWidth()) < totalInnerWidth - 1) { return false; } return true; } function leftEndReached($slider) { if (Math.abs(parseInt($slider.css("margin-left"))) === 0) { return true; } return false; } function getPartialSlideWidth($slider, $outerWidthEl, totalInnerWidth, imageWidth){ var remainingSlidesWidth = totalInnerWidth - (Math.abs(parseFloat($slider.css("margin-left"))) + $outerWidthEl.outerWidth()); return remainingSlidesWidth < imageWidth ? remainingSlidesWidth : 0; } return { init: function($slideShowEl) { var _dynamicWidth = parseInt($slideShowEl.find('#weekhour-forecast').outerWidth(true)), _viewitem = 6; $slideShowEl.find('#weekhour-forecast').attr('data-outerwidth',_dynamicWidth); $slideShowEl.find("li").outerWidth(parseInt(_dynamicWidth/_viewitem)); $slideShowEl.find('ul.hoursul').attr('data-outerwidth',$slideShowEl.find('ul.hoursul').outerWidth(true)); var currentSlide = 0, sliding = false, $prevButton = $slideShowEl.parent().find('button.prev'), $nextButton = $slideShowEl.parent().find('button.next'), $slider = $slideShowEl.find('ul'), $slides = $slideShowEl.find("li"), $outerWidthEl = $slider.parent('div'), totalImages = $slides.length, imageWidth = $slides.eq(0).outerWidth(true) * Math.floor(($slideShowEl.outerWidth() / $slides.eq(0).outerWidth(true))), totalInnerWidth = $slideShowEl.data('totalInnerWidth') ? parseInt($slideShowEl.data('totalInnerWidth')) : 0, updatedTotalInnerWidth = 0, partialSlidedValue = 0, slideShowActive = $slideShowEl.attr('data-slideShowActive') ? true : false; function handleResize(e, source){ if(sliding){ return; } if(slideShowActive){ sliding = true; $prevButton.addClass("disabled"); $slider.animate({ "margin-left": "0px" }, 500, function() { sliding = false; currentSlide = 0; partialSlidedValue = 0; if ($slider.outerWidth(true) >= totalInnerWidth) { // console.log("resize :: after :: slideShowActive :: " + false); $nextButton.addClass('disabled'); slideShowActive = false; $slideShowEl.data('slideShowActive', ''); $nextButton.removeClass('disabled'); } else { slideShowActive = true; $slideShowEl.data('slideShowActive', true); //$slider.width(totalInnerWidth); $nextButton.removeClass('disabled'); } }); } else{ if ($slider.outerWidth(true) >= totalInnerWidth) { // console.log("resize :: else :: after :: slideShowActive :: " + false); $nextButton.addClass('disabled'); slideShowActive = false; $slideShowEl.data('slideShowActive', ''); $nextButton.removeClass('disabled'); } else { slideShowActive = true; $slideShowEl.data('slideShowActive', true); //$slider.width(totalInnerWidth); $nextButton.removeClass('disabled'); } } imageWidth = $slides.eq(0).outerWidth(true) * Math.floor(($outerWidthEl.outerWidth() / $slides.eq(0).outerWidth(true))); } //slideshow was initialized already , if totalinnnerwidth is changed, handle like resize, else do nothing if($slideShowEl.data('sliderinitialized')){ updatedTotalInnerWidth = 0; $slides.each(function() { updatedTotalInnerWidth += $(this).outerWidth(true); }); if(updatedTotalInnerWidth !== totalInnerWidth){ totalInnerWidth = updatedTotalInnerWidth; } handleResize(); } else{ //on load checks and settings $slides.each(function() { totalInnerWidth += $(this).outerWidth(true); }); $slideShowEl.attr('data-totalInnerWidth', totalInnerWidth); //console.log("slide width on load :: "+ $slider.outerWidth(true)); //console.log("totalInnerWidth on load :: "+ totalInnerWidth); if ($slider.outerWidth(true) >= totalInnerWidth) { } else { slideShowActive = true; $slideShowEl.data('slideShowActive', true); //$slider.width(totalInnerWidth); $nextButton.removeClass('disabled'); } $(window).on('resize', handleResize); $slideShowEl.data('sliderinitialized', true); } $nextButton.off('click').on('click', function(e, data) { var partialSlideWidth = getPartialSlideWidth($slider, $outerWidthEl, totalInnerWidth, imageWidth), slideWidth = imageWidth; // console.log("next :: sliding :: " + sliding + " :: rightEndReached :: " + rightEndReached($slider, $outerWidthEl, totalInnerWidth)); if (sliding || rightEndReached($slider, $outerWidthEl, totalInnerWidth)) { return; } //if index is available in data.. try to go to that slide based on 0 index start if(data && typeof data.index == 'number'){ slideWidth = $slides.eq(0).outerWidth(true) * data.index; partialSlideWidth = getPartialSlideWidth($slider, $outerWidthEl, totalInnerWidth, slideWidth); if(partialSlideWidth == 0){ partialSlideWidth = slideWidth; } } if ($prevButton.hasClass("disabled")) { $prevButton.removeClass("disabled"); } // console.log("next :: partialSlideWidth :: " + partialSlideWidth); if(partialSlideWidth > 0){ slideWidth = partialSlideWidth; partialSlidedValue = partialSlideWidth; $nextButton.addClass("disabled"); } // console.log("next :: slideWidth :: " + slideWidth); sliding = true; $slider.animate({ "margin-left": parseFloat($slider.css("margin-left")) - (slideWidth) + "px" }, 500, function() { sliding = false; currentSlide += 1; // console.log("next :: after :: rightEndReached :: " + rightEndReached($slider, $outerWidthEl, totalInnerWidth)); if (rightEndReached($slider, $outerWidthEl, totalInnerWidth)) { $nextButton.addClass("disabled"); } }); }); $prevButton.off('click').on('click', function() { var existingMargin = Math.abs(parseFloat($slider.css('margin-left'))), slideWidth = existingMargin > imageWidth ? imageWidth : existingMargin; // console.log("prev :: sliding :: " + sliding + " :: leftEndReached :: " + leftEndReached($slider)); if (sliding || leftEndReached($slider)) { return; } if ($nextButton.hasClass("disabled")) { $nextButton.removeClass("disabled"); } sliding = true; // console.log("prev :: partialSlidedValue :: " + partialSlidedValue); if(partialSlidedValue > 0){ slideWidth = partialSlidedValue; } // console.log("prev :: slideWidth :: " + slideWidth); $slider.animate({ "margin-left": parseFloat($slider.css("margin-left")) + (slideWidth) + "px" }, 500, function() { sliding = false; currentSlide -= 1; if(partialSlidedValue > 0){ partialSlidedValue = 0; } // console.log("prev :: after :: leftEndReached :: " + leftEndReached($slider)); setTimeout(function(){ // console.log("ssss",$slider.css("margin-left")); if (leftEndReached($slider) || (($slider.css("margin-left")).slice(0,-2)*-1) <= 0 ) { $prevButton.addClass("disabled"); } },500); }); }); } } })(); var WeatherWidgetNew = { currentCityDataModel : { currentUnit : 'C', currentSelectedTab : 'hourly', todayForecastData : null, hourlyForecastData: null, weeklyForecastData : null, lat : null, long : null }, init:function(){ $('.weather-content').addClass('loading'); $('.date-time').text(WeatherWidgetNew.utils.getWeatherDate(new Date())); this.bindUIActions(); <!--getting lat long based on city--> <!--WeatherWidgetNew.currentCityDataModel.lat=getCityJSON[city_searched]['lat'];--> <!--WeatherWidgetNew.currentCityDataModel.long=getCityJSON[city_searched]['long'];--> WeatherWidgetNew.currentCityDataModel.lat= citylat; WeatherWidgetNew.currentCityDataModel.long=citylon; var TodayDate=WeatherWidgetNew.utils.getWeatherDate(); WeatherWidgetNew.getCityTemp(); weather_slideShow.init($('#weekhour-forecast ul').closest('[data-plugin="weather_slideshow"]')); }, getCityTemp : function(){ //Today Data <!--WeatherWidgetNew.getCurrentCityData(WeatherWidgetNew.currentCityDataModel.lat,WeatherWidgetNew.currentCityDataModel.long, function(data){--> <!-- WeatherWidgetNew.currentCityDataModel.todayForecastData = data;--> <!-- WeatherWidgetNew.populateTodayData();--> <!-- });--> //Hourly Data <!--WeatherWidgetNew.getCityHourData(WeatherWidgetNew.currentCityDataModel.lat,WeatherWidgetNew.currentCityDataModel.long,function(dataHourly){--> <!-- if(dataHourly.forecasts){--> <!-- WeatherWidgetNew.currentCityDataModel.hourlyForecastData = dataHourly;--> <!-- $('.weather-content').removeClass('loading');--> <!-- WeatherWidgetNew.populateTabData();--> <!-- }else{--> <!-- $('.weather_details').hide();--> <!-- $('.weather-ajax-error').html('<p>Unable to fetch the weather details. Please try again.</p>').show();--> <!-- $('.weather-content').removeClass('loading');--> <!-- }--> <!--});--> //Weekly Data WeatherWidgetNew.getCityWeekData(WeatherWidgetNew.currentCityDataModel.lat,WeatherWidgetNew.currentCityDataModel.long,function(data){ WeatherWidgetNew.currentCityDataModel.weeklyForecastData = data; }); }, settings: { hourlyAjaxUrl : "/forecast_weatherhour_ext.cms", weeklyAjaxUrl : "/forecast_weatherweek_ext.cms", todayAjaxUrl : "/forecast_weathertoday_ext.cms", iconsMap : { "0" : "tornado", "1" : "tropicalstrom", "2" : "hurricane", "3" : "cloudyheavythundershower", "4" : "cloudyheavythundershower", "5" : "raintosnowshowers", "6" : "rainsleet", "7" : "wintrymixsnowsleet", "8" : "freezingdrizzle", "9" : "cloudylightrain", //for night: overcastlightrain "10" : "freezingrain", "11" : "cloudylightrain", // for night: overcastlightrain "12" : "cloudyrain", // for night: overcastrain "13" : "cloudysnow", // for night: overcastsnow "14" : "cloudysnow", // for night : overcastsnow "15" : "blowingdriftingsnow", "16" : "cloudysnow", // for night: overcastsnow "17" : "hail", "18" : "sleet", "19" : "partlycloudyduststorm", "20" : "foggy", "21" : "hazy", "22" : "hazy", "23" : "breezy", "24" : "blowingspraywindy", "25" : "frigidicecrystals", "26" : "cloudy", "27" : "overcast", // for night: overcast "28" : "cloudy", // for night: overcast "29" : "overcast", // night "30" : "partlycloudy", // day "31" : "clearsky", // night "32" : "sunny", // day "33" : "clearsky", "34" : "clearsky", "35" : "mixedrainhail", "36" : "sunny", "37" : "cloudymoderatethundershower", // day "38" : "partlycloudymoderatethundershower", "39" : "overcastrain", "40" : "overcastheavyrain", "41" : "partlycloudysnow", "42" : "overcastsnow", //night "43" : "overcastsnow", // night "44" : "NA", "45" : "overcastrain", "46" : "overcastsnow", "47" : "overcastmoderatethundershower" } }, populateTodayData : function(){ var tempObj = WeatherWidgetNew.currentCityDataModel.todayForecastData; if(tempObj.observation){ var tempData = tempObj.observation; var maxTemp = tempData.metric.temp_max_24hour, minTemp = tempData.metric.temp_min_24hour, sunrise = tempData.sunrise, sunset = tempData.sunset, humidity = tempData.metric.rh, pop = tempData.metric.precip_24hour, uvindex = tempData.uv_index, feelsLike = tempData.metric.feels_like, wspd = tempData.metric.wspd, curTemp = tempData.metric.temp, vis = tempData.metric.vis; if(sunrise[sunrise.length-3] != ':'){ sunrise = sunrise.slice(0, sunrise.length-2) + ':' + sunrise.slice(sunrise.length-2); sunset = sunset.slice(0, sunset.length-2) + ':' + sunset.slice(sunset.length-2); } sunrise = WeatherWidgetNew.utils.getTimeInLocalFormat(sunrise), sunset = WeatherWidgetNew.utils.getTimeInLocalFormat(sunset); if(WeatherWidgetNew.currentCityDataModel.currentUnit == 'F'){ maxTemp = WeatherWidgetNew.utils.convertToF(maxTemp); minTemp = WeatherWidgetNew.utils.convertToF(minTemp); curTemp = WeatherWidgetNew.utils.convertToF(curTemp); feelsLike = WeatherWidgetNew.utils.convertToF(feelsLike); <!--$('[data-weather="city-curtemp"] small').text('F');--> } $("[data-weather='max-humid']").text(humidity); $('[data-weather="city-maxtemp"]').html(maxTemp+'°'); $('[data-weather="city-mintemp"]').html(minTemp+'°'); $("[data-weather='wind-spd']").html(wspd); $("[data-weather='rain-prob']").html(pop); $('[data-weather="city-curtemp"]').html(curTemp+'<super>°'+WeatherWidgetNew.currentCityDataModel.currentUnit+'</super>'); $('[data-weather="city-description"]').text(tempData.phrase_32char); $('[data-weather="uv-index"]').html(uvindex); $('.date-time').text(WeatherWidgetNew.utils.getWeatherDate(new Date())); <!--$('[data-weather="visibility"]').html(vis);--> $('[data-weather="sunrise"]').html(sunrise.toLocaleString('en-US', { hour: 'numeric',minute:'numeric', hour12: true })); $('[data-weather="sunset"]').html(sunset.toLocaleString('en-US', { hour: 'numeric',minute:'numeric', hour12: true })); $('#weathericonmain').removeAttr('class').addClass('weathericonsl weathericon_sprite iconlarge '+WeatherWidgetNew.settings.iconsMap[tempData.icon_code]); <!--$('.weather_details').removeAttr('class').addClass('weather_details clearfix '+WeatherWidgetNew.settings.iconsMap[tempData.icon_code]);--> } }, populateHourlyData : function(){ var tempObj = WeatherWidgetNew.currentCityDataModel.hourlyForecastData; var $hourUL = $('#weekhour-forecast ul'); // $hourUL.empty(); if(tempObj.forecasts){ var tempArr = tempObj.forecasts; tempArr.forEach(function(item, index){ var localTime = item.fcst_valid_local if(localTime[localTime.length-3] != ':'){ localTime = localTime.slice(0, localTime.length-2) + ':' + localTime.slice(localTime.length-2); } var time = WeatherWidgetNew.utils.getTimeInLocalFormat(localTime), time = time.toLocaleString('en-US', { hour: 'numeric',minute:'numeric', hour12: false }), day = item.dow; $p1 = $('<p>'+time+'</p>'), $i = $('<i class="weathericon weathericon_sprite '+WeatherWidgetNew.settings.iconsMap[item.icon_code]+'" />'), $li = $('<li></li>'); var $span; if(WeatherWidgetNew.currentCityDataModel.currentUnit == 'F'){ var tempF = WeatherWidgetNew.utils.convertToF(item.temp); $span = $('<span>'+tempF+'<sup>°</sup></span>'); }else{ $span = $('<span>'+item.temp+'<sup>o</sup></span>'); } $li.append($p1); $li.append($i); $li.append($span); //$hourUL.append($li); }); //init slider weather_slideShow.init($hourUL.closest('[data-plugin="weather_slideshow"]')); } else{ $hourUL.append('<li>No data found</li>'); } }, populateWeekData : function(){ var tempObj = WeatherWidgetNew.currentCityDataModel.weeklyForecastData; var $weekUL = $('#week-forecast ul'); $weekUL.empty(); if(tempObj.forecasts){ var tempArr = tempObj.forecasts; for(var i=0; i< tempArr.length ;) { var $p1 = $('<p>'+tempArr[i].long_daypart_name.substring(0,3)+'</p>'), $i = $('<i class="weathericon weathericon_sprite '+WeatherWidgetNew.settings.iconsMap[tempArr[i].icon_code]+'" />'), $li = $('<li></li>'); var $span, tempDay = tempArr[i].temp, tempNight = tempArr[i+1].temp ; if(tempArr[i].long_daypart_name.substring(0,3).toLowerCase() == tempArr[i+1].long_daypart_name.substring(0,3).toLowerCase() ){ if(WeatherWidgetNew.currentCityDataModel.currentUnit == 'F'){ $span = $('<strong data-changetemp="true" data-wtemp="'+tempDay+'__'+tempNight+'" data-citycurtemp="'+tempDay+'__'+tempNight+'">'+WeatherWidgetNew.utils.convertToF(tempDay)+'<sup>°</sup>/'+ WeatherWidgetNew.utils.convertToF(tempNight) +'<sup>°</sup></strong>'); }else{ $span = $('<strong data-changetemp="true" data-wtemp="'+tempDay+'__'+tempNight+'" data-citycurtemp="'+tempDay+'__'+tempNight+'">'+tempDay+'<sup>°</sup>/'+ tempNight +'<sup>°</sup></strong>'); } i += 2; }else{ $span = $('<strong data-changetemp="true" data-wtemp="'+tempDay+'" data-citycurtemp="'+tempDay+'">'+tempDay+'<sup>°</sup></strong>'); i++; } $li.append($p1); $li.append($i); $li.append($span); $weekUL.append($li); } //weather_slideShow.init($weekUL.closest('[data-plugin="weather_slideshow"]')); WeatherWidgetNew.utils.setTempTo_CF(); }else{ $weekUL.append('<li>No data found</li>'); } }, populateTabData:function(){ if( WeatherWidgetNew.currentCityDataModel.currentSelectedTab == 'weekly'){ $('#weekhour-forecast').hide(); $('#week-forecast').show(); $('.dailytabarrow').hide(); WeatherWidgetNew.populateWeekData(); } else{ $('#weekhour-forecast').show(); $('#week-forecast').hide(); $('.dailytabarrow').show(); // WeatherWidgetNew.populateHourlyData(); weather_slideShow.init($('#weekhour-forecast ul').closest('[data-plugin="weather_slideshow"]')); } }, getCurrentCityData:function(lat,long,callback){ if(lat && long){ $.ajax({ url: WeatherWidgetNew.settings.todayAjaxUrl+'?lat='+lat+'&lng='+long+'&unit=m', type: 'GET', dataType: 'json' }).done(function (data) { callback(data); }).fail(function (data) { callback(data); console.error('error in calling weather forecast request'); }); }else{ console.warn('Invalid lat long cordinates'); } }, getCityHourData : function(lat,long, callback){ if(lat && long){ $.ajax({ url: WeatherWidgetNew.settings.hourlyAjaxUrl+'?lat='+lat+'&lng='+long+'&unit=m', type: 'GET', dataType: 'json' }).done(function(data) { callback(data); }).fail(function(data) { callback(data); console.error('error in calling weather forecast request'); }); }else{console.warn('Invalid lat long cordinates'); } }, getCityWeekData : function(lat,long,callback){ if(lat && long){ $.ajax({ url: WeatherWidgetNew.settings.weeklyAjaxUrl+'?lat='+lat+'&lng='+long+'&unit=m', type: 'GET', dataType: 'json' }).done(function(data) { callback(data); }).fail(function(data) { callback(data); console.error('error in calling weather forecast request'); }); }else{ console.warn('Invalid lat long cordinates'); } }, bindUIActions:function(){ $('.unit span').on('click',function(){ if($(this).hasClass('active')){ return; } $('.unit span').removeClass('active'); $(this).addClass('active'); if($(this).data('temp').toUpperCase() == 'F'){ WeatherWidgetNew.currentCityDataModel.currentUnit = 'F'; }else{ WeatherWidgetNew.currentCityDataModel.currentUnit = 'C'; } WeatherWidgetNew.utils.setTempTo_CF(); <!--WeatherWidgetNew.populateHourlyData();--> <!--WeatherWidgetNew.populateTodayData();--> <!--WeatherWidgetNew.populateTabData();--> <!--WeatherWidgetNew.populateWeekData();--> }); //binding click on week and hour tab $("#whTab .tabs").on('click',function(){ $("#whTab .tabs").removeClass('active'); $(this).addClass('active'); if($(this).text().toLowerCase() == 'weekly'){ WeatherWidgetNew.currentCityDataModel.currentSelectedTab = 'weekly'; }else{ WeatherWidgetNew.currentCityDataModel.currentSelectedTab = 'hourly'; } WeatherWidgetNew.populateTabData(); }); }, utils : { getWeatherDate : function (d) { var d1 = d ? new Date(d) : new Date(); var dayList = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; var day = dayList[d1.getDay()]; var monthList = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]; var month = monthList[d1.getMonth()]; var date = d1.getDate(); return day.substring(0,3) + ', ' + month + ' ' + date; }, getTimeInLocalFormat : function(time){ // time here assumed to be in 2018-06-18T18:00:00-04:00 format var userBrowserDate = new Date(time); var offset = userBrowserDate.getTimezoneOffset() * 60000; var utc = userBrowserDate.getTime() + offset var localOffset = time.substr(time.length - 6), localOffset = localOffset.split(':'), localOffsetHours = parseInt(String(localOffset[0]),10), localOffsetMins = parseInt(String(localOffset[1]),10)/60; var localOffsetFinal = localOffsetHours +localOffsetMins; var localDateTime = new Date( utc + (3600000 * localOffsetFinal)) return localDateTime; }, convertToC : function(value) { var fTempVal = parseFloat(value); var cTempVal = (fTempVal - 32) * (5 / 9); return Math.round(cTempVal); }, convertToF: function(value) { var cTempVal = parseFloat(value); var fTempVal = (cTempVal * (9 / 5)) + 32; return Math.round(fTempVal); }, setTempTo_CF : function(){ var changeTo = $('[data-changetemp="true"]'); if(changeTo.length>0){ $.each(changeTo, function(index, value) { var __temp = $(value).attr('data-citycurtemp'); var __updated = 0,$_temp; if(__temp.indexOf('__')>= 0){ var $_temp = __temp.split('__'); if(WeatherWidgetNew.currentCityDataModel.currentUnit == 'F'){ __updated = WeatherWidgetNew.utils.convertToF($_temp[0])+'<sup>°</sup>/'+WeatherWidgetNew.utils.convertToF($_temp[1])+'<sup>°</sup>'; }else{ __updated = $_temp[0]+'<sup>°</sup>/'+$_temp[1]+'<sup>°</sup>'; } }else{ if(WeatherWidgetNew.currentCityDataModel.currentUnit == 'F' ){ __updated = WeatherWidgetNew.utils.convertToF(__temp) }else{ __updated = __temp } if($(value).hasClass('tempdigitbox')){ __updated = __updated+"<super>°"+(WeatherWidgetNew.currentCityDataModel.currentUnit).toLowerCase()+"</super>"; }else if( $(value).attr('data-issuper') == "true"){ __updated = __updated+"<super>°</super>"; }else{ __updated = __updated+"<sup>°</sup>"; } } $(value).html(__updated); }); } //WeatherWidgetNew.utils.setTempTo_CF() //WeatherWidgetNew.utils.convertToF(); // WeatherWidgetNew.utils.convertToC(); } } } WeatherWidgetNew.init(); </script><div class="banner_local FBN"></div></body></html>