Initial commit

This commit is contained in:
Almira Krdzic
2018-08-06 15:18:02 +02:00
commit d86f748bc6
363 changed files with 130876 additions and 0 deletions

18
js/floatmenu_init.js Normal file
View File

@@ -0,0 +1,18 @@
// change the menu position based on the scroll position
window.onscroll = function() {
var toolbar = jQuery( '#gf_form_toolbar' );
var floatMenu = jQuery( '#floatMenu' );
if( window.XMLHttpRequest && toolbar.length > 0 ) {
var basePosition = toolbar.offset().top;
if( document.documentElement.scrollTop > basePosition || self.pageYOffset > basePosition ) {
floatMenu.css( { position: 'fixed', top: '40px' } );
} else {
floatMenu.css( { position: 'static', top: '40px' } );
}
}
}