require('../../vendor/zepto/zepto.min.js');
require('./components/polyfills.js')();

var FontFaceObserver = require('fontfaceobserver');
var observer = new FontFaceObserver('Source Sans Pro');

try {
    observer.check().then(function () {
        $('body').addClass('font-loaded');
    }, function () {
        warn('Cannot load font.');
    });
} catch (e) {
    warn('Failed to use FontFaceObserver', e);
}

window.Storage = require('../../vendor/showcar-storage/src/storage.js');

require('./components/custom-dropdown.js');
require('./components/navigation.js');
require('./components/rotating-arrow.js')();
require('./components/sticky.js')();
require('./components/collapse.js')();

if (!window.notification) {
    window.notification = require('./components/notification.js');
} else {
    warn('window.notification is already registered.');
}

@@ -78,16 +78,138 @@
 s')();%0A%0A
+var warn = function (msg) %7B%0A    if (!window %7C%7C !window.console) %7B%0A        return;%0A    %7D%0A    window.console.warn(msg);%0A%7D;%0A%0A
 var Font

fix checks for multiple registerElement calls of custom elements