Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

zavod008

🎯
Focusing
Block or report user

Report or block zavod008

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View add
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;
}
View begin vue filter
<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">
View pulse
$('.').hover(function(){
$(this).addClass('pulse animated');
}, function(){
$(this).removeClass('pulse animated');
});
View Category
<ul>
<?php
$args = array(
'type' => 'post',
'child_of' => '',
'parent' => '2',
'orderby' => 'ID',
'order' => 'ASC',
'hide_empty' => 0,
);
View WP Query
<?php $related = new WP_Query(array());
while ( $related->have_posts() ) :
$related->the_post(); ?>
<?php endwhile;
wp_reset_postdata();?>
View akkordeon
$('.open-block').hide();
$('.open-btn').click(function() {
var findDiv = $(this).next('.open-block');
var findLinia = $(this).closest('.sidebar');
if (findDiv.is(':visible')) {
findDiv.slideUp();
You can’t perform that action at this time.