Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() { // This will fire when document is ready
- $(window).resize(function() { // This will fire each time the window is resized:
- if($(window).width() <= 1200) {
- $("footer").addClass("d-none"); //Fjerner footer og fyll ut hele siden
- $(".parent").css("margin-bottom", "0px");
- } else if ($(window).height() <= 500) {
- $("footer").addClass("d-none"); //Fjerner footer og fyll ut hele siden
- $(".parent").css("margin-bottom", "0px");
- } else {
- $("footer").removeClass("d-none"); //Legger til footer og forskyver siden
- $(".parent").css("margin-bottom", "110px");
- }
- })
- .resize(); // This will simulate a resize to trigger the initial run.
- }
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement