.cont-title {
background-color: green;
}
.cont-title a {
background-color: white;
display: inline-block;
}
.cart {
background-color: white;
}
<div class="cont-title">
<a href="#" class="cell">
<h1>Заголовок</h1>
</a>
<div class="cell cell--mid"></div>
<div class="cart cell">Дата</div>
</div>
.cont-title {
display: table;
}
.cell {
display: table-cell;
}
.mid {
width: 100%;
background-color: green;
}
s.replace(/(https?:\/\/)([\w-]+(\.[\w-]+)+)/g, '<a href="$1$2">$2</a>');
s.replace(/(https?:\/\/([\w-]+(\.[\w-]+)+))/ig, function () {
return '<a href="' + arguments[1].toLowerCase() + '">' + arguments[2].toLowerCase() + '</a>';
});
Сокеты или что?
[ [ 'score' ], 'compare', 'compareValue' => 1, 'operator' => '>=' ],
[ [ 'score' ], 'compare', 'compareValue' => 100, 'operator' => '<=' ],
# или
[ [ 'score' ], 'in', 'range' => [ 1, ..., 100 ] ],
# или
[ [ 'score' ], function ( $attribute, $params ) {
if ( !( $this->$attribute >= 1 && $this->$attribute <= 100 ) ) {
# Ошибка!
}
} ],
<video data-type="video" type="video/mp4" src="/data/NFL.1.mp4" autoplay controls></video>
$(function (e) {
$('[data-type="video"]').on('play', function () {
var video = this;
setTimeout(function () {
video.pause();
}, 5000);
});
});
$('[data-type="video"]').on('timeupdate', function () {
if (this.currentTime > 5) {
this.pause();
}
});
// Set up the action bar.
ActionBar mActionBar = getSupportActionBar();
mActionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
mActionBar.setDisplayShowCustomEnabled(true);
mActionBar.setDisplayShowHomeEnabled(true);
mActionBar.setDisplayHomeAsUpEnabled(true);
$sql "SELECT id, name FROM ?n WHERE id in(?a)";
$categories = $db->getAll($sql, PREFIX."_category", $random['category']);