x.addEventListener('input', function () {
if (this.value > 10) {
document.getElementById('example').style.display='none'
} else {
document.getElementById('example').style.display='block'
}
});
// чтобы получить дату в формате сайта (в битриксе)
$date = date('Y-m-d');
$timestamp = MakeTimeStamp($date, 'YYYY-MM-DD');
$convertDateTime = ConvertTimeStamp($timestamp);
$arrFilter = Array(">=PROPERTY_DATЕ" => $convertDateTime);
$limit = 10; // Amount of images to show
$i = 0;
$j = 0;
foreach ($my_slider as $row) {
$name = $row['NAME'];
$previewSrc = $row['PREVIEW_PICTURE'] ? CFile::getPath($row['PREVIEW_PICTURE']) : null;
$previewText = $row['PREVIEW_TEXT'];
$linPrValue = $row['PROPERTY_LIN_PR_VALUE'];
{
if ( $i < $limit ){
$i++;
if(($i == 1) || ($i == 4)){?>
<div class="col-xs-12 col-sm-3 default">
<div class="image-wrapper">
<a href="<?=$link->link?>" target="_blank" class="image" style="background: url(<?=$img?>) no-repeat;"></a>
</div>
</div>
<?}
if($i == 2) {?>
<div class="col-xs-12 col-sm-2 default">
<div class="row no-gutters h50">
<div class="col-xs-12 col-sm-12">
<div class="image-wrapper">
<a href="<?=$link?>" target="_blank" class="image" style="background: url(<?=$img?>) no-repeat;"></a>
</div>
</div>
</div>