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
EventBus.subscribe("always:insales:cart", data => { | |
// Скрипт common_js добавляет события о корзине в `dataLayer`, но он не | |
// устанавливает поле `event` в его пэйлоаде, поэтому у GTM нет шансов | |
// зацепить изменения в `dataLayer`. Форсируем это самостоятельно. | |
if (window.dataLayer) { | |
setTimeout(() => window.dataLayer.push({ event: "cartChange" }), 50); | |
} | |
}); |
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
const selectors = { | |
cartCount: "[data-cart-widget-count]" | |
}; | |
const classNames = { | |
animate: "cart-widget__count_animate" | |
}; | |
let eventCounter = 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
module.exports = function(grunt) { | |
'use strict'; | |
var path = require('path'); | |
grunt.registerMultiTask('build-icons', 'Collect font icons by common.deps.js and build font', function() { | |
var options = this.options({ | |
block: 'icon', | |
mod: 'font', | |
origin: 'svg', | |
ext: '.svg', |
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
.aviasales_price_marker .aviasales_price_actual, | |
.aviasales_map_cluster_price .aviasales_cluster_content_actual { | |
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fff), to(#cfcfcf)); | |
background-image: -webkit-linear-gradient(#fff, #cfcfcf); | |
background-image: -moz-linear-gradient(#fff, #cfcfcf); | |
background-image: -o-linear-gradient(#fff, #cfcfcf); | |
background-image: linear-gradient(#fff, #cfcfcf); | |
} |
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
html, body { | |
height: 100%; | |
padding: 0; | |
margin: 0; | |
} | |
body { | |
font-size: 14px; | |
background: #666674; | |
position: relative; | |
} |
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
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Fullscreen demo</title> | |
<style> | |
body { | |
font-family: 'Myriad Pro', Arial; | |
} | |
p { |