Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions jquery.fittext.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@

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

// Check for compressor, min, and max data attributes on current active element
compressor = $this.data('compression') !== undefined ? $this.data('compression') : compressor;
settings.minFontSize = $this.data('min') !== undefined ? $this.data('min') : settings.minFontSize;
settings.maxFontSize = $this.data('max') !== undefined ? $this.data('max') : settings.maxFontSize;

// Resizer() resizes items based on the object width divided by the compressor * 10
var resizer = function () {
Expand Down