|
|
@ -38,6 +38,7 @@ $(function() { |
|
|
|
footerHeight = $('.docs-footer').outerHeight(false); |
|
|
|
footerHeight = $('.docs-footer').outerHeight(false); |
|
|
|
toolbarToggle = $('.js-docs-component-toolbar'); |
|
|
|
toolbarToggle = $('.js-docs-component-toolbar'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!device.length) return |
|
|
|
// Device placement
|
|
|
|
// Device placement
|
|
|
|
if (windowWidth >= 768) { |
|
|
|
if (windowWidth >= 768) { |
|
|
|
device.initialLeft = device.offset().left; |
|
|
|
device.initialLeft = device.offset().left; |
|
|
@ -167,6 +168,8 @@ $(function() { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!device) return |
|
|
|
|
|
|
|
|
|
|
|
$(window).on('load resize', initialize); |
|
|
|
$(window).on('load resize', initialize); |
|
|
|
$(window).on('load', function () { new FingerBlast('.device-content'); }); |
|
|
|
$(window).on('load', function () { new FingerBlast('.device-content'); }); |
|
|
|
}); |
|
|
|
}); |
|
|
|