var index = [1,2,3,4,5,6,7,8,9].indexOf(5);
var length = [1,2,3,4,5,6,7,8,9].length;
var obj = {3: true, 4: true, 5: true, 6: true, 7: true};
var keys = Object.keys(obj);
console.log(keys);
var obj = {3: true, 4: true, 5: true, 6: true, 7: true};
var keys = [];
for(var k in obj) {
keys.push(k);
}
console.log(keys);
myMap = new ymaps.Map("#map", {
center: $('.geoadress').text().split(","),
zoom: 7
});
function show_future_posts($posts) {
global $wp_query, $wpdb;
$future_posts = array();
if(is_single() && $wp_query->post_count == 0) {
$posts = $wpdb->get_results($wp_query->request);
foreach($posts as $post) {
if(get_post_status ( $post->ID ) == 'future') {
$future_posts[] = $post;
}
}
}
return $future_posts;
}
add_filter('the_posts', 'show_future_posts');
$(document).ready(function() {
$('.item').hover(function(){
// найдите Ваш .basket только у конкретного элемента, который получил hover
$(this).find('.basket')
.toggleClass('animated bounceInDown')
.css({'display': 'block'});
});
});