Skip to content

Instantly share code, notes, and snippets.

View avishai84's full-sized avatar

Avishai T. avishai84

View GitHub Profile
https://github.com/avishai84/svg/blob/6ae694a5037f1f9fa4b9b06d4d261ec83bb9930d/flowChart.svg
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"/>
<title>Counter</title>
<style>
body{
@avishai84
avishai84 / half-dual-cta-desk
Created October 26, 2018 22:35
half-dual-cta-desk
{
"instanceDesc": "BABY_A",
"name": "TiledComponents",
"type": "sitewide",
"experimentRunning": true,
"data": {
"lazy": false,
"defaultHeight": "300px",
"style": {
@avishai84
avishai84 / dual-cta-dropdown-desk
Created October 26, 2018 22:32
dual-cta-dropdown-desk
{
"instanceDesc": "MATERNITY_C",
"name": "SVGOverlay",
"type": "home",
"data": {
"lazy": false,
"containerStyle": {
"mobile": {
"margin": "1rem 0"
},
@avishai84
avishai84 / full-width-desk-mob-json
Created October 26, 2018 22:29
full-width-desk-mob-json
{
"instanceDesc": "MATERNITY_A",
"name": "SVGOverlay",
"type": "home",
"data": {
"lazy": false,
"containerStyle": {
"mobile": {
"margin": "1rem 0"
@avishai84
avishai84 / facet-function
Last active September 4, 2018 20:14
facet-2018
function theNewFacetFn(cid){
this.cid=cid;
let pageIdHash = '#pageId=0';
let origPageLocHash = window.location.hash;
if(origPageLocHash.length > 0){
//check if hash already exist in URL
//To stay consistent, loop to find if style exist in array.
// remove it and put back the string at the end.
origPageLocHash = origPageLocHash.split('&');
@avishai84
avishai84 / facet fn
Last active June 28, 2018 21:11
facet fn
function setFacetSelectHandlers(dataCid){
this.dataCid = dataCid;
var hashLoc = location.hash,
dept = '';
//check if dept exist;
(gap.viewModel.facetManager.k_hasDepartment()) ? dept = gap.viewModel.departmentFacet.k_selectedDepartment() : dept = false;
if(dept != false){
hashLoc.indexOf('&style')>-1?hashLoc='#pageId=0&department='+dept+'&style='+dataCid:hashLoc+="&style="+dataCid;
}else{
hashLoc.indexOf('&style')>-1?hashLoc='#pageId=0&style='+dataCid:hashLoc+="&style="+dataCid;
<div class="section-1" data-lazycallback="startCarousel">
<div class="sds_grid-root">
<div class="sds_g-1-1">
<div class="sds_relative">
<!-- Carousel -->
<div class="dp_main_carousel_mobile_desk">
<!-- slide1 -->
<div>
<picture>
<source media="(max-width: 767px)" data-srcset="/Asset_Archive/GPWeb/content/0014/543/595/assets/mobile/01_MOB_IMG.jpg">
@avishai84
avishai84 / dynamic-Nav-CTA
Created October 31, 2017 18:25
dynamic-Nav-CTA
<!-- dynamic shop bottom CTA-Nav 11/1/2017 -->
<style type="text/css">
.giftShopGlobalBottomNav{
max-width:1280px;
margin:0 auto;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 16px;
background-color:#a2202b;
}
.giftShopGlobalBottomNav img{
@avishai84
avishai84 / sticky-nav
Created October 31, 2017 18:22
sticky-nav
<style type="text/css">
/* ***********************************************************************
STICKY DRAWER CSS
************************************************************************ */
@media(max-width:767px){
.wcd_sticky_drawer{
opacity:0;
display:none;
}
}