This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adrma = window.adrma || {}; | |
adrma.storage = { | |
supported: function() { | |
try { | |
return 'localStorage' in window && window['localStorage'] !== null; | |
} catch (e) { | |
return false; | |
} | |
}, | |
get: function(type, key, obj) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
* 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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function RR.jsonCallback(){ | |
//Process Placements provided in RR.data.JSON.placements | |
console.dir(RR.data.JSON.placements); | |
} | |
Example contents of RR.data.JSON: | |
{ | |
"placements": [{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
someNameSpace = { | |
//... | |
processForm: function (form) { | |
return JSON.stringify(form.serializeObject(function (key, val) { | |
return { | |
name: key, | |
value: encodeURIComponent(val) | |
}; | |
})); | |
} |