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
// Header Search | |
$('.search a').on('click', function(event){ | |
event.preventDefault(); | |
var search = $(this).attr('href'); | |
$(search).css('right', '0'); | |
}); | |
// Hide search on document click | |
$(document).mouseup(function(e){ |
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
<ifModule mod_headers.c> | |
# Turn on Expires and set default expires to 3 days | |
ExpiresActive On | |
ExpiresDefault A259200 | |
# Set up caching on media files for 1 month | |
<filesMatch ".(ico|gif|jpg|jpeg|png|flv|pdf|swf|mov|mp3|wmv|ppt)$"> | |
ExpiresDefault A2419200 | |
Header append Cache-Control "public" | |
</filesMatch> |
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
Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html | |
Redirect 301 /oldpage2.html http://www.yoursite.com/folder/ |
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($) { | |
$.fn.extend( { | |
limiter: function(limit, elem) { | |
$(this).on("keyup focus", function() { | |
setCount(this, elem); | |
}); | |
function setCount(src, elem) { | |
var chars = src.value.length; | |
if (chars > limit) { | |
src.value = src.value.substr(0, limit); |
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
article { | |
float: left; | |
width: 23%; | |
background: #ccc; | |
margin: 10px 1%; | |
padding: 1%; | |
} | |
@media all and (max-width: 900px) { | |
article { |
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
table#miyazaki { | |
margin: 0 auto; | |
border-collapse: collapse; | |
font-family: Agenda-Light, sans-serif; | |
font-weight: 100; | |
background: #333; color: #fff; | |
text-rendering: optimizeLegibility; | |
border-radius: 5px; | |
} |
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).scroll(function() { | |
if ($(this).scrollTop()) { | |
$('#toTop:hidden').stop(true, true).fadeIn(); | |
} else { | |
$('#toTop').stop(true, true).fadeOut(); | |
} | |
}); | |
$(document).ready(function(){ | |
$('#toTop').fadeOut(); |
OlderNewer