for(var i = 0; i < arr1.length; i++){
if(arr.indexOf(arr1[i]) === -1){
return false;
}
}
return true;
function mutation(arr) {
return Array.prototype.every.call(arr[1], (e) => ~arr[0].indexOf(e));
}
.month_block:hover + .main_calendar,
.main_calendar:hover {
display: block;
}
$('.main_calendar').hover(function() {
var idboard = $(this).data('idboard');
$('[data-idboard="' + idboard + '"]').slideToggle(200);
});
box-shadow
и outline
, добавьте outline:none;
<img id='img' src='http://site.com/galleries/179606_08.jpg'/>
var img = document.getElementById('img'),
url = img.getAttribute('src');
function getNum (url) {
var parts = url.split('/'),
len = parts.length,
name = parts[len - 1],
num = name.split('_')[1].split('.')[0];
return num;
}
var num = getNum(url);
console.log(num); // 08
<script id="vpage" type="application/data">
onDataLoad: function(n, o) {
n || (n = decodeURI(e.util.base64.from(t("#vpage")[0].text))),
this.setPage(t.parseJSON(n), o)
},
$passwordField = $('.your-selector');
attribites = {
id: $passwordField.attr('id'),
type: $passwordField.attr('type') === 'password' ? 'text' : 'password',
name: $passwordField.attr('name'),
value: $passwordField.attr('value'),
class: $passwordField.attr('class'),
};
$passwordField.replaceWith($('<input/>', attribites));