root / snf-saas-app / saas / ui / static / foundation / javascripts / app.js @ d1da4176
History | View | Annotate | Download (1.7 kB)
1 |
;(function ($, window, undefined) { |
---|---|
2 |
'use strict';
|
3 |
|
4 |
var $doc = $(document), |
5 |
Modernizr = window.Modernizr; |
6 |
|
7 |
$(document).ready(function() { |
8 |
$.fn.foundationAlerts ? $doc.foundationAlerts() : null; |
9 |
$.fn.foundationButtons ? $doc.foundationButtons() : null; |
10 |
$.fn.foundationAccordion ? $doc.foundationAccordion() : null; |
11 |
$.fn.foundationNavigation ? $doc.foundationNavigation() : null; |
12 |
$.fn.foundationTopBar ? $doc.foundationTopBar() : null; |
13 |
$.fn.foundationCustomForms ? $doc.foundationCustomForms() : null; |
14 |
$.fn.foundationMediaQueryViewer ? $doc.foundationMediaQueryViewer() : null; |
15 |
$.fn.foundationTabs ? $doc.foundationTabs({callback : $.foundation.customForms.appendCustomMarkup}) : null; |
16 |
$.fn.foundationTooltips ? $doc.foundationTooltips() : null; |
17 |
$.fn.foundationMagellan ? $doc.foundationMagellan() : null; |
18 |
$.fn.foundationClearing ? $doc.foundationClearing() : null; |
19 |
|
20 |
$.fn.placeholder ? $('input, textarea').placeholder() : null; |
21 |
}); |
22 |
|
23 |
// UNCOMMENT THE LINE YOU WANT BELOW IF YOU WANT IE8 SUPPORT AND ARE USING .block-grids
|
24 |
// $('.block-grid.two-up>li:nth-child(2n+1)').css({clear: 'both'});
|
25 |
// $('.block-grid.three-up>li:nth-child(3n+1)').css({clear: 'both'});
|
26 |
// $('.block-grid.four-up>li:nth-child(4n+1)').css({clear: 'both'});
|
27 |
// $('.block-grid.five-up>li:nth-child(5n+1)').css({clear: 'both'});
|
28 |
|
29 |
// Hide address bar on mobile devices (except if #hash present, so we don't mess up deep linking).
|
30 |
if (Modernizr.touch && !window.location.hash) {
|
31 |
$(window).load(function () { |
32 |
setTimeout(function () {
|
33 |
window.scrollTo(0, 1); |
34 |
}, 0);
|
35 |
}); |
36 |
} |
37 |
|
38 |
})(jQuery, this);
|