2015-08-20 18:41:51 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
2015-08-26 14:08:12 +02:00
|
|
|
<title>Lanceur - Pitaya</title>
|
2015-08-20 18:41:51 +02:00
|
|
|
<link rel="stylesheet" href="css/style.css" />
|
2015-09-11 16:25:45 +02:00
|
|
|
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
|
2015-08-20 18:41:51 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
2015-08-21 14:47:06 +02:00
|
|
|
<!-- Application root element -->
|
2015-08-26 14:08:12 +02:00
|
|
|
<div id="pitaya"></div>
|
2015-09-11 16:25:45 +02:00
|
|
|
|
2015-08-21 14:47:06 +02:00
|
|
|
<!-- Scripts -->
|
2015-08-20 18:41:51 +02:00
|
|
|
<script type="text/javascript">
|
2015-08-27 18:24:29 +02:00
|
|
|
// React context detection workaround
|
|
|
|
global.document = global.window.document;
|
|
|
|
global.navigator = global.window.navigator;
|
|
|
|
|
2015-10-09 14:22:23 +02:00
|
|
|
var isDev = process.env.NODE_ENV === 'development';
|
2015-08-27 18:24:29 +02:00
|
|
|
|
2015-10-09 14:22:23 +02:00
|
|
|
if(isDev) {
|
|
|
|
// Auto transform JSX
|
|
|
|
require('node-jsx').install({extension: '.js'});
|
|
|
|
// Launch application
|
|
|
|
require('./js/app.js');
|
|
|
|
} else {
|
|
|
|
require('./js-compiled/app.js');
|
|
|
|
}
|
2015-08-27 18:24:29 +02:00
|
|
|
|
2015-08-20 18:41:51 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|