This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.').hover(function(){ | |
$(this).addClass('pulse animated'); | |
}, function(){ | |
$(this).removeClass('pulse animated'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ul> | |
<?php | |
$args = array( | |
'type' => 'post', | |
'child_of' => '', | |
'parent' => '2', | |
'orderby' => 'ID', | |
'order' => 'ASC', | |
'hide_empty' => 0, | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $related = new WP_Query(array()); | |
while ( $related->have_posts() ) : | |
$related->the_post(); ?> | |
<?php endwhile; | |
wp_reset_postdata();?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.open-block').hide(); | |
$('.open-btn').click(function() { | |
var findDiv = $(this).next('.open-block'); | |
var findLinia = $(this).closest('.sidebar'); | |
if (findDiv.is(':visible')) { | |
findDiv.slideUp(); |