( function( $ ) {
$(document).ready(function(){
$(window).scroll(function(){
var x = $(".lang-selector").offset();
console.log(x);
});
});
} )( jQuery );
var x = $(".lang-selector")[0].getBoundingClientRect();
console.log(x.top, x.bottom);