feat: update

parent 170121ea
import {AfterViewInit, Component, OnInit} from '@angular/core'; import {Component, OnInit} from '@angular/core';
import {Video} from '../../globals'; import {Video} from '../../globals';
import {term} from '../../globals'; import {term} from '../../globals';
import * as jQuery from 'jquery/dist/jquery.min.js';
@Component({ @Component({
selector: 'app-json', selector: 'app-json',
templateUrl: './json.component.html', templateUrl: './json.component.html',
styleUrls: ['./json.component.css'] styleUrls: ['./json.component.css']
}) })
export class JsonComponent implements OnInit, AfterViewInit { export class JsonComponent implements OnInit {
speed = 1; speed = 1;
setPercent = 0; setPercent = 0;
toggle = false; toggle = false;
...@@ -27,11 +25,6 @@ export class JsonComponent implements OnInit, AfterViewInit { ...@@ -27,11 +25,6 @@ export class JsonComponent implements OnInit, AfterViewInit {
this.restart(); this.restart();
} }
ngAfterViewInit() {
this.restart();
}
setSpeed() { setSpeed() {
if (this.speed === 0) { if (this.speed === 0) {
this.TIMESTEP = this.TICK; this.TIMESTEP = this.TICK;
......
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