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
$('form[data-infield]').on('keyup', 'input[type="text"], input[type="email"], textarea', function(){ | |
var input = $(this); | |
input.toggleClass('not-empty', !!input.val()); | |
}); |
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
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{HTTPS} =on | |
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L] |
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
<script> | |
var menu = $('#contact-content'); | |
$('.sidebar #contact-heading').click(function(){ | |
var heading = $(this); | |
if ( $(window).width() < 600 ) { | |
if( menu.is(':visible') ) { | |
menu.slideUp('fast'); | |
if( heading.hasClass('open') ) { |
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
CKEDITOR.editorConfig = function(config) { | |
config.scayt_autoStartup = true; | |
}; |
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
{if (structure:top:url == structure:page:url AND structure:child_ids != "") OR (structure:top:url != structure:page:url AND structure:child_ids == "") } | |
<!-- Sidebar Code or Whatever --> | |
{/if} |
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
<IfModule mod_headers.c> | |
<FilesMatch "\.(js|css|xml|gz)$"> | |
Header append Vary: Accept-Encoding | |
</FilesMatch> | |
</IfModule> |
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
gzip on; | |
gzip_disable "MSIE [1-6]\.(?!.*SV1)"; | |
gzip_types text/plain text/css text/javascript application/javascript application/x-javascript image/svg+xml; | |
gzip_vary on; |
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
<snippet> | |
<content><![CDATA[<?php | |
${1} | |
?>]]></content> | |
<tabTrigger><?php</tabTrigger> | |
<description>PHP Tag Autocomplete</description> | |
</snippet> |
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 container = document.querySelector('.container'); | |
var msnry = new Masonry( container, { | |
// options | |
itemSelector: '.item', | |
gutter: 10 | |
}); | |
var ias = $.ias({ | |
container: ".container", | |
item: ".item", |
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
/* small screen, 72ppi */ | |
.banner { | |
background-image: url(/assets/img/tmp/detail-s.jpg); | |
} | |
/* small screen, 192ppi */ | |
@media screen and (max-width: 42.611em) | |
and (-webkit-min-device-pixel-ratio: 2), | |
(min-resolution: 192dppx) { | |
.banner { | |
background-image: url(/assets/img/tmp/detail-s-2x.jpg); |