2014-12-07 14:12:50 +01:00
|
|
|
requirejs.config({
|
|
|
|
// baseUrl: '/',
|
|
|
|
paths: {
|
2014-12-24 11:33:54 +01:00
|
|
|
lodash: 'http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min',
|
2014-12-07 14:12:50 +01:00
|
|
|
jquery: 'http://code.jquery.com/jquery-1.11.0.min',
|
|
|
|
firebase: 'https://cdn.firebase.com/js/client/2.0.5/firebase',
|
2014-12-24 11:36:32 +01:00
|
|
|
react: 'http://fb.me/react-with-addons-0.12.1.min',
|
2014-12-07 14:12:50 +01:00
|
|
|
text: 'libs/requirejs-plugins/text',
|
|
|
|
json: 'libs/requirejs-plugins/json'
|
|
|
|
//ace: '../ace-builds-1.1.8/src-min/ace',
|
|
|
|
//'react/addons': 'http://fb.me/react-with-addons-0.12.1'
|
|
|
|
},
|
|
|
|
shim: {
|
|
|
|
lodash: { exports: '_' },
|
|
|
|
firebase: { exports: 'Firebase' },
|
|
|
|
//ace: { exports: 'ace' },
|
|
|
|
jquery: { exports: '$' },
|
|
|
|
react: { exports: 'React' }
|
|
|
|
},
|
|
|
|
map: {
|
|
|
|
'*': {
|
|
|
|
'react/addons': 'react'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2014-12-07 14:32:05 +01:00
|
|
|
requirejs(['jquery', 'react', './examples'], function ($, React, Examples) {
|
2014-12-07 14:12:50 +01:00
|
|
|
'use strict';
|
|
|
|
//var Examples = require('./examples.js');
|
|
|
|
React.render(Examples(), document.getElementById('home-section'));
|
2014-12-25 11:13:07 +01:00
|
|
|
$('#loading').hide();
|
2014-12-07 14:12:50 +01:00
|
|
|
//window.fiddle = React.render(fiddle(), document.getElementById('container'));
|
|
|
|
});
|
2014-12-02 15:57:18 +01:00
|
|
|
|