|
|
Line 27: |
Line 27: |
| color: #5ec3af; | | color: #5ec3af; |
| } | | } |
| + | |
| | | |
| #SocialMedia{ | | #SocialMedia{ |
Line 309: |
Line 310: |
| margin-top: -1rem; | | margin-top: -1rem; |
| } | | } |
− | $(document).ready(function(){
| |
− | if (window.pageYOffset < 200) {
| |
− | $('#TopBar').css('position', 'static');
| |
− | $('#TopBar').css('margin-top', '-1rem');
| |
− | }
| |
− | else {
| |
− | $('#TopBar').css('position', 'fixed');
| |
− | $('#TopBar').css('margin-top', '1.5rem');
| |
− | }
| |
| | | |
− | $(window).scroll(function() {
| + | div>p{ |
− | if(window.pageYOffset < 200) {
| + | text-indent: 2.6rem; |
− | $('#TopBar').css('position', 'static');
| + | |
− | $('#TopBar').css('margin-top', '-1rem');
| + | |
− | $('#MainContent').css('margin-top', '0');
| + | |
− | }
| + | |
− | else {
| + | |
− | $('#TopBar').css('position', 'fixed');
| + | |
− | $('#TopBar').css('margin-top', '1.5rem');
| + | |
− | $('#MainContent').css('margin-top', '12rem');
| + | |
| } | | } |
− | });
| |
− | })
| |
− |
| |
| | | |
| } | | } |