
യുഎഇയിൽ രണ്ട് മാസത്തേക്കുള്ള പൊതുമാപ്പ് പ്രഖ്യാപിച്ചിരിക്കുകയാണ്, ഒരുപാട് പ്രത്യേകതകളുമുണ്ട് First Published Sep 7, 2024, 2:52 PM IST | Last Updated Sep 7, 2024, 2:52 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 = "";
}
const loginPopup = document.querySelector('.loginpopup');
loginPopup.classList.add('open');
document.body.style.overflow = 'hidden';
newsHubContainer.style.zIndex = '999';
}
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) {
$('.btnlogin').find('img').attr('src', userData.profileImg);
$('.btnlogin').find('img').css({"border-radius": "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-gi./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';
gtag('event', 'login_click', {
page_title: "ഗൾഫ് നാടുകളിൽ പൊതുമാപ്പ് കാലം, കുടുംബങ്ങൾക്ക് ഇത് ആശ്വാസ കാലം | Gulf Round Up September 07",
page_location: window.location.href,
content_type: 'video',
content_category:'gulfroundup',
author: 'Jithin SR',
content_id:'sjfre1',
author_id: 'scheme',
published_date : '2024-09-07',
seo_name : ''
});
if(newsHubContainer){newsHubContainer.style.zIndex = '999';}
});
function closeLoginPopup() {
loginPopup.classList.remove('open');
document.body.style.overflow = '';
if(newsHubContainer){newsHubContainer.style.zIndex = '';}
}
const closeBtns = document.querySelectorAll('.closeloginpopup, .loginpopupoverlay');
closeBtns.forEach(function (btn) {
btn.addEventListener('click', closeLoginPopup);
});
});
!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', '289364661571997'); fbq('track', 'PageView')
…
ദിവസം ലക്ഷകണക്കിന് ആളുകൾ വിസിറ്റ് ചെയ്യുന്ന ഞങ്ങളുടെ സൈറ്റിൽ നിങ്ങളുടെ പരസ്യങ്ങൾ നൽകാൻ ബന്ധപ്പെടുക വാട്സാപ്പ് നമ്പർ 7012309231 Email ID [email protected]