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
$.magniflier = function( target, style ) { | |
if( !target ) return false; | |
var style = style || false; | |
var native_width = 0; | |
var native_height = 0; | |
var mouse = {x: 0, y: 0}; | |
var $curImg; | |
var ui = { |
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
// <!-- IE polyfill --> | |
// <!-- <script type="text/javascript" src="assets/polyfill-svg-uri/polyfill-svg-uri.min.js"></script> --> | |
/** | |
* Color | |
* Width | |
* Height | |
* Svg path (left,bottom center,top right,bottom) | |
* | |
* Use %23 instend # for the FF |
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
// <!-- IE and EDGE unsupported --> | |
@mixin transparent-gradient-mask($direction: 'to bottom', $from: rgba(0,0,0,1), $to: rgba(0,0,0,0)) { | |
// -webkit-mask-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(0,0,0,1)), to(rgba(0,0,0,0))); | |
-webkit-mask-image: linear-gradient(unquote($direction), $from, $to); | |
mask-image: linear-gradient(unquote($direction), $from, $to); | |
} | |
.pane { | |
position: relative; | |
display: block; |
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
$dbBasketItems = CSaleBasket::GetList( | |
array("ID" => "ASC"), | |
array( | |
'FUSER_ID' => CSaleBasket::GetBasketUserID(), | |
'LID' => SITE_ID, | |
'ORDER_ID' => 'NULL' | |
), | |
false, | |
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
$.fn.scrollIn = function() { | |
var $window = $(window), | |
scrollTop = $window.scrollTop(), | |
viewport = { | |
top: scrollTop, | |
bottom: scrollTop + $window.height() | |
}, | |
bounds = this.offset(); | |
bounds.bottom = bounds.top + this.outerHeight(); |
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 (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true)die(); | |
/** | |
* New bitrix checkout component | |
*/ | |
use \Bitrix\Main\Localization\Loc; | |
use \Bitrix\Main\Loader; | |
class customOrderComponent extends CBitrixComponent |
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
var cookieName = 'oncePopup'; | |
// if cookie exists | |
if( 0 < getCookie(cookieName) ) return; | |
var date = new Date(new Date().getTime() + 1 * 60 * 60 * 1000); // 1 hour | |
document.cookie = cookieName + "=1; path=/; expires=" + date.toUTCString(); | |
function getCookie(name) { | |
var matches = document.cookie.match(new RegExp( | |
"(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" |
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 | |
use CommerceMLParser\Parser, | |
CommerceMLParser\Event; | |
require 'vendor/autoload.php'; | |
class CommerceMLParser | |
{ | |
public $arCategory = array(); |
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
var preloaderClass = 'fb-loading'; | |
window.showPreloader = function( message ) { | |
if(!message) message = 'Загрузка..'; | |
$preload = $('<p>'+ message +'</p>').css({ | |
'margin-top': '50px', | |
'margin-bottom': '-40px', | |
'padding-bottom': '', | |
'color': '#ddd' | |
});; |
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
/********************************* Slick **********************************/ | |
window.slickSlider = function(target, props) { | |
var _defaults = { | |
autoplay: true, | |
autoplaySpeed: 4000, | |
dots: true, | |
infinite: false, | |
slidesToShow: 4, | |
slidesToScroll: 4, | |
responsive: [ |