mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Bridges: Action Bar shadow on scroll.
This commit is contained in:
@@ -378,6 +378,15 @@ echo "<script language='JavaScript' type='text/javascript' src='<!--{project_pat
|
||||
}
|
||||
}
|
||||
|
||||
//handle action bar style on scroll
|
||||
window.addEventListener('scroll', action_bar_scroll , false);
|
||||
function action_bar_scroll() {
|
||||
if (document.getElementById('action_bar')) {
|
||||
if (this.scrollY > 20) { document.getElementById('action_bar').classList.add('scroll'); }
|
||||
if (this.scrollY < 20) { document.getElementById('action_bar').classList.remove('scroll'); }
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user