refactor js

This commit is contained in:
Robin Cornett
2015-02-10 16:54:24 -05:00
parent 1616e82d5c
commit 231f701e1e
+6 -4
View File
@@ -1,5 +1,7 @@
jQuery(document).ready(function($) {
( function ( document, $, undefined ) {
'use strict';
$(".big-leader").css({'height':($(window).height())-([BackStretchVars.height])+'px'});
$(".big-leader").backstretch([BackStretchVars.src],{'fade':750});
});
$( '.big-leader' ).css( { 'height': ( $(window).height() ) - ([BackStretchVars.height]) + 'px' });
$( '.big-leader' ).backstretch( [BackStretchVars.src], { 'fade':750 } );
})( this, jQuery );