Javscript: Image height based on window height : In the code below I would like to only include "`height="246" width="188`" of the image if the `var h` in the javascript is < 600.

    <script>
      var h = window.innerHeight
      || document.documentElement.clientHeight
      || document.body.clientHeight;
    </script>

    <div class="row">
      <div class="col-md-8 col-md-offset-2">
        <div class="panel panel-default">
          <div class="panel-body">
            <center><img class="visible-xs hidden-sm hidden-md hidden-lg" src="{% static 'intro_small.png' %}" alt="str8RED" height="246" width="188"/></center>
            <a href="" class="btn btn-info btn-block .btn-lg" style="font-size: 20px">WHAT IS str8RED?</a><a href="https://str8red.com/selectteams/0/0/" style="font-size: 20px" class="btn btn-success btn-block .btn-lg">PLAY str8RED <span style="font-size: 20px" class="glyphicon glyphicon-play-circle" aria-hidden="true"></a>
          </div>
        </div>
      </div>
    </div>