title: jQuery: Change position from fixed to relative if div is higher than 90vh
body: <p>I would like to have a fixed contact field (<code>#contact</code>) on the bottom of a website. But, if the text area (<code>#text</code>) is higher than <code>90vh</code>, the <code>position: fixed</code> should change to a <code>position: relative</code>.</p>
  <p>That's how I started:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function contactPosition() {
    $("#text").height(higherThan90vh);
    $("#contact").css("position", "relative");
  }
  
  $(window).on("load resize", contactPosition).resize();</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>* {
    margin: 0;
    font-size: 30px;
  }
  
  #contact {
    position: fixed;
    bottom: 0;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;div id="text"&gt;Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
    sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum.
    Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.&lt;/div&gt;
  
  &lt;div id="contact"&gt;mail@mail.com&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I have no idea how to continue, and would be very thankful for help! :)</p>