</head>
:.twentytwenty-before-label::before {
content: "До";
}
.twentytwenty-after-label::before {
content: "После";
}
$(".hide-box-title").click(function(){
if ($(this).parent().find('.hide-box-content').is(":hidden")) {
$(this).parent().find(".hide-box-content").slideDown(1000);
$(this).addClass('act');
$(".boxscroll-c").getNiceScroll().remove();
$(".boxscroll-c").niceScroll({cursorcolor:"#fff",autohidemode:false, zindex: 999});
setTimeout(function(){
$(".boxscroll-c").getNiceScroll().resize();
}, 1000)
} else {
$(this).parent().find(".hide-box-content").slideUp(1000);
$(this).removeClass('act');
setTimeout(function(){
$(".boxscroll-c").getNiceScroll().resize();
}, 1000)
}
});
/**
* @inheritdoc
*/
public function rules()
{
return [
[['title_ru', 'title_en'], 'required'],
[['media_photo', 'media_video', 'files'], 'safe'],
[['media_photo', 'media_video', 'files'], 'each', 'rule' => ['string']],
[['logo', 'brand', 'caption_ru', 'caption_en', 'content_ru', 'content_en', 'contacts'], 'string'],
[['country_id'], 'integer'],
[['start_date', 'end_date'], 'safe'],
[['coord', 'emails'], 'string'],
[['title_ru', 'title_en'], 'string', 'max' => 1024]
];
}