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
/* | |
Twitter Card Markup Reference | |
https://dev.twitter.com/docs/cards/markup-reference | |
Title: max 70 characters | |
Description: maximum 200 characters | |
Images: Keep images under 1MB | |
URL: not in documentation but in examples | |
*/ |
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
window.onblur = function () { document.title = 'Your new HTML Title tag'; } | |
window.onfocus = function () { document.title = 'The default title tag'; } |
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 { margin: 15px;} | |
.bold { font-weight: bold; } | |
.caps { text-transform: uppercase; } | |
.center { text-align: center; } | |
.circle { list-style: circle; } | |
.smcaps { font-variant: small-caps; } | |
.unstyled { list-style: none; } |
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
// Change Title Tag on Blur | |
var titleCurrent = document.title; | |
var titleList = [ | |
"Hey, over here.", | |
"Don't you forget about me", | |
"Please come back" | |
]; | |
var titleIndex = ""; | |
function titleRandom(){ |
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
// Test for Android < 4.4 | |
var nua = navigator.userAgent; | |
var nuaStart = navigator.userAgent.indexOf("Android "); | |
var nauVersion = navigator.userAgent.substr(nuaStart+8,3) | |
if (nauVersion < 4.4 ) { | |
document.documentElement.className += ' droid'; } |
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
// Variables | |
$a-highlight: yellow; | |
// Sass | |
.highlight-a a { | |
background-color: inherit; | |
border-bottom: 1px solid $a-highlight; | |
box-shadow: inset 0 -4px 0 $a-highlight; | |
color: inherit; | |
text-decoration: none; |
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
<figure class="video"> | |
<iframe id="video-player" data-videoid="du4Y4KtGXBg" src="" frameborder="0" allowfullscreen></iframe> | |
</figure> |
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
@mixin clearfix { | |
&:after { | |
content: ""; | |
display: table; | |
clear: both; | |
} | |
} |
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
ul > li:after { | |
content: "|"; | |
margin-left: 10px; } | |
ul > li:last-child:after { | |
content: ""; } |
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
/* | |
customFunction 2006 Sean Walsh | |
Developed by: Developer Name | |
Format: | |
customFunction ( field ) | |
Parameters: | |
field - any related field, repeating field, or set of non-repeating fields; or an expression that returns a field, repeating field, or set of non-repeating fields. |
OlderNewer