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