shx-3d-render
parent
a6e779df88
commit
1534e4022e
|
@ -493,7 +493,12 @@
|
|||
}
|
||||
};
|
||||
|
||||
document.addEventListener("DOMContentLoaded", ()=>{document.querySelector("form[novalidate]").removeAttribute("novalidate")});
|
||||
document.addEventListener("DOMContentLoaded", ()=>{
|
||||
const forms = document.querySelector("form[novalidate]");
|
||||
if(forms){
|
||||
forms.removeAttribute("novalidate");
|
||||
}
|
||||
});
|
||||
|
||||
// create new html tag called "shx-input-forms"
|
||||
class InputFormsElement extends HTMLElement {
|
||||
|
@ -510,6 +515,14 @@
|
|||
|
||||
enableBuyButton() {
|
||||
let buyButton = document.querySelector('.shopify-payment-button__button');
|
||||
if(buyButton) {
|
||||
buyButton.disabled = false;
|
||||
buyButton.style.cursor = 'pointer';
|
||||
buyButton.style.opacity = 1;
|
||||
buyButton.style.pointerEvents = 'auto';
|
||||
}
|
||||
|
||||
buyButton = document.querySelector('.shopify-payment-button__more-options');
|
||||
if(buyButton) {
|
||||
buyButton.disabled = false;
|
||||
}
|
||||
|
@ -520,6 +533,14 @@
|
|||
|
||||
disableBuyButton() {
|
||||
let buyButton = document.querySelector('.shopify-payment-button__button');
|
||||
if(buyButton) {
|
||||
buyButton.disabled = true;
|
||||
buyButton.style.cursor = 'not-allowed';
|
||||
buyButton.style.opacity = 0.5;
|
||||
buyButton.style.pointerEvents = 'none';
|
||||
}
|
||||
|
||||
buyButton = document.querySelector('.shopify-payment-button__more-options');
|
||||
if(buyButton) {
|
||||
buyButton.disabled = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue