Skip to content

Commit

Permalink
Whitespace OCD
Browse files Browse the repository at this point in the history
  • Loading branch information
davatron5000 committed Apr 11, 2013
1 parent 494c331 commit 896f7ac
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions jquery.fittext.js
Original file line number Diff line number Diff line change
@@ -1,30 1,30 @@
/*global jQuery */
/*!
/*!
* FitText.js 1.1
*
* Copyright 2011, Dave Rupert http://daverupert.com
* Released under the WTFPL license
* Released under the WTFPL license
* http://sam.zoy.org/wtfpl/
*
* Date: Thu May 05 14:23:00 2011 -0600
*/

(function( $ ){

$.fn.fitText = function( kompressor, options ) {

// Setup options
var compressor = kompressor || 1,
settings = $.extend({
'minFontSize' : Number.NEGATIVE_INFINITY,
'maxFontSize' : Number.POSITIVE_INFINITY
}, options);

return this.each(function(){

// Store the object
var $this = $(this);
var $this = $(this);

// Resizer() resizes items based on the object width divided by the compressor * 10
var resizer = function () {
$this.css('font-size', Math.max(Math.min($this.width() / (compressor*10), parseFloat(settings.maxFontSize)), parseFloat(settings.minFontSize)));
Expand Down

0 comments on commit 896f7ac

Please sign in to comment.