/templates/yoo_radiance/styles/iceblue/js/template.js
/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */
(function($){
$(document).bind('ready', function() {
var config = $('body').data('config') || {};
// Firefly effect
/*$.firefly({
images :
[
WarpThemePath+'/styles/iceblue/images/firefly/spark1.png',
WarpThemePath+'/styles/iceblue/images/firefly/spark2.png'
],
total : 75
});
*/
// Accordion menu
$('.menu-sidebar').accordionMenu({ mode:'slide' });
// Dropdown menu
$('#menu').dropdownMenu({ mode: 'slide', dropdownSelector: 'div.dropdown'});
// Smoothscroller
$('a[href="#page"]').smoothScroller({ duration: 500 });
// Fix Browser Rounding
$('.grid-block').matchWidth('.grid-h');
// Social buttons
$('article[data-permalink]').socialButtons(config);
// Match height of div tags
var matchHeight = function(){
$('#top-a .grid-h').matchHeight('.deepest');
$('#top-b .grid-h').matchHeight('.deepest');
$('#bottom-a .grid-h').matchHeight('.deepest');
$('#bottom-b .grid-h').matchHeight('.deepest');
$('#innertop .grid-h').matchHeight('.deepest');
$('#innerbottom .grid-h').matchHeight('.deepest');
$('#maininner, #sidebar-a, #sidebar-b').matchHeight();
};
matchHeight();
$(window).bind("load", matchHeight);
});
})(jQuery);