Skip to content

Instantly share code, notes, and snippets.

View zavod008's full-sized avatar
🎯
Focusing

zavod008

🎯
Focusing
View GitHub Profile
@zavod008
zavod008 / add
Created November 26, 2018 19:39
if (room.book.length > 0) {
let book = room.book.reduce((result, item) => {
return result + item.count;
}, 0);
console.log(book);
if (item.count + 1 > room.free || book === room.free) {
return false;
}
<template>
<div id="app">
<div class="container">
<div class="row">
<div class="col-lg-3">
<form action="" >
<div class="form-group">
<label for="exampleInputEmail1">Email address</label>
<input type="email" @input="setFilter" name="category" class="form-control">
$('.').hover(function(){
$(this).addClass('pulse animated');
}, function(){
$(this).removeClass('pulse animated');
});
<ul>
<?php
$args = array(
'type' => 'post',
'child_of' => '',
'parent' => '2',
'orderby' => 'ID',
'order' => 'ASC',
'hide_empty' => 0,
);
<?php $related = new WP_Query(array());
while ( $related->have_posts() ) :
$related->the_post(); ?>
<?php endwhile;
wp_reset_postdata();?>
$('.open-block').hide();
$('.open-btn').click(function() {
var findDiv = $(this).next('.open-block');
var findLinia = $(this).closest('.sidebar');
if (findDiv.is(':visible')) {
findDiv.slideUp();