Created
August 11, 2014 21:05
-
-
Save rdallaire/c4fb1e8c639d40e457a1 to your computer and use it in GitHub Desktop.
global
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
| $(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' | |
| }, | |
| search: { | |
| categories: false, // (boolean) true will show category dropdown in searchbox | |
| style: 'dropdown' // (string) choose between 'simple', 'dropdown', or 'radio' | |
| }, | |
| cattree: { | |
| trigger: $('#tree-trigger'), // (jQuery) required - selector to activate offcanvas cat tree | |
| style: 'horizontal', // (string) choose between 'flyout', 'offcanvas', 'accordion', or 'dropdown' | |
| limit: 6, | |
| title: false, // (boolean) true will show category tree title | |
| direction: 'move-left' // (string) choose from 'move-left' or 'move-right' | |
| }, | |
| products: { | |
| msrp: true, // (boolean) true shows msrp price value | |
| imgModal: false, // (boolean) true activates the 'view larger' image modal | |
| nostockPrice: false, // (boolean) true shows prices on out of stock items | |
| listVariants: false, // (boolean) true shows available variants in list view | |
| categoryView: 'grid' // (string) choose between 'grid' or 'list' | |
| } | |
| }); | |
| $(document).crystal('backstage'); | |
| $(document).crystal('swaparoo', { preloadImages: false, style: 'lightbox'}); | |
| // Rss feed Widget | |
| $(document).crystal('feedsWidget', { | |
| target: '#news-container', | |
| url: 'http://www.channelfireball.com/feed' | |
| }); | |
| jQuery(function($) { | |
| // $(document).crystal('exploit'); | |
| }); | |
| //$(document).crystal('equalize'); | |
| ;(function($, window, document, undefined) { | |
| // GLOBAL CLOSURE VARIABLES | |
| var w = $(window), d = $(document); | |
| // WINDOW HEIGHT + WIDTH VARS | |
| var winH = w.height(), winW = w.width(); | |
| // GET HEIGHT OF THE CART | |
| var cartH = $('#cart-items').height(); | |
| // CURRENT WINDOW LOCATION | |
| var wloc = location.href; | |
| /* | |
| How to Find Google Calendar ID | |
| http://googleappstroubleshootinghelp.blogspot.com/2012/09/how-to-find-calendar-id-of-google.html | |
| */ | |
| // Single Events Feed | |
| $('#events-container').ccGoogleEventWidget({ | |
| calendar:'admin%40mtgdeals.com' //your client's google calendar ID or the email that they created it with | |
| }); | |
| // tabbed events feed | |
| /* $('#events-tab-container').ccTabbedGoogleEventWidget({ | |
| calendar : 'admin%40mtgdeals.com', // your client's google calendar ID or the email that they created it with | |
| hover: true, // OPTIONAL - turns the hover description on/off | |
| dateFormat: 'dddd, MMMM Do', // OPTIONAL - see momentjs.com for formatting details | |
| numEvents: 30, // Max number of events | |
| tabs: [ // REQUIRED | |
| { | |
| tabTitle: 'Magic', // First tab title | |
| tabClass: 'magicEvents', // First Tab class | |
| tabTerms: 'magic, fnm' // Events with these terms in the title will show up on this tab | |
| }, | |
| { | |
| tabTitle: 'Yugioh', // Second tab title | |
| tabClass: 'yugiohEvents', // Second tab class | |
| tabTerms: 'yugi' // Events with these terms in the title will show up on this tab | |
| } | |
| ] | |
| }); | |
| */ | |
| /* $('body a').on(cc.evtype, function(event){ | |
| dev.log('event type', event); | |
| });*/ | |
| /* ============================================================================== | |
| /* ====== ADD CUSTOM JAVASCRIPT HERE | |
| /* ============================================================================= */ | |
| })(jQuery, this, this.document); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment