This web site makes use of cookies
We use cookies to personalize content material and adverts, to offer social media options and to research our site visitors. We additionally share details about your use of our web site with our social media, promoting and analytics companions who might mix it with different info that you just’ve offered to them or that they’ve collected out of your use of their companies. Learn More
shut
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
let next_url = window.location.href.split("next_url=")[1];
let createAppleButtons = document.querySelectorAll("#createApple"); let createGoogleButtons = document.querySelectorAll("#createGoogle"); let createFBButtons = document.querySelectorAll("#createFacebook");
for ( let button of createAppleButtons){ button.addEventListener("click", () => { redirect("/core/users/login/apple/", next_url) }); }
for (let button of createGoogleButtons){ button.addEventListener("click", () => { redirect("/core/users/login/googleplus/", next_url) }); }
for (let button of createFBButtons){ button.addEventListener("click", () => { redirect("/core/users/login/facebook/", next_url) }); }
function redirect (url, next){ window.location.href = `${url}?next_url=${next}` }
function frenchUrl(url){ if(url){ return url.includes("https://www.narcity.com/fr/"); } else return false; }
var monitorChekFrenchCheckbox = makeMonitor(function () { return document.querySelector("label.authentication--field-IsFrenchProfile"); },function (res) { let fr = frenchUrl(next_url); let input = res.querySelector("input"); if (fr && !input.checked){ input.checked = true; } });
monitorChekFrenchCheckbox.start();
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
var showCitiesSelector = document.querySelector('.select-city-wrp');
showCitiesSelector.addEventListener("click", function () { toggleShowCities(); })
function toggleShowCities() { showCitiesSelector.classList.toggle("open"); }
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
!function(p,r,e,s,b,d){p.pbq||(s=p.pbq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments);},s.version='1.0',s.queue=[],b=r.createElement(e),b.async=!0,b.src="https://sr.studiostack.com/v3/services",d=r.getElementsByTagName(e)[0],d.parentNode.insertBefore(b,d))}(window,document,'script'); pbq('init', '250789');
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
let editProfile = document.querySelector('.gdpr-cookie-content'); let wrapper = document.querySelector('.rm-gdpr');
editProfile.addEventListener("click", function () { wrapper.classList.add('hidden') });
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
const supportPageOffset = window.pageXOffset !== undefined;
let previousScrollPosition = 0;
const isScrollingDown = () => { let scrolledPosition = supportPageOffset ? window.pageYOffset : isCSS1Compat ? document.documentElement.scrollTop : document.body.scrollTop; let isScrollDown;
if (scrolledPosition > previousScrollPosition) { isScrollDown = true; } else { isScrollDown = false; } previousScrollPosition = scrolledPosition; return isScrollDown; };
const handleNavScroll = () => { if(document.querySelector(".rumble-sticky--show")){ if (isScrollingDown() ) { document.querySelector(".rumble-sticky--show").classList.add("active");
} else { document.querySelector(".rumble-sticky--show").classList.remove("active"); } } };
var throttleTimer;
const throttle = (callback, time) => { if (throttleTimer) return;
throttleTimer = true; setTimeout(() => { callback(); throttleTimer = false; }, time); };
const mediaQuery = window.matchMedia("(prefers-reduced-motion: reduce)");
window.addEventListener("scroll", () => {
throttle(handleNavScroll, 10);
});
});
window.REBELMOUSE_LOWEST_TASKS_QUEUE.push(function(){
function setCookie(cname, cvalue, exdays) { var d = new Date(); d.setTime(d.getTime() + (exdays*24*60*60*1000)); var expires = "expires="+ d.toUTCString(); document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; }
function getCookie(cname) {
var name = cname + "=";
var decodedCookie = decodeURIComponent(document.cookie);
var ca = decodedCookie.split(';');
for(var i = 0; i
Source link