title: Remove or don't remove attribute based on window width
body: <p>I'm trying to remove clickability from all phone links for desktop, etc. Basically, when the window is larger than 640px. I came up with the code below, and it worked on a particular wordpress site I did before, but this time I'm doing it on joomla (I'm not even sure if that's relevant) and it just always removes the attribute, regardless of the window width. I can't figure out whether I'm missing an <code>else</code> clause, or what that clause should even be.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  (function(jQuery) {
      jQuery(window).ready(function() {
          if (jQuery(window).width() &gt; 640) {
          jQuery('a[href^=tel]').removeAttr("href");
          }
      });
  })(jQuery);
  &lt;/script&gt;
  </code></pre>