import { Component, OnInit } from '@angular/core';
import { Router,ActivatedRoute } from '@angular/router';
import * as $ from 'jquery';
@Component({
  selector: 'app-terms',
  templateUrl: './terms.component.html',
  styleUrls: ['./terms.component.scss']
})
export class TermsComponent implements OnInit {

  constructor(private router: Router,
    private route: ActivatedRoute) {}

  ngOnInit() {
  }
  
  goToPage(path,data=null){
    this.router.navigateByUrl(path,{queryParams:data});
    document.body.scrollTop = document.documentElement.scrollTop = 0;
    }
    onClick(){
      let x = document.querySelector("#sec");
      if (x){
          x.scrollIntoView();
      }
  }
  accept(){
    let y = document.querySelector("#accept");
      if (y){
          y.scrollIntoView();
      }
  }
  browse(){
    let z = document.querySelector("#browse");
      if (z){
          z.scrollIntoView();
      }
  }
  buy(){
    let k = document.querySelector("#buy");
      if (k){
          k.scrollIntoView();
      }
  }
  intellect(){
    let i = document.querySelector("#intel");
      if (i){
          i.scrollIntoView();
      }
  }
  info(){
    let h = document.querySelector("#info");
      if (h){
          h.scrollIntoView();
      }
  }
  play(){
    let g = document.querySelector("#play");
      if (g){
          g.scrollIntoView();
      }
  }
  legal(){
    let m = document.querySelector("#legal");
      if (m){
          m.scrollIntoView();
      }
  }
}