MCPcopy Index your code
hub / github.com/simplefocus/FlowType.JS / changes

Function changes

flowtype.js:28–35  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

26// Do the magic math
27// =================
28 changes = function(el) {
29 var $el = $(el),
30 elw = $el.width(),
31 width = elw > settings.maximum ? settings.maximum : elw < settings.minimum ? settings.minimum : elw,
32 fontBase = width / settings.fontRatio,
33 fontSize = fontBase > settings.maxFont ? settings.maxFont : fontBase < settings.minFont ? settings.minFont : fontBase;
34 $el.css('font-size', fontSize + 'px');
35 };
36
37// Make the magic visible
38// ======================

Callers 1

flowtype.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected