JavaScript
- 8 ответов
- 0 вопросов
3
Вклад в тег
$(document).on('click', '.clear-input', function() {
$(this).closest('.search').find('.input-class').val('');
});
for (let i in users) {
for (let j in views) {
if (users[i].id === views[j].user_id) {
if (users[i].hasOwnProperty('page_views')) {
users[i].page_views += views[j].page_views;
users[i].clicks += views[j].clicks;
}
else {
users[i].page_views = views[j].page_views;
users[i].clicks = views[j].clicks;
}
}
}
}
DATEDIFF(DAY, '2020-03-11T15:12:13', GETDATE()) / 7 = 1
public function getTreeHtml(Node $node, $level = 1)
.......
if ($node->hasChildren()) {
........
foreach () {
...............
$html .= '</li>';
$counter++;
}
if ($this->escapeUrl($node->getUrl())) {
$html .= sprintf(
'<li class="ammenu-wrapper" %s><a href="%s" title="Show all: %s" class="ammenu-link -level%s">
<span class="ammenu-wrapper">Show all: %s</span>
</a></li>',
$parentDataAttr,
$this->escapeUrl($node->getUrl()),
$this->escapeHtml($node->getName()),
$level,
$this->escapeHtml($node->getName())
);
}
}
}