Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f12a2ed
commit 3d9d1b3
Showing
9 changed files
with
442 additions
and
234 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,35 +1,46 @@ | |||
(function($){ | ;(function ($, window, undefined) { | ||
$(function(){ | 'use strict'; | ||
|
|
||
$(document).foundationAlerts(); | var $doc = $(document), | ||
$(document).foundationAccordion(); | Modernizr = window.Modernizr; | ||
$(document).tooltips(); |
|
||
$('input, textarea').placeholder(); |
|
||
|
$.fn.foundationAlerts ? $doc.foundationAlerts() : null; | ||
|
$.fn.foundationAccordion ? $doc.foundationAccordion() : null; | ||
|
$.fn.foundationTooltips ? $doc.foundationTooltips() : null; | ||
$(document).foundationButtons(); | $('input, textarea').placeholder(); | ||
|
|
||
|
|
||
|
$.fn.foundationButtons ? $doc.foundationButtons() : null; | ||
$(document).foundationNavigation(); |
|
||
|
|
||
|
$.fn.foundationNavigation ? $doc.foundationNavigation() : null; | ||
|
|
||
$(document).foundationCustomForms(); |
|
||
|
$.fn.foundationTopBar ? $doc.foundationTopBar() : null; | ||
|
|
||
|
$.fn.foundationCustomForms ? $doc.foundationCustomForms() : null; | ||
|
$.fn.foundationMediaQueryViewer ? $doc.foundationMediaQueryViewer() : null; | ||
$(document).foundationTabs({callback:$.foundation.customForms.appendCustomMarkup}); |
|
||
|
|||
|
|
||
$.fn.foundationTabs ? $doc.foundationTabs() : null; | |||
|
|
||
// UNCOMMENT THE LINE YOU WANT BELOW IF YOU WANT IE8 SUPPORT AND ARE USING .block-grids |
|
||
// $('.block-grid.two-up>li:nth-child(2n+1)').css({clear: 'left'}); |
|
||
// $('.block-grid.three-up>li:nth-child(3n+1)').css({clear: 'left'}); |
|
||
// $('.block-grid.four-up>li:nth-child(4n+1)').css({clear: 'left'}); | // UNCOMMENT THE LINE YOU WANT BELOW IF YOU WANT IE8 SUPPORT AND ARE USING .block-grids | ||
// $('.block-grid.five-up>li:nth-child(5n+1)').css({clear: 'left'}); | // $('.block-grid.two-up>li:nth-child(2n+1)').css({clear: 'both'}); | ||
}); | // $('.block-grid.three-up>li:nth-child(3n+1)').css({clear: 'both'}); | ||
|
// $('.block-grid.four-up>li:nth-child(4n+1)').css({clear: 'both'}); | ||
})(jQuery); | // $('.block-grid.five-up>li:nth-child(5n+1)').css({clear: 'both'}); | ||
|
|||
// Hide address bar on mobile devices | |||
if (Modernizr.touch) { | |||
$(window).load(function () { | |||
setTimeout(function () { | |||
window.scrollTo(0, 1); | |||
}, 0); | |||
}); | |||
} | |||
|
|||
})(jQuery, this); |
This file contains 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
Oops, something went wrong.