Commit dc145e9d authored by zheng liu's avatar zheng liu

Merged in dev (pull request #35)

fix: update
parents 091025d2 9fd4a601
......@@ -27,9 +27,6 @@ export class ElementTermComponent implements OnInit, AfterViewInit {
window.onresize = function () {
term.col = Math.floor(jQuery(that.el.nativeElement).width() / jQuery('#liuzheng').width() * 8) - 3;
term.row = Math.floor(jQuery(that.el.nativeElement).height() / jQuery('#liuzheng').height()) - 3;
console.log(jQuery(that.el.nativeElement).height());
console.log(jQuery('#liuzheng').height());
console.log(term);
if (term.col < 80) {
term.col = 80;
}
......
......@@ -22,7 +22,12 @@ export class JsonComponent implements OnInit {
}
ngOnInit() {
this.restart();
while (true) {
if (term.term) {
this.pause();
break;
}
}
}
setSpeed() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment