(function ($) { $(document).ready(function () { $('#searchsubmit, #commentform #submit').addClass('btn btn-default'); $('button, html input[type="button"], input[type="reset"], input[type="submit"]').addClass('btn btn-default'); $('input:not(button, html input[type="button"], input[type="reset"], input[type="submit"]), select, textarea').addClass('form-control'); if ($('label').parent().not('div')) { $('label:not(#searchform label,#commentform label)').wrap('
'); } $('table').addClass('table table-bordered'); $('.attachment-thumbnail').addClass('thumbnail'); $('embed-responsive-item,iframe,embed,object,video').parent().addClass('embed-responsive embed-responsive-16by9'); $('img').addClass('animated_hidden').viewportChecker({ classToAdd: 'animated_visible animated bounceIn', // Class to add to the elements when they are visible offset: 100, // The offset of the elements (let them appear earlier or later) repeat: false, // Add the possibility to remove the class if the elements are not visible callbackFunction: function (elem, action) { }, // Callback to do after a class was added to an element. Action will return "add" or "remove", depending if the class was added or removed scrollHorizontal: false // Set to true if your website scrolls horizontal instead of vertical. }); }); }) (jQuery);