<video autoplay loop muted playsinline preload="yes" poster="poster/1.jpg">
<source src="video/1-test.m4v" type="video/mp4">
</video>
$('select').selectize({
allowEmptyOption: true,
create: true
});
var cloneID = 1;
$(document).on('click', '.btn-clone', function(e) {
e.preventDefault();
var lastRow = $(this).parents('.b-parent').find('.b-items').last();
cloneID = lastRow.find('select').size();
var newRow = lastRow.clone().insertAfter(lastRow);
newRow.find('select').each(function(e) {
cloneID++;
$(this).attr("id","select-"+cloneID);
});
});
.nav-menu {
display: flex;
justify-content: space-around;
align-items: center;
padding: 0;
margin-top: 2%;
border: 1px solid #e7e7e7;
background: #f3f3f3;
list-style: none;
height: 2.5rem;
}
.nav-menu li{
display: flex;
flex : 1 1 auto;
height: 2.5rem;
}
.nav-menu a {
margin: auto 0;
text-transform: uppercase;
color: #c8c8c8;
text-decoration: none;
font-size: .875rem;
text-align: center;
width: 100%;
}
.nav-menu li:hover,
.nav-menu li:hover a{
color: #fff;
background: #29c5e6;
}
.links {
width: 100%;
height: 50px;
background: #f3f3f3;
border-bottom: 1px solid #e7e7e7;
}
.links ul {
display: flex;
justify-content: space-around;
align-items: center;
padding-top: 15px;
List-style: none;
}
.links ul li a {
display: block;
text-decoration: none;
color: #8f8f8f;
text-transform: uppercase;
font-size: 1.125rem;
font-weight: 300;
}
.links span {
margin-right: 10px;
padding: 0 10px;
width: 24px;
height: 24px;
background: #8f8f8f;
color: #fff;
}
.links ul li:hover a {
color: #29c5e6;
}
.links ul li:hover span {
background: #29c5e6;
color: #fff;
}
<svg class="icn-arrow-l-light" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 24">
<path d="M12 0L0 12l12 12"></path>
</svg>
<svg class="icn-arrow-r-light" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 24">
<path d="M0,24l12-12L0,0"></path>
</svg>
<button id="minus"></button>
<input type="text" id="number" val="0">
<button id="plus"></button>
document.getElementById("minus").addEventListener("click", function( event ) {
var num_input = document.getElementById("number");
var num_input_val = document.getElementById("number").value;
num_input.value = num_input_val--;
}, false);
document.getElementById("plus").addEventListener("click", function( event ) {
var num_input = document.getElementById("number");
var num_input_val = document.getElementById("number").value;
num_input.value = num_input_val++;
}, false);
В современных проектах Front-end перестал быть статикой HTML+CSS+JS
if (hasDate()) { content.append($('<li>').addClass((options.collapse && hasTime() ? 'collapse in' :'')).append(dateView));}
if (hasDate()) { content.append($('<li>').addClass((options.collapse && hasTime() ? 'collapse show' : '')).append(dateView));}
expanded = $parent.find('.in'),
closed = $parent.find('.collapse:not(.in)'),
expanded = $parent.find('.show'),
closed = $parent.find('.collapse:not(.show)'),
} else { // otherwise just toggle in class on the two views
expanded.removeClass('in');
closed.addClass('in');
} else { // otherwise just toggle in class on the two views
expanded.removeClass('show');
closed.addClass('show');
$.getJSON('parser.php').done(function (damp) { console.log(damp); });
$url = 'https://toster.ru/questions';
$contents = file_get_contents($url);
/* Тут куча регулярок и удаление ненужного html */
$damp = $contents;
echo json_encode($damp,JSON_FORCE_OBJECT);