Elevator JS/AS3JS Demo

Demonstration of ElevatorJS program. https://github.com/cleod9/elevatorjs

by cleod9

HTML

<div class="container">
  <div id="sidebar">
    <button class="btn-pause">Pause</button>
    <h3>Building Info</h3>
    <table class="floor-view">
      <tbody>
      </tbody>
    </table>
  </div>
  <div id="viewport">
    <table class="elevator-view">
      <tbody>
      </tbody>
    </table>
  </div>
</div>

CSS

body, html {
	height: 100%;
}
div.container {
	display: table;
	width: 100%;
	height: 100%;
}
#viewport {
	width: 80%;
	padding: 10px;
	display: table-cell;
}
table.floor-view {
	border: 1px solid #CCCCCC;
	border-collapse: collapse;
}
table.floor-view td, table.floor-view th {
	border: 1px solid #CCCCCC;
}
table.floor-view .title{
	white-space: nowrap;
	width: 10%;
	font-size: 12px;
}
table.floor-view .data{
	width: 90%;
	font-size: 12px;
}
table.elevator-view {
	width: 100%;
	height: 100%;
}
table.elevator-view tr td {
	font-size: 11px;
	font-family: Courier New;
}
div.elevator {
	position: absolute;
	bottom: 0px;
	background: #ffffff;
	border: 1px solid black;
	padding-left: 10px;
	padding-right: 10px;
	padding-bottom: 10px;
}


#sidebar {
	font-size: 12px;
	padding: 5px;
	vertical-align: top;
	display: table-cell;
	min-width: 10px;
	border-right: 1px solid #AAAAAA;
	height: 100%;
	background: #ffffff;
}
#sidebar.hide div.info-panel{
	/*display: none;*/
}
div.info-panel {
	width: 100%;
	height: 100%;
	width: 150px;
	height: 100%;
}

JavaScript

/*******************************
  AS3JS Version 0.3.3
  
    AS3 to JS converter for use with ImportJS and OOPS.js.
  
  The MIT License (MIT)

  Copyright (c) 2017 Greg McLeod <cleod9{at}gmail.com>

  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included in
  all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  THE SOFTWARE.
*******************************/
(function ( ) {
  var AS3JS = {
    Utils: {
      // Helper for default args
      getDefaultValue: function getDefaultValue(value, fallback) {
        return (typeof value != 'undefined') ? value : fallback;
      },
      // Helper for Vector/Array constructors
	  createArray: function (size, val) {
        var arr = [];
        for (var i = 0; i < size; i++)  {
          arr.push(val); 
        }
        return arr;
      }
    },
    load: function ( params ) {
      // Loads program specified by params
      params = params || {};
	  params.entryMode = params.entryMode || 'instance';
	
      // Shim just in case
      if (typeof Object.create !== 'function') {
        Object.create = function...