Your IP : 216.73.216.95


Current Path : /var/test/www/ya/wp-content/themes/youthy/framework/js/
Upload File :
Current File : /var/test/www/ya/wp-content/themes/youthy/framework/js/customizer.js

(function( $ ) {



  $(window).load(function() {

    "use strict";


    // Switch radios for images
    $('#customize-control-layout_columns input[name="_customize-radio-layout_columns"]').each(function () {
      if( $(this).is(':checked') ) {
         $(this).parent().addClass('active');
       }
    });

    $('#customize-control-layout_columns input:radio').change(function(){

      $('#customize-control-layout_columns input:radio').parent().removeClass('active');
      $(this).parent().addClass('active');

    });

    var newIn = function() {


        // New in...
        $('#customize-controls .preview-notice').append('<div class="mt-announce" style="opacity:0;" />');
        $('#customize-controls .mt-announce').append('<h3>New in 1.0.7</h3><p>You will find all the options below in a lovely orange color and any section headers that contain new options will be marked with a <span class="mt-new mt-inline">NEW!</span> Enjoy!</p>');


        var newSection = '#accordion-section-meanthemes_general_options .accordion-section-title';

        var newOption = '#customize-control-hide_comments_when_closed_per_post label';


        $(newSection).append(' <span class="mt-new" style="opacity:0">NEW!</span>');

        $('#customize-controls .mt-announce, #customize-controls .mt-new').delay(1500).animate( { 'opacity':'1' },500 );

        $(newOption).addClass('mt-new-label');


        // Turn off Notifications
        $('#customize-control-new_off input').change(function(){

            if ($(this).is(':checked')) {

                $('.mt-new, .mt-announce').fadeOut();
                $(newOption).removeClass('mt-new-label');

            }

            else {

              $('.mt-new, .mt-announce').fadeIn();
              $(newOption).addClass('mt-new-label');

            }

        });

    };
    //newIn();

}); // window.load

})( jQuery );