git submodule add https://github.com/chaconinc/DbConnector
git submodule foreach git pull origin master
/*! | |
* gulp | |
* $ npm install gulp-ruby-sass gulp-autoprefixer gulp-cssnano gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-notify gulp-rename gulp-livereload gulp-cache del --save-dev | |
*/ | |
// Load plugins | |
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
cssnano = require('gulp-cssnano'), |
var Shopify = Shopify || {}; | |
jQuery(function($) { | |
Shopify.shop = "redacted.url"; | |
Shopify.onCartUpdate = function(cart) { | |
$.getJSON('/cart.js', function (cart, textStatus) { | |
$('.cartcount').each(function() { | |
$(this).html(cart.item_count); | |
}); | |
if (cart.item_count == 0) { |
function loadRichMenus() { | |
if ($( document ).width() > 1179) { | |
$('.dropdown-product').each(function() { | |
if (!$(this).data("loaded")) { | |
$('.dd-container', this).load($(this).data('url'), function(){ | |
}); | |
$(this).data("loaded", true); | |
} | |
}); |
<!-- | |
How to load Font Awesome asynchronously | |
Use: Just put this script on the bottom/footer of your web | |
--> | |
<script type="text/javascript"> | |
(function() { | |
var css = document.createElement('link'); | |
css.href = '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'; | |
css.rel = 'stylesheet'; |
Revised date: 07/11/2012
Between us [company name] and you [customer name]
We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.
$(function() { | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; |
var init = function () { | |
// do the initializing | |
init = function() { | |
return false; | |
} | |
}; |
add_filter( 'wp_insert_post_data', 'publish_future' ); | |
/* Avoid publishing posts as 'future' in the first place. | |
function publish_future( $data ) { | |
if ( $data['post_status'] == 'future' && $data['post_type'] == 'post' ) | |
$data['post_status'] = 'publish'; | |
return $data; | |
} | |
jQuery(document).ready(function() { | |
jQuery.fn.cleardefault = function() { | |
return this.focus(function() { | |
if( this.value == this.defaultValue ) { | |
this.value = ""; | |
} | |
}).blur(function() { | |
if( !this.value.length ) { | |
this.value = this.defaultValue; | |
} |