Skip to content

Instantly share code, notes, and snippets.

@nmrhard
Last active September 9, 2015 14:17
Show Gist options
  • Select an option

  • Save nmrhard/a9d5082d2918d77b8c32 to your computer and use it in GitHub Desktop.

Select an option

Save nmrhard/a9d5082d2918d77b8c32 to your computer and use it in GitHub Desktop.

Revisions

  1. nmrhard revised this gist Sep 9, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions jQuery resize height
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    function heightDetect() {
    $(".main_head").css("height",$(window).height());
    };
    function heightDetect() {
    $(".main_head").css("height",$(window).height());
    };

    heightDetect();

  2. nmrhard created this gist Sep 9, 2015.
    9 changes: 9 additions & 0 deletions jQuery resize height
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    function heightDetect() {
    $(".main_head").css("height",$(window).height());
    };

    heightDetect();

    $(window).resize(function() {
    heightDetect();
    });