(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"]), input[type="file"], 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'); $('.navbar-nav').addClass('blog-nav'); $('.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus').closest('.navbar-nav').removeClass('blog-nav'); $('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);