import from la bonne adresse and first refactoring for ouidade.com

This commit is contained in:
Bachir Soussi Chiadmi
2017-06-19 11:25:19 +02:00
commit 344dae1543
2240 changed files with 288691 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
var isTouch = window.DocumentTouch && document instanceof DocumentTouch;
function scrollHeader() {
// Has scrolled class on header
var zvalue = $(document).scrollTop();
if ( zvalue > 75 )
$("#header").addClass("scrolled");
else
$("#header").removeClass("scrolled");
}
jQuery(document).ready(function($){
// ON SCROLL EVENTS
if (!isTouch){
$(document).scroll(function() {
scrollHeader();
});
};
// TOUCH SCROLL
$(document).on({
'touchmove': function(e) {
scrollHeader(); // Replace this with your code.
}
});
//Smooth scroll to top
$('#toTop').click(function(){
$("html, body").animate({ scrollTop: 0 }, 500);
return false;
});
// Responsive Menu
});