forked from M3-Academy/m3-academy-template-checkout
development #3
@ -10,12 +10,16 @@ export default class Header {
|
||||
await this.selectors();
|
||||
this.progressBarInnerHTML();
|
||||
await this.removeCartTitle();
|
||||
await this.alterarCartChooseProducts();
|
||||
await this.alterarEmptyCartTitle();
|
||||
}
|
||||
|
||||
async selectors() {
|
||||
this.header = await waitElement(".headerCheckout");
|
||||
|
||||
this.progressBar = document.querySelector(".progress-bar");
|
||||
this.cartChooseProducts = document.querySelector("#cart-choose-products");
|
||||
this.emptyCartTitle = document.querySelector(".empty-cart-title");
|
||||
}
|
||||
|
||||
async progressBarInnerHTML() {
|
||||
@ -69,6 +73,14 @@ export default class Header {
|
||||
this.ctitle.style.display = "none";
|
||||
}
|
||||
|
||||
async alterarCartChooseProducts() {
|
||||
this.cartChooseProducts.innerHTML = "Continuar comprando";
|
||||
}
|
||||
|
||||
async alterarEmptyCartTitle() {
|
||||
this.emptyCartTitle.innerHTML = "Seu carrinho está vazio";
|
||||
}
|
||||
|
||||
// async progressBarProgress(){
|
||||
// if(this.progressBar && window.innerWidth > 1024){
|
||||
// const progressBarLista = document.querySelectorAll("#progressBar ul li");
|
||||
|
Loading…
Reference in New Issue
Block a user