Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Eliazer Braun adardesign

🎯
Focusing
Block or report user

Report or block adardesign

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View api-data-list-page.json
{
"status": "success",
"type": "GetPageData",
"data": {
"cursorData": {
"total": 2000,
"startAt": 40
},
"productList": [
"INKD750",
View box-recalc-style-slow.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="author" content="" />
<meta name="viewport" content="width=device-width">
<title>Box Style Change</title>
View POC - Adorama - mpulse - Fixed.js
// WEB-48778
(function() {
if (adrma.pageInfo.pageType === "receiptPage") {
window.BOOMR_config = {
autorun: false
};
BOOMR = window.BOOMR || {};
BOOMR.debug = true;
View gist:4f41079620b00aa9308bebaabc818402
adrma.invisibleParameterToJSON = function invisibleParameterToJSON() {
var parsedInvisParam = {},
invisParam = adrma.cookie("InvisibleParameter");
if(!invisParam) return false;
if (invisParam) {
invisParam.split('&').forEach(function(val, i) {
var tempArr = val.split("=");
var value = adrma.ifBoolParse(tempArr[1]);
if (value === '') value = null;
parsedInvisParam[tempArr[0]] = value;
@adardesign
adardesign / itemsInCart.json
Created Nov 26, 2015
Handling isBundle - WEB-34571
View itemsInCart.json
{
"125826997": {
"id": "125826997",
"rebates": [
{
"text": "This bundle is eligible for a $350 mail In rebate",
"link": "http://www.adorama.com/pdfs/rebates/CanonNMIR.pdf"
}
],
"isBundle":"ICAT5IK1Z",
View buyNow.js
(function() {
adrma.session.getSession.done(function gotSession(session) {
var buyNowButton,
productInfoContainer = $(".product-info-container");
if (productInfoContainer.find(".vipProduct").length) {
//WEB-31841
return;
}
@adardesign
adardesign / adrma.analytics.eCommerce.js
Created Oct 30, 2015
adorama enhanced ecommerce analytics
View adrma.analytics.eCommerce.js
adrma.analytics.ec = {
getList: function getList(sku) {
var findList = function findList(url) {
var urlParams = adrma.pageInfo.urlParams,
href = url ? url : window.location.href,
// return the value as early as possible
pageInfo = adrma.pageInfo,
listValue;
if (urlParams.RRref) {
//value RRref rich relevance (set on rich relevance zones. values are "rr cat page" "rr list page" "rr pdp" & "rr receipt page")
View breadcrumbs-no-more
$("#house *").toggleClass("breadcrumbs matzaballs 0 linearBurn", passover===true);
View gist:8f41e1434fbd54f3b619
//media API
adrma.media = {
defaults: {
videoDimenstions: {
width: 510,
height: 450
}
},
init: function(arg, options) {
this.options = $.extend({}, this.defaults, options);
View gist:d3ec0123714afaee1bca
//Validator
adrma.Validate = function() {
if (this instanceof adrma.Validate) {
return this;
} else {
return new adrma.Validate();
}
};
adrma.Validate.prototype = {
defaults: {
You can’t perform that action at this time.