This file contains hidden or 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
"use strict"; | |
// Show email promo image (branded) reveal once, every 7 days | |
// Open drawer to email panel when clicked | |
var fElmRevPromo = function( _d, _aIds ){ | |
var _eRev = _d.getElementById( _aIds[0] ), _sBrand="LTD"; | |
var _eRevI = _d.getElementsByClassName( _aIds[1] )[0]; | |
return { | |
init: function( sBrand ){ | |
if( sBrand && ( typeof _eRevI != "undefined") ){ |
This file contains hidden or 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 canIUseWebP() { // Original Author Unknown | |
var elem = document.createElement('canvas'); | |
if (!!(elem.getContext && elem.getContext('2d'))) { | |
return elem.toDataURL('image/webp').indexOf('webp') == 0; | |
} | |
return false; | |
} |
This file contains hidden or 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(){var a=Math.floor(((new Date).getTime()+1112009)/864E5),b=window,c=b.document,d="https://marketer.monetate.net/control/inspector/"+a+"/",e=b.__mti&&b.__mti.open;if(e)e();else if(!c.getElementById("mtInspector-script")){var f=c.getElementsByTagName("head")[0]||c.body;if(f){var g=f,h=d,i=c.createElement("link");i.href=h+"inspector.css";i.rel="stylesheet";g.insertBefore(i,g.firstChild);var j=f,k=d,l=c.createElement("script");l.src=k+"inspector.js";l.id="mtInspector-script";j.insertBefore(l,j.firstChild)}};})(); |
This file contains hidden or 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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Infinite Scroll ⚡️ Scott C. Krause</title> | |
<style> | |
/* -------------------- | |
Add your styling here | |
-------------------- */ | |
.container { |
This file contains hidden or 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
// Is TACOCAT spelled backward still TACOCAT? | |
// People have been asking this question for thousands of years until... | |
// I wrote a function in JavaScript to prove it and end the debate. Palindrome in JavaScript | |
let isPalindrome = ( sIn = "tacocat" ) => ( sIn.split("").reverse().join("") === sIn ); | |
/* | |
_._ _,-'""`-._ | |
(,-.`._,'( |\`-/| | |
`-.-' \ )-`( , o o) | |
`- \`_`"'- My name is Omelette! ^_^ |
This file contains hidden or 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> | |
<html lang="en"> | |
<head> | |
<title>QQQQ | emoji</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
html, body { |
This file contains hidden or 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 labelMD_default = { // Detault configuration | |
mode: "default", | |
aExcludeID: ["js-qty__input--id","js-inp-search--id","js-toplogo-slide__input--id","js-inp-topsearch--id","quickSearch-query-for-small","emailSubscribeAddressModal","emailAddressFieldId","quickSearch-query"], | |
aExcludeCL: ["js-eml__input--field", "js-sms__input"] | |
}; | |
//var labelMD_custom = { mode: "custom" } // Custom configuration | |
var labelMD = ( function( _d, _g ){ // Dynamic Material Design INPUT Labels | |
var aInp = [], aLab = [], oCnf = {}, sBrand; |
This file contains hidden or 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
"use strict"; // Act on Tab when link clicked | |
var oTb, oLk; | |
oTb = document.querySelectorAll(".tablink4")[0]; | |
oLk = document.querySelectorAll("[href='/#tablink4']")[0]; | |
if( oTb && oLk ){ | |
oLk.addEventListener( "click", function(e){ | |
oTb.click(); | |
} ); | |
} |
This file contains hidden or 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> | |
<html lang="en"> | |
<head> | |
<title>v2 standard grid system</title> | |
<meta charset = "UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="Description" content="Site UX interactive Prototype"> | |
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro&display=swap" rel="stylesheet"> | |
<link href="css/grid_system.css" rel="stylesheet"> |
This file contains hidden or 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
Front End Testing | |
<style>p.header-description { font-size: 22px!important; font-weight: 100; color: #edba08 !important; } BR {display: none;}</style> |