Sha256: e8671b8788c37b9de1fc4bc54a57a7b517ec0bc716d14e8c0838b377c6b29302

Contents?: true

Size: 1.67 KB

Versions: 11

Compression:

Stored size: 1.67 KB

Contents

;(function ($, window, undefined) {
  'use strict';

  var $doc = $(document),
      Modernizr = window.Modernizr;

  $(document).ready(function() {
    $.fn.foundationAlerts           ? $doc.foundationAlerts() : null;
    $.fn.foundationButtons          ? $doc.foundationButtons() : null;
    $.fn.foundationAccordion        ? $doc.foundationAccordion() : null;
    $.fn.foundationNavigation       ? $doc.foundationNavigation() : null;
    $.fn.foundationTopBar           ? $doc.foundationTopBar() : null;
    $.fn.foundationCustomForms      ? $doc.foundationCustomForms() : null;
    $.fn.foundationMediaQueryViewer ? $doc.foundationMediaQueryViewer() : null;
    $.fn.foundationTabs             ? $doc.foundationTabs({callback : $.foundation.customForms.appendCustomMarkup}) : null;
    $.fn.foundationTooltips         ? $doc.foundationTooltips() : null;
    $.fn.foundationMagellan         ? $doc.foundationMagellan() : null;
    $.fn.foundationClearing         ? $doc.foundationClearing() : null;

    $('input, textarea').placeholder();
  });

  // 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: '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'});
  // $('.block-grid.five-up>li:nth-child(5n+1)').css({clear: 'both'});

  // Hide address bar on mobile devices (except if #hash present, so we don't mess up deep linking).
  if (Modernizr.touch && !window.location.hash) {
    $(window).load(function () {
      setTimeout(function () {
        window.scrollTo(0, 1);
      }, 0);
    });
  }

})(jQuery, this);

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
aladdin-0.0.7 assets/__js/foundation/app.js
aladdin-0.0.6 assets/__js/foundation/app.js
aladdin-0.0.5 assets/javascripts/foundation/app.js
aladdin-0.0.4 assets/javascripts/foundation/app.js
aladdin-0.0.3 assets/javascripts/foundation/app.js
luneta-0.0.3 spec/sample-site/javascripts/app.js
aladdin-0.0.1 assets/javascripts/foundation/app.js
zurb-foundation-3.2.0 vendor/assets/javascripts/foundation/app.js
zurb-foundation-3.2.0.rc3 vendor/assets/javascripts/foundation/app.js
zurb-foundation-3.2.0.rc2 vendor/assets/javascripts/foundation/app.js
zurb-foundation-3.2.0.rc1 vendor/assets/javascripts/foundation/app.js