
ഈ അഞ്ച് ദിവസം കൊണ്ട് മൊത്തം ലഭിച്ചത് 162 മില്ലി മീറ്റർ മഴയാണെന്നാണ് കണക്കുകൾ പറയുന്നത്. സാധാരണ ഗതിയിൽ 44 മി മീ മഴ ലഭിക്കേണ്ടിടത്താണ് 162 മി മീ മഴ ലഭിച്ചത്
First Published Oct 2, 2023, 5:11 PM IST
var requestOptions = {
method: 'GET',
redirect: 'follow'
};
var locationObject = {};
fetch("https://www./geoinfo", requestOptions)
.then(response => response.text())
.then(result =>{
result = JSON.parse(result);
const countries = ['IN','AE', 'SA', 'QA', 'BH', 'KW','OM'];
if (!countries.includes(result.CountryCode)){
$('.btnlogin').hide();
}else{
window.onload = function () {
google.accounts.id.initialize({
client_id: '154180282365-0fnmmnnc5api7rmetko7v1ujd104m7n9.apps.googleusercontent.com',
callback: handleCredentialResponse
});
google.accounts.id.renderButton(
document.getElementById("buttonDiv"),
{ theme: "outline", size: "large" , width: "314px" } // customization attributes
);
let userData = JSON.parse(localStorage.getItem("asianetLogin"));
if(!userData){
google.accounts.id.prompt(); // also display the One Tap dialog
}
}
}
console.log(result)
})
.catch(error => console.log('error', error));
function handleOpenLogin(){
var loginData = JSON.parse(localStorage.getItem("asianetLogin"));
if(loginData){
let nameupdate = document.getElementById("loggedInName");
nameupdate.innerHTML = loginData.name;
let emailupdate = document.getElementById("loggedInEmail");
emailupdate.innerHTML = loginData.email;
let profilepicupdate = document.getElementById("loggedInImagesrc");
profilepicupdate.src = loginData.profileImg;
document.getElementById('loggedOutState').style.display = "none";
document.getElementById('loggedInState').style.display = "";
document.getElementById('loggedOutImageDiv').style.display = "none";
document.getElementById('loggedInImageDiv').style.display = "";
}else{
document.getElementById('loggedInState').style.display = "none";
document.getElementById('loggedOutState').style.display = "";
document.getElementById('loggedInImageDiv').style.display = "none";
document.getElementById('loggedOutImageDiv').style.display = "";
}
}
function getDetails(clientId, token, loginType){
const apiUrl = loginType == "google" ? 'https://5pusunhjjf.execute-api.ap-south-1.amazonaws.com/v1/frontendUser/googleLogin' : 'https://5pusunhjjf.execute-api.ap-south-1.amazonaws.com/v1/frontendUser/fbLogin';
fetch(apiUrl, {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({"clientId": clientId, "credential": token,"accessToken":token, "accountId": "site/50et4t1p5", loginType: loginType }),
})
.then((res) => {
if(res.status==200) {
return res.json();
}
}).then(resData => {
localStorage.setItem("asianetLogin", JSON.stringify({name: resData.fullName, email: resData.email, profileImg: resData.imageUrl}));
$('.loginpopup').removeClass('open');
console.log("response", resData);
$('.btnlogin').find('img').attr('src', resData.imageUrl);
$('.btnlogin').find('img').css({"border-radius": "50%"});
})
.catch((err) => {
console.error(err);
return {};
});
}
document.addEventListener('DOMContentLoaded', function () {
let userData = JSON.parse(localStorage.getItem("asianetLogin"));
if (userData) {
let btnLogin = document.querySelector('.btnlogin');
let imgElement = btnLogin.querySelector('img');
imgElement.src = userData.profileImg;
imgElement.style.borderRadius = '50%';
}
});
function handleCredentialResponse(response) {
let clientId = '154180282365-0fnmmnnc5api7rmetko7v1ujd104m7n9.apps.googleusercontent.com';
var res = getDetails(clientId,response.credential, "google");
console.log("google_response",response,res);
}
function handleLogout(){
if(typeof window != undefined){
let storageData = JSON.parse(localStorage.getItem("asinetLogin"));
localStorage.removeItem("asianetLogin");
$('.btnlogin').find('img').attr('src', 'https://static./v1/user-icon.svg');
$('.btnlogin').find('img').css({"border-radius": "50%"});
$('.loginpopup').removeClass('open');
$('body,html').css('overflow','');
}
}
function handleFbLogin(){
FB.login(function(response){
if (response.authResponse) {
getDetails('962655038083531', response.authResponse.accessToken, "fb");
}
}, {scope: 'public_profile,email'});
}
window.fbAsyncInit = function() {
// FB JavaScript SDK configuration and setup
FB.init({
appId : '962655038083531', // FB App ID
cookie : true, // enable cookies to allow the server to access the session
xfbml : true, // parse social plugins on this page
version : 'v3.2' // use graph api version 2.8
});
};
// Load the JavaScript SDK asynchronously
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
document.addEventListener('DOMContentLoaded', function () {
const btnLogin = document.querySelector('.btnlogin');
const loginPopup = document.querySelector('.loginpopup');
const loginPopupOverlay = document.querySelector('.loginpopupoverlay');
const newsHubContainer = document.getElementById('iz-news-hub-main-container');
btnLogin.addEventListener('click', function () {
loginPopup.classList.add('open');
document.body.style.overflow = 'hidden';
newsHubContainer.style.zIndex = '999';
});
function closeLoginPopup() {
loginPopup.classList.remove('open');
document.body.style.overflow = '';
newsHubContainer.style.zIndex = '';
}
const closeBtns = document.querySelectorAll('.closeloginpopup, .loginpopupoverlay');
closeBtns.forEach(function (btn) {
btn.addEventListener('click', closeLoginPopup);
});
});
window._jsCode.push(function(){!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','https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '2020032604764478'); fbq('track', 'PageView');})
…
ദിവസം ലക്ഷകണക്കിന് ആളുകൾ വിസിറ്റ് ചെയ്യുന്ന ഞങ്ങളുടെ സൈറ്റിൽ നിങ്ങളുടെ പരസ്യങ്ങൾ നൽകാൻ ബന്ധപ്പെടുക വാട്സാപ്പ് നമ്പർ 7012309231 Email ID [email protected]