Вход Регистрация
Файл: concrete5.7.5.6/concrete/blocks/core_area_layout/templates/parallax/view.js
Строк: 22
<?php
$(function () {
    
// We move the background image and class from data-stripe-wrapper up to the closest
    // div containing the special custom template class. Because it's this DIV that should
    // have the parallax image close to it.

    
var $parallax = $('div[data-stripe-wrapper=parallax]');

    
$parallax.each(function () {
        var 
$self = $(this);
            
$wrapper $self.closest('div.ccm-block-custom-template-parallax'),
            
$children $wrapper.children(),
            
$inner $children.first();

        
$wrapper.attr('data-stripe''parallax').attr('data-background-image'$self.attr('data-background-image'));
        
$inner.addClass('parallax-stripe-inner');

        
$wrapper.parallaxize({
            
variation$wrapper.height()
        });

    });

});
?>
Онлайн: 1
Реклама