blob: 4b0f7d23889719254e0a243748b1d2f6b05614e2 [file] [log] [blame]
svishnev1eb66b72018-01-11 14:39:45 +02001/*
2 * Copyright © 2016-2017 European Support Limited
Michael Landoefa037d2017-02-19 12:57:33 +02003 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
svishnev1eb66b72018-01-11 14:39:45 +02007 *
svishnev0d08f882018-01-21 13:45:31 +02008 * * http://www.apache.org/licenses/LICENSE-2.0
svishnev1eb66b72018-01-11 14:39:45 +02009 *
Michael Landoefa037d2017-02-19 12:57:33 +020010 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
svishnev1eb66b72018-01-11 14:39:45 +020012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
Michael Landoefa037d2017-02-19 12:57:33 +020015 */
16
17import React from 'react';
svishnev0d08f882018-01-21 13:45:31 +020018import { render } from 'react-dom';
Michael Landoefa037d2017-02-19 12:57:33 +020019import Sequencer from './ecomp/asdc/sequencer/Sequencer';
20import '../res/ecomp/asdc/sequencer/sequencer-development.scss';
21import '../res/thirdparty/react-select/react-select.min.css';
22
23function renderApplication() {
24 const shell = document.createElement('div');
25 shell.setAttribute('style', 'height:100%;width:100%;margin:0;padding:0');
26 document.body.appendChild(shell);
27 const options = { demo: true };
svishnev0d08f882018-01-21 13:45:31 +020028 render(<Sequencer options={options} />, shell);
Michael Landoefa037d2017-02-19 12:57:33 +020029}
30
31if (window.addEventListener) {
32 window.addEventListener('DOMContentLoaded', renderApplication);
33} else {
34 window.attachEvent('onload', renderApplication);
35}