Loading js/scroll.top.button.js +10 −11 Original line number Diff line number Diff line Loading @@ -10,7 +10,6 @@ var scroll_distance = parseInt(drupalSettings.scroll_distance); var scroll_speed = parseInt(drupalSettings.scroll_speed); var element_name = 'scrollTopButton-' + button_style; if (button_style == 'image') { Loading @@ -28,7 +27,7 @@ var animationIn = 'show'; var animationOut = 'hide'; var animationSpeed = 0; var buttonVisible = false; var buttonVisible = FALSE; // set animation for the button if (button_animation == 'fade') { Loading @@ -47,12 +46,12 @@ if ($(window).scrollTop() > scroll_distance) { if (!buttonVisible) { $element[animationIn](animationSpeed); buttonVisible = true; buttonVisible = TRUE; } } else { if (buttonVisible) { $element[animationOut](animationSpeed); buttonVisible = false; buttonVisible = FALSE; } } }); Loading Loading
js/scroll.top.button.js +10 −11 Original line number Diff line number Diff line Loading @@ -10,7 +10,6 @@ var scroll_distance = parseInt(drupalSettings.scroll_distance); var scroll_speed = parseInt(drupalSettings.scroll_speed); var element_name = 'scrollTopButton-' + button_style; if (button_style == 'image') { Loading @@ -28,7 +27,7 @@ var animationIn = 'show'; var animationOut = 'hide'; var animationSpeed = 0; var buttonVisible = false; var buttonVisible = FALSE; // set animation for the button if (button_animation == 'fade') { Loading @@ -47,12 +46,12 @@ if ($(window).scrollTop() > scroll_distance) { if (!buttonVisible) { $element[animationIn](animationSpeed); buttonVisible = true; buttonVisible = TRUE; } } else { if (buttonVisible) { $element[animationOut](animationSpeed); buttonVisible = false; buttonVisible = FALSE; } } }); Loading