2020-02-21 11:44:13 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
(function () {
|
|
|
|
if (window && document) {
|
|
|
|
var sideTitles = document.querySelectorAll('.side-title');
|
|
|
|
|
2020-04-25 09:36:07 +00:00
|
|
|
// if(window.navigator && window.navigator.language === 'fr' && window.location) {
|
2020-02-21 11:44:13 +00:00
|
|
|
// window.location.replace('/fr')
|
2020-04-25 09:36:07 +00:00
|
|
|
// }
|
2020-02-21 11:44:13 +00:00
|
|
|
|
|
|
|
var handleScroll = function handleScroll() {
|
|
|
|
var logo = document.querySelector('#rf-logo');
|
|
|
|
|
|
|
|
if (window.scrollY > 100) {
|
|
|
|
// logo.classList.add('hidden');
|
|
|
|
sideTitles.forEach(title => title.classList.remove('hidden'));
|
|
|
|
} else {
|
|
|
|
// logo.classList.remove('hidden');
|
|
|
|
sideTitles.forEach(title => title.classList.add('hidden'));
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
handleScroll();
|
|
|
|
window.addEventListener('scroll', handleScroll);
|
|
|
|
}
|
|
|
|
})();
|