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
var re = /\/..\//gi; | |
var url = document.location.href; | |
var pDelim = (url.split('?').length>1) ? '&' : '?'; | |
url = url.replace(re, '/').split('/mobile/').join('/mobile/no/') + pDelim + 'currencyCode=NOK'; | |
document.location.replace(url); |
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
var re = /\/..\//gi; | |
var url = document.location.href; | |
var pDelim = (url.split('?').length>1) ? '&' : '?'; | |
url = url.replace(re, '/').split('/mobile/').join('/mobile/us/') + pDelim + 'currencyCode=USD'; | |
document.location.replace(url); |
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
var re = /\/..\//gi; | |
var url = document.location.href; | |
var pDelim = (url.split('?').length>1) ? '&' : '?'; | |
url = url.replace(re, '/').split('/mobile/').join('/mobile/dk/') + pDelim + 'currencyCode=DKK'; | |
document.location.replace(url); |
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
var re = /\/..\//gi; | |
var url = document.location.href; | |
var pDelim = (url.split('?').length>1) ? '&' : '?'; | |
url = url.replace(re, '/').split('/mobile/').join('/mobile/au/') + pDelim + 'currencyCode=AUD'; | |
document.location.replace(url); |
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
var util = (function( getElementById, | |
createElement, | |
argumentsToArray, | |
innerHTML, | |
style, | |
inside, | |
after, | |
undefined ){ | |
var cache = function( key, value ){ | |
var rtn, func = arguments.callee; |
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
img { margin: 4px; } |
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
(() => { | |
const libs = [ | |
"https://cdnjs.cloudflare.com/ajax/libs/superagent/1.2.0/superagent.min.js", | |
"https://cdnjs.cloudflare.com/ajax/libs/ramda/0.18.0/ramda.min.js" | |
].map((src) => { | |
return new Promise(resolve => { | |
const script = document.createElement("script"); | |
script.src = src; | |
script.async = false; | |
script.onload = () => { |
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
((items) => { | |
const libs = [ | |
"https://cdnjs.cloudflare.com/ajax/libs/lodash.js/3.10.1/lodash.min.js", | |
].map((src) => { | |
return new Promise(resolve => { | |
const script = document.createElement("script"); | |
script.src = src; | |
script.async = false; | |
script.onload = () => { | |
resolve(); |
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 getScrollAmount(){ | |
const doc = document.documentElement; | |
return { | |
left: (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0), | |
top: (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0) | |
}; | |
} |
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 getScrollAmount(){ | |
const doc = document.documentElement; | |
return { | |
left: (window.pageXOffset || doc.scrollLeft) - (doc.clientLeft || 0), | |
top: (window.pageYOffset || doc.scrollTop) - (doc.clientTop || 0) | |
}; | |
} |