briankoser / koser.us-metalsmith

The Koser family site powered by Metalsmith
MIT License
1 stars 0 forks source link

abbr #18

Open briankoser opened 9 years ago

briankoser commented 9 years ago
$(document).ready(function() {
            var convertToSmallCaps = ['am', 'pm', 'ad', 'bc'];

            $('abbr').each(function() {
                var abbr = $(this);
                var text = abbr.text().toLowerCase();

                if(text.length >= 3 || $.inArray(text, convertToSmallCaps) > -1)
                {
                    abbr.addClass('small-caps');
                }
            });
briankoser commented 9 years ago

https://github.com/briankoser/kotangent-jekyll/issues/30