A Pen by Amen Moja Ra on CodePen.
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 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>Single-Column Responsive Email Template</title> | |
<style> | |
@media only screen and (min-device-width: 541px) { | |
.content { |
A Pen by Amen Moja Ra on CodePen.
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
body { | |
font-family: Arial, sans-serif; | |
text-align: center; | |
padding-top: 20px; | |
color: #555; | |
height: 3000px; | |
} | |
h1 { | |
font-size: 1.5em; |
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 set1 = [2, 4, 6, 8, 10]; | |
var set2 = [2, 4, 5, 8, 10]; | |
console.log(set1.every(function (a) { | |
return a % 2 === 0; | |
})); // true | |
console.log(set2.every(function (a) { | |
return a % 2 === 0; | |
})); // false |
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 add(a, b){ | |
return a + b; | |
} | |
var addOne = add.bind(null, 1); | |
var result = addOne(2); | |
console.log(result); //=> 3 |
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
//Delegate .transition() call to .animate() if the browser can't do css transitions. | |
//Only works for properties that jQuery can handle; x/y won't work | |
if(!$.support.transition){ | |
$.fn.transition = $.fn.animate; | |
} |
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
* { | |
box-sizing: border-box; | |
margin: 0; | |
padding: 0; | |
border: 0; | |
box-shadow: none; | |
outline: none; | |
} | |
html, body { height: 100%; } |
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 a = [1, 3, 5, 7, 9], | |
b = [1, 3, 4, 8, 9]; | |
console.log(a.some(function (c) { | |
return c % 2 === 0; // false | |
})); | |
console.log(b.some(function (c) { | |
return c % 2 === 0; // true | |
})); |
OlderNewer