footer.component.ts 781 Bytes
import { Component, OnInit } from '@angular/core';
import { Location } from '@angular/common';

@Component({
  selector: 'app-footer',
  templateUrl: './footer.component.html',
  styleUrls: ['./footer.component.scss']
})
export class FooterComponent implements OnInit {
  constructor(private location: Location) { }

  ngOnInit() { }

  goBack() {
    this.location.back();
  }

  reducirPantalla() {
    $(`body,
      .reduce-card-1,
      .reduce-card-2,
      #content,
      .cat-content,
      .cat-btn,
      .cat-box,
      #boxCarrito,
      #headerPublicidad,
      #headerPad,
      .img-categoria,
      .carrito-articulo,
      .carrito-content,
      .pago-tarjeta,
      .modal-promo,
      .modal-content,
      .qr-mt`)
      .toggleClass('media-pantalla');
  }
}