Browse Source

Merge pull request #441 from twbs/fat-fix-things

fix docs errors
pull/443/head
Jacob 11 years ago
parent
commit
db624e5adc
  1. 9
      docs/assets/js/docs.js

9
docs/assets/js/docs.js

@ -42,6 +42,11 @@ $(function() {
footerHeight = $('.docs-footer').outerHeight(false);
toolbarToggle = $('.js-docs-component-toolbar');
// exit if no device
if (!device.length) {
return;
}
// Device placement
if (windowWidth >= 768) {
device.initialLeft = device.offset().left;
@ -179,5 +184,7 @@ $(function() {
};
$(window).on('load resize', initialize);
$(window).on('load', function () { new FingerBlast('.device-content'); });
$(window).on('load', function () {
window.FingerBlast && (new FingerBlast('.device-content'));
});
});

Loading…
Cancel
Save