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
// Pause all other HTML5 videos when a video is played | |
$('video').click(function() { | |
$("video").each(function () { this.pause() }); | |
}); |
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
.global-inline-styles { | |
h2 { | |
padding-bottom: .35em; | |
margin-top:0; | |
margin-bottom:0; | |
} | |
h3 { | |
padding-top: .25em; | |
padding-bottom: .25em; | |
margin-top: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
<script type="text/javascript"> | |
$(document).ready(function() { | |
//$('input').placeholder(); | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() === input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { |
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
<?php | |
// Referrence: http://stackoverflow.com/questions/3161816/php-cut-a-string-after-x-characters | |
// Max allowed characters | |
$limit_max = 160; | |
// If limit exeeded, remove 3 characters to make room for trail | |
$limit_trail = $limit_max - 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
<!-- Pre HTML5 --> | |
<div class="img-caption" itemscope itemtype="http://schema.org/ImageObject"> | |
<img src="" alt="" itemprop="contentURL"> | |
<span itemprop="description"> | |
Some image caption text. | |
</span> | |
</div> | |
<!-- Post HTML5 --> | |
<figure class="img-caption" itemscope itemtype="http://schema.org/ImageObject"> |
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
// jQuery same height HTML elements, per a row. | |
$(window).load(function() { | |
var currentTallest = 0, | |
currentRowStart = 0, | |
rowDivs = new Array(), | |
$el, | |
topPosition = 0; | |
$('.blocks').each(function() { |
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
/* This is magic, makes the slide look beautiful in ie8 */ | |
.ie8 slideshow-wrapper slide { | |
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=99)"; | |
} |
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 { -webkit-text-size-adjust: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
.android #content >* { | |
background-image: url('http://d1xt3jhdg1opoa.cloudfront.net/transizr.gif'); | |
} |