title: Decreasing Font Size If Text Is Too Long
body: <p>I want to change the font size to 36px if my h1 has more than two words and keep it as is if not.</p>
  <p>This is my code:</p>
  <pre><code>window.addEvent('domready',function() {
      
          var $quote = ('#header .col-sm-12 h1');
      
          var $numWords = $quote.get('text').split(' ').length; 
      
          if (2 &lt; $numWords) {
                  $quote.setStyle('font-size','36px'); }
  });
  </code></pre>
  <p>However, it doesn't work. What's wrong with it?</p>
  <p>The site in question is 6wo.de</p>
  <p>Please note: Changing the size via CSS by using the viewport unit is not an option in this case.</p>