Mercurial > hg > rr-repo
view sites/all/themes/omega/js/omega.indicator.min.js @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
line wrap: on
line source
!function($){"use strict";Drupal.behaviors.omegaBrowserWidth={attach:function(context){$("body",context).once("omega-browser-width",function(){var $indicator=$('<div class="omega-browser-width" />').appendTo(this);$(window).bind("resize.omega-browser-width",function(){$indicator.text($(this).width()+"px")}).trigger("resize.omega-browser-width")})}}}(jQuery);