17 lines
341 B
Ruby
17 lines
341 B
Ruby
require 'opal'
|
|
require "opal/parser"
|
|
|
|
require "salama"
|
|
require "interpreter"
|
|
|
|
require 'opal-react'
|
|
|
|
require "debugger"
|
|
|
|
require 'opal-jquery'
|
|
|
|
Document.ready? do # Document.ready? is a opal-jquery method.
|
|
machine = Virtual.machine.boot
|
|
React.render( React.create_element( Debugger , :machine => machine ), Element['#content'] )
|
|
end
|