Skip to content

Instantly share code, notes, and snippets.

View adardesign's full-sized avatar
🎯
Focusing

Eliazer Braun adardesign

🎯
Focusing
View GitHub Profile
@adardesign
adardesign / perf-diagnostics.css
Created January 12, 2021 15:48 — forked from tkadlec/perf-diagnostics.css
CSS used to highlight potential performance issues
:root {
--violation-color: red; /* used for clear issues */
--warning-color: orange; /* used for potential issues we should look into */
}
/* IMAGES */
/*
* Lazy-Loaded Images Check
* ====
$.when(adrma.fetchData({
url: "https://pay.google.com/gp/p/js/pay.js",
dataType: "script",
}),
adrma.fetchData({
url: "https://js.braintreegateway.com/web/3.64.1/js/client.min.js",
dataType: "script",
}),
// WEB-48778
(function() {
if (adrma.pageInfo.pageType === "receiptPage") {
window.BOOMR_config = {
autorun: false
};
BOOMR = window.BOOMR || {};
BOOMR.debug = true;
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 / buyNow.js
Last active December 28, 2015 23:24 — forked from RuslanSushko/buyNow.js
(function() {
adrma.session.getSession.done(function gotSession(session) {
var buyNowButton,
productInfoContainer = $(".product-info-container");
if (productInfoContainer.find(".vipProduct").length) {
//WEB-31841
return;
}
$("#house *").toggleClass("breadcrumbs matzaballs 0 linearBurn", passover===true);
//media API
adrma.media = {
defaults: {
videoDimenstions: {
width: 510,
height: 450
}
},
init: function(arg, options) {
this.options = $.extend({}, this.defaults, options);
//Validator
adrma.Validate = function() {
if (this instanceof adrma.Validate) {
return this;
} else {
return new adrma.Validate();
}
};
adrma.Validate.prototype = {
defaults: {
adrma.giftCardWizard = {
init: function init() {
var self = this;
self.data = self.data || {} // init data obj
self.bindActions();
$("#sendviaemail").trigger("click");
},
bindActions: function bindActions() {
adrma.states = {
list: [],
USStateList: [],
CAStateList: [],
get: function get(country) {
var self = this,
dfd = $.Deferred(),
stateList = adrma.storage.get("session", country+"StateList"),
if (stateList) {
self[country+"StateList"] = stateList;