Skip to content

Instantly share code, notes, and snippets.

View PonomareVlad's full-sized avatar

Vladislav Ponomarev PonomareVlad

View GitHub Profile
@PonomareVlad
PonomareVlad / slideScrollUrlScrollGtm.js
Last active December 30, 2018 11:16
SlideScroll + UrlScroll + GTM
// Запускаем плагин слайдов
window.slideScroll = new SlideScroll({
lazyDisplayOffset: 3, // Количество отображаемых блоков относительно активного
debug: true // Режим отладки в консоли
});
slideScroll.onActive(slideNode => dataLayer.push({'event': 'foto_' + slideNode.order})); // GTM
slideScroll.onReady(() => {
// Запускаем плагин смены Url после того как запустился плагин слайдов
@PonomareVlad
PonomareVlad / slideScrollGtm.js
Last active December 30, 2018 07:39
SlideScroll + GTM
// Запускаем плагин слайдов
window.slideScroll = new SlideScroll({
lazyDisplayOffset: 3, // Количество отображаемых блоков относительно активного
debug: true // Режим отладки в консоли
});
slideScroll.onActive(slideNode => dataLayer.push({'event': 'foto_' + slideNode.order})); // GTM
@PonomareVlad
PonomareVlad / index.html
Created March 28, 2019 08:39
First lesson
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Мой первый</title>
</head>
<body>
<h1>Привет из HTML!</h1>
<p>Наш прогресс в изучении HTML:</p>
<progress max="100" value="5"></progress>
@PonomareVlad
PonomareVlad / index.html
Created February 28, 2020 16:13
Styles for antonbalakin.com
<style>
a.tn-atom[href="https://www.behance.net/balakindesign"]:hover,
a.tn-atom[href="https://www.facebook.com/antonbalakinn"]:hover,
a.tn-atom[href="https://www.instagram.com/antonbalakinn/"]:hover,
a.tn-atom[href="https://www.antonbalakin.com/true_case"]:hover,
a.tn-atom[href="https://www.antonbalakin.com/readysteady_case"]:hover,
a.tn-atom[href="https://www.antonbalakin.com/skinexpert_case"]:hover,
a.tn-atom[href="https://www.antonbalakin.com/skat_case"]:hover {
opacity: .7;
}
@PonomareVlad
PonomareVlad / index.html
Last active November 24, 2020 22:21
Styles for antonbalakin.com/integra
<style>
.t-feed__post-popup__close-text,
.t786__close-text.t-descr.t-descr_xxs,
.t778__close-text.t-descr.t-descr_xxs{
font-size: 18px !important;
line-height: .9 !important;
}
.t-text_md {
font-size: 18px !important;
<?php
/*
* Tool to parse disqus comments xml file.
*
* @author Prahlad Yeri<prahladyeri@yahoo.com>
* @date 2017-09-06
* */
function find_url($root, $thid) {
foreach($root->thread as $thread) {
<?xml version="1.0" encoding="utf-8"?>
<disqus xmlns="http://disqus.com" xmlns:dsq="http://disqus.com/disqus-internals" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://disqus.com/api/schemas/1.0/disqus.xsd http://disqus.com/api/schemas/1.0/disqus-internals.xsd">
<category dsq:id="8737668">
<forum>ponomarevlad</forum>
<title>General</title>
<isDefault>true</isDefault>
</category>
<thread dsq:id="8324622202">
<id />
<forum>ponomarevlad</forum>
@PonomareVlad
PonomareVlad / rooms.json
Created December 29, 2020 17:03
Chat Rooms Backup
[
{
"_id": "5fe3f8c29320010008796423",
"id": "MKwgAZsAcS1fujpjKaNX",
"host": "Еееее",
"client": "👨🏻‍💻"
},
{
"_id": "5fe3f9c0932001000879642d",
"id": "UwaTTS8CWuLyTqkx8HAt",
@PonomareVlad
PonomareVlad / index.php
Last active May 15, 2021 09:30
Adding product to cart in PHP
// Шаг 1
// Выводим артикул (книга_id) в аттрибут value у кнопки
<button type="submit" id="hello" name="hello" value="$row[1]">КУПИТЬ</button>
// Шаг 2
// Если после клика на кнопку, пользователь должен сразу переместится на страницу корзины или оформления заказа,
// то можно просто обернуть кнопку в тег формы и указать для нее адрес страницы (скрипта) который примет данные о
// выбранном артикуле в GET или POST параметрах (получить их можно будет в переменной $_REQUEST['book_id'])

Keybase proof

I hereby claim:

  • I am ponomarevlad on github.
  • I am ponomarevlad (https://keybase.io/ponomarevlad) on keybase.
  • I have a public key ASBqXlEHLrE2hEwVnx2EAF5oQEsR1qj5veO8nLgTd_KFywo

To claim this, I am signing this object: