Skip to content

Instantly share code, notes, and snippets.

View Avanger2512's full-sized avatar
🏠
Working from home

Den Avanger2512

🏠
Working from home
View GitHub Profile
<template>
<li :class="['catalog__item', {'is-active': mark}]">
<div
v-lazy:background-image="item.avatar"
class="catalog__image" />
<div class="catalog__in">
<div class="catalog__content">
<div
:title="item.name"
<template>
<div id="payouts-transaction" class="payouts-transaction">
<game-statistics
:details="payoutDetails"
></game-statistics>
<div class="">
<div class="transaction">
<transaction-search
class="transaction__search"
<template>
<transition-group name="fade" mode="in-out">
<template v-if="loading && tableInfo.length > 0">
<table class="tourney-participation__table"
key="participation-table">
<participation-thead v-if="!fullList"></participation-thead>
<transition-group
tag="tbody"
<template>
<li>
<div :class="['tourney', {'tourney_do': withOpponent}]">
<div class="tourney__top">
<div class="tourney__top-item">
<div class="tourney__top-date">
{{ tourneyIntervarDate }}
</div>
</div>
<div class="tourney__top-item tourney__top-headway">
@Avanger2512
Avanger2512 / vue some block
Created November 4, 2018 17:21
Vue test page with pagination and json parse
new Vue({
el: '#app',
data: {
json: [],
allBrands: [],
sorted: [],
checkedBrands: [],
currentPage: 1,
totalPage: 0,
pageSize: 4,
@Avanger2512
Avanger2512 / touchstart and touchend
Created July 29, 2018 09:40
Swipe event detect
let touchstartX = 0;
let touchstartY = 0;
let touchendX = 0;
let touchendY = 0;
const gestureZone = document.getElementById('gestureZone');
gestureZone.addEventListener('touchstart', function(event) {
touchstartX = event.changedTouches[0].screenX;
touchstartY = event.changedTouches[0].screenY;
---
@Avanger2512
Avanger2512 / index.jade
Created September 21, 2016 11:12
Skewed Flexbox Panels
main
- for (var i = 1; i <= 5; i++)
section
article
h2 Panel Title
p This is some description text for this panel.
button Toggle images
@Avanger2512
Avanger2512 / index.html
Created September 21, 2016 10:59
qaqrYE
<ul class="gallery">
<li>
<img src="http://placehold.it/200x50" alt="" />
</li>
<li>
<img src="http://placehold.it/150x50" alt="" />
</li>
<li>
<img src="http://placehold.it/120x50" alt="" />
</li>
//popup
$('.js-popup__close').on('click', function(){
$('.popup').hide()
$('.js-popup').slick('unslick')
})
$('.js-gallery__item').on('click', function(){
var el = $(this);