Skip to content

Instantly share code, notes, and snippets.

View adardesign's full-sized avatar
🎯
Focusing

Eliazer Braun adardesign

🎯
Focusing
View GitHub Profile
adrma = window.adrma || {};
adrma.storage = {
supported: function() {
try {
return 'localStorage' in window && window['localStorage'] !== null;
} catch (e) {
return false;
}
},
get: function(type, key, obj) {
<resourceSet name="LPRevisedCheckoutJs" type="js">
<resource path="/sup/js/lib/jquery-1.9.1.min.js"/>
<resource path="/sup/js/adrma.js"/>
<resource path="/sup/js/adrma.log.js"/>
<resource path="/sup/js/polyfills/objectKeys.js"/>
<resource path="/sup/js/polyfills/raf.js"/>
<resource path="/sup/js/adrma.utils.js"/>
<resource path="/sup/js/adrma.initFunc.js"/>
<resource path="/sup/js/adrma.init.js"/>
<resource path="/sup/js/adrma.ajax.js"/>
New header
<resource path="/sup/css/LP/fonts.css" />
<resource path="/sup/css/LP/core.css" />
<resource path="/sup/css/LP/base.css" />
<resource path="/sup/css/LP/forms.css" />
<resource path="/sup/css/LP/buttons.css" />
<resource path="/sup/css/LP/sellPoints.css" />
<resource path="/sup/css/LP/tooltips.css" />
<resource path="/sup/css/LP/itemModule.css" />
<resource path="/sup/css/LP/productAggregate.css" />
<!DOCTYPE html>
<!--[if IE 8]> <html lang="sv-SE" class="no-js ie8"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="sv-SE" class="no-js"> <!--<![endif]-->
<head>
<meta charset="UTF-8">
<title>Breakpoint detection test</title>
<style type="text/css" media="screen">
@media screen and (min-width: 320px) {
#page:after {
content: 'mobile-small'; /* represent the current width-bracket */
/*!
* typeahead.js 0.9.1
* https://github.com/twitter/typeahead
* Copyright 2013 Twitter, Inc. and other contributors; Licensed MIT
*/
(function($) {
var VERSION = "0.9.1";
var utils = {
isMsie: function() {
var match = /(msie) ([\w.]+)/i.exec(navigator.userAgent);
<div class="listingNavWidget widget">
<h2 class="widgetHeader icon-calendar">Store Schedule</h2>
<div class="widgetContent">
<div class="subSection todaysDateSection">
<h4>Wednesday<br>
Feb 6th, 2013</h4>
</div>
function RR.jsonCallback(){
//Process Placements provided in RR.data.JSON.placements
console.dir(RR.data.JSON.placements);
}
Example contents of RR.data.JSON:
{
"placements": [{
$('.tooltip').each(function() {
var thistip = $(this);
var thehash = $(thistip).attr('id');
$('.theoptions').append("<div class='tooltipcontent "+thehash+"' style='display:none'></div>");
$(".tooltipcontent."+thehash).load('tooltips/data.php #'+thehash, function(){
var thehtml = $(".tooltipcontent."+thehash).html().replace(/"/g, '\'');
//alert(thehtml)
$(thistip).attr('title', thehtml).tooltipster('update', thehtml);
$('.tooltip').each(function() {
var thistip = $(this);
var thehash = $(thistip).attr('id');
$('.theoptions').append("<div class='tooltipcontent "+thehash+"' style='display:none'></div>");
$(".tooltipcontent."+thehash).load('tooltips/data.php #'+thehash, function(){
var thehtml = $(".tooltipcontent."+thehash).html().replace(/"/g, '\'');
//alert(thehtml)
someNameSpace = {
//...
processForm: function (form) {
return JSON.stringify(form.serializeObject(function (key, val) {
return {
name: key,
value: encodeURIComponent(val)
};
}));
}