%PDF- %PDF-
Direktori : /home/dopla/www/wp-content/plugins/ml-slider/themes/precognition/v1.0.0/ |
Current File : /home/dopla/www/wp-content/plugins/ml-slider/themes/precognition/v1.0.0/script.js |
(function($) { // metaslider has been initilalised $(document).on('metaslider/initialized', function (e, identifier) { // if .ms-theme-precognition if ($(identifier).closest('.metaslider.ms-theme-precognition').length) { var $slider = $(identifier); var $container = $(identifier).closest('.metaslider.ms-theme-precognition'); var captions = $slider.find('.caption'); if (captions.length) { $container.addClass('ms-has-caption'); } $container.addClass('ms-loaded'); } $(window).trigger('resize'); }); $(window).on('load resize', function(e) { // go through the sliders with this theme $('.metaslider').each(function(index) { var width = $(this).outerWidth(); if (width < 800) { $(this).addClass('ms-is-small'); } else { $(this).removeClass('ms-is-small'); } }); }); $(window).on('load', function() { $(".nivo-control, .cs-buttons a").wrap("<li></li>"); }); })(jQuery)