Skip to content

Instantly share code, notes, and snippets.

@rdallaire
rdallaire / placeholdit.sublime-snippet
Created August 13, 2014 18:13
Sublime Snippets
<snippet>
<content><![CDATA[
<img src="http://placehold.it/${1:500x500}&text=${2:Placeholder}">
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>place</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.css</scope> -->
</snippet>
$(document).crystal('blastoff', {
// Values currently set are default values of configuration
cart: {
trigger: $('#cart-trigger'), // (jQuery) required - selector to activate offcanvas cart
style: 'offcanvas', // (string) choose between 'offcanvas', 'modal', or 'tooltip'
//tabbed: false, // (boolean) true shows buylist cart in tabbed interface
direction: 'move-right' // (string) choose from 'move-left' or 'move-right'
@rdallaire
rdallaire / Preferences.sublime-settings
Created August 4, 2014 16:23
sublime text settings
{
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Spectral/spectral.tmTheme",
"font_size": 9,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
// Example: "company1", "company2"
"include_orgs": [],
// Show GitHub users
// Example: "user1", "user2"
"include_users": [],
$('#search_category_select').change(function(){
$('input.search-field').focus();
});
$('#search_category_select').change(function(){
$('input.search-field').focus();
var data = {
"name": "Affinity",
"mainDeck": [
{"qty": 4, "name": "Mox Opal"},
{"qty": 4, "name": "Cranial Plating"},
{"qty": 3, "name": "Glimmervoid"},
{"qty": 4, "name": "Darksteel Citadel"},
{"qty": 4, "name": "Galvanic Blast"},
{"qty": 3, "name": "Etched Champion"},
{"qty": 4, "name": "Ornithopter"},
$('.bxslider').bxSlider({
mode: 'slide',
onSlideAfter: function (currentSlideNumber, totalSlideQty, currentSlideHtmlObject) {
$('.active-slide').removeClass('active-slide');
$('.bxslider li').eq(currentSlideHtmlObject + 1).addClass('active-slide');
},
onSliderLoad: function () {
onSlideAfter: function (currentSlideNumber, totalSlideQty, currentSlideHtmlObject) {
$('.active-slide').removeClass('active-slide');
$('.bxslider li').eq(currentSlideHtmlObject + 1).addClass('active-slide');
};
onSliderLoad: function () {
$('.bxslider li').eq(1).addClass('active-slide');
};
// custom contact form
$('#contact_us_form').on('click', '#submit-contact', function() {
// $phoneNumber = $('#phone').val();
// $message = $('#message');
// dev.log('Phone', $phoneNumber);
$('#message').text('Schedule a free consultation' + '\n' +
'_______________________________________' + '\n \n' +
/* AUTHORS */
Name: Designer Name Here
Twitter:
Company: CrystalCommerce
Site: http://crystalcommerce.com
Twitter: @crystalcommerce