blob: 1c783cb8901a9ce31b075e6ca2240f6a91a6fb73 [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() {
Einav Weiss Keidar7fdf7332018-03-20 14:45:40 +020024 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 };
28 render(<Sequencer options={options} />, shell);
Michael Landoefa037d2017-02-19 12:57:33 +020029}
30
31if (window.addEventListener) {
Einav Weiss Keidar7fdf7332018-03-20 14:45:40 +020032 window.addEventListener('DOMContentLoaded', renderApplication);
Michael Landoefa037d2017-02-19 12:57:33 +020033} else {
Einav Weiss Keidar7fdf7332018-03-20 14:45:40 +020034 window.attachEvent('onload', renderApplication);
Michael Landoefa037d2017-02-19 12:57:33 +020035}