diff --git a/theme/static/src/js/creative/creative.js b/theme/static/src/js/creative/creative.js index 2484450..da1676c 100644 --- a/theme/static/src/js/creative/creative.js +++ b/theme/static/src/js/creative/creative.js @@ -28,13 +28,6 @@ $('.navbar-collapse ul li a').click(function() { $('.navbar-toggle:visible').click(); }); -// Fit Text Plugin for Main Header -$('h1').fitText( - 1.2, { - minFontSize: '35px', - maxFontSize: '65px' - } -); // Offset for Main Navigation $('#main-nav').affix({ diff --git a/theme/static/src/js/creative/index.js b/theme/static/src/js/creative/index.js index ae09490..43b0721 100644 --- a/theme/static/src/js/creative/index.js +++ b/theme/static/src/js/creative/index.js @@ -1,5 +1,4 @@ import 'jquery.easing'; -import './jquery.fittext'; import './creative'; import WOW from 'wow.js'; diff --git a/theme/static/src/js/creative/jquery.fittext.js b/theme/static/src/js/creative/jquery.fittext.js deleted file mode 100644 index dcb83f5..0000000 --- a/theme/static/src/js/creative/jquery.fittext.js +++ /dev/null @@ -1,44 +0,0 @@ -/*! -* FitText.js 1.2 -* -* Copyright 2011, Dave Rupert http://daverupert.com -* Released under the WTFPL license -* http://sam.zoy.org/wtfpl/ -* -* Date: Thu May 05 14:23:00 2011 -0600 -*/ - -$.fn.fitText = function( kompressor, options ) { - // Setup options - const compressor = kompressor || 1, - settings = $.extend({ - 'minFontSize' : Number.NEGATIVE_INFINITY, - 'maxFontSize' : Number.POSITIVE_INFINITY - }, options); - - return this.each(function() { - - // Store the object - 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)) - ); - }; - - // Call once to set. - resizer(); - - // Call on resize. Opera debounces their resize by default. - $(window).on('resize.fittext orientationchange.fittext', resizer); - - }); - -};