Skip to content

Instantly share code, notes, and snippets.

View adardesign's full-sized avatar
🎯
Focusing

Eliazer Braun adardesign

🎯
Focusing
View GitHub Profile
Object.keys(localStorage).forEach(function(key) { delete localStorage[key]; });
@adardesign
adardesign / MobileShopMoreFunctionality
Created December 3, 2012 21:14 — forked from anonymous/MobileShopMoreFunctionality
Shop More functionality for mobile
/* Begin Adrma storage utility */
adrma = window.adrma || {};
adrma.storage = {
init: function () {
},
supported: function () {
try {
return 'localStorage' in window && window['localStorage'] !== null;
@adardesign
adardesign / LPAffiliates.js
Created November 13, 2012 18:24
lpAffiliates
(function() {
var searchTextInput, searchTerm;
function doSearch() {
searchTerm = searchTextInput.value || "";
var afKey = document.getElementById("LP_afKey").value || "";
url = "http://www.leisurepro.com/Catalog.aspx?op=gcsSearch&Term=" + searchTerm + "&afKey="+afKey;
window.open(url);
}
function addEventHandler(node, type, fn) {
[
["ALPA \"SKY\" FILTER SIZE-A #610","AZONDG14CASA","ZONDG14CASA"],
["16X9 CAMERA /MATTEBOX CASE, LARGE","CSZOCB2","ZOCB2"],
["16X9 INC.0.75X WID CONVENDER FOR HDV CA","VDL16X975HDV",""],
["16X9 RUBBER LENS HOOD","VDXZOLH15XTC","ZOLH15XTC"],
["16X9 NOGA DG1105TA HOLDIT ARM W/T-BRKT","VDXZONDG1105","ZONDG1105TA"],
["16X9 EXII .45X SPR FISHEYEÿ82MM F/HM700","VDXZOX245XFE","ZOX245XFE82"],
["16X9 EXII 0.6X W/A 72MM FOR CANON/XL/H1","VDXZOX26XWA7","ZOX26XWA72"],
["16X9 CHROSZIEL MTTBX KIT 1 F/SO PMW-EX1","VDXZO450EX1K","ZO450EX1K"],
["16X9 MATTEBOX COVER, SMALL","VDXZOMBC1","ZOMBC1"],
@adardesign
adardesign / gist:3875502
Created October 11, 2012 21:09
dateCompare.js
$(".ws-list-event").each(function(i, e){
var ele = $(e),
extractedDate = ele.find("a").attr("href"),
year,
now;
extractedDate = extractedDate.substr(-10).split("-");
year = extractedDate.shift();
extractedDate[2] = year;
extractedDate = extractedDate.join("/");
extractedDate = new Date(extractedDate)
@adardesign
adardesign / json2.js
Created October 5, 2012 03:10
JSON2 forked
/*
json2.js
2011-10-19
Public Domain.
NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
See http://www.JSON.org/js.html
// toolTip, Version 3.0
// extended from jQuery.hoverTip.js poerted to adrma object…..
// Copyright (c) Feb 14, 2012 adardesign.com
// toolTip is freely distributable under the terms of an MIT-style license
// This means you are free to use the code, but please leave this copyright notice intact
// everything inside the "defaults" is configurable.
// Code passes jsLint.com Code Quality Tool!!! (with some common jQuery errors!).
// toolTip, Version 3.0
// extended from jQuery.hoverTip.js poerted to adrma object…..
// Copyright (c) Feb 14, 2012 adardesign.com
// toolTip is freely distributable under the terms of an MIT-style license
// This means you are free to use the code, but please leave this copyright notice intact
// everything inside the "defaults" is configurable.
// Code passes jsLint.com Code Quality Tool!!! (with some common jQuery errors!).
@adardesign
adardesign / index.html
Created August 6, 2012 13:07
A web page created at CodePen.io.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- IF PEN IS PRIVATE -->
<!-- <meta name="robots" content="noindex"> -->
<!-- END -->
@adardesign
adardesign / index.html
Created August 6, 2012 13:07
A web page created at CodePen.io.
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- IF PEN IS PRIVATE -->
<!-- <meta name="robots" content="noindex"> -->
<!-- END -->