mirror of
https://github.com/schibo/1964js.git
synced 2025-04-02 10:52:54 -04:00
git-svn-id: http://1964js.googlecode.com/svn/trunk@178 0378edba-076e-5dc0-2bb2-d87a714dcd81
30 lines
No EOL
481 B
Dart
30 lines
No EOL
481 B
Dart
library index;
|
|
|
|
import 'dart:html';
|
|
import 'system.dart';
|
|
import 'settings.dart';
|
|
|
|
System _core;
|
|
|
|
/**
|
|
* [start] instantiates a new emulator core
|
|
* and reads the file.
|
|
*/
|
|
void main() {
|
|
//show the user panel
|
|
query("#user_panel")
|
|
..$dom_className = "show";
|
|
|
|
query("#text")
|
|
..text = "Click me!"
|
|
..on.click.add(start);
|
|
}
|
|
|
|
/**
|
|
* [start] instantiates a new emulator core
|
|
* and reads the file.
|
|
*/
|
|
void start(Event event) {
|
|
_core = new System();
|
|
_core.start();
|
|
} |