~singpolyma/jmp-pay

8a55d4db222b6ec0587461492e322332631e9350 — Stephen Paul Weber 3 months ago 96f66f7
Require attentation of compatibility if ordering without PCSC
1 files changed, 12 insertions(+), 0 deletions(-)

M views/esim_adapter.slim
M views/esim_adapter.slim => views/esim_adapter.slim +12 -0
@@ 31,6 31,11 @@
				}
			});

			document.querySelector("input[name=pcsc_quantity]").addEventListener("change", (e) => {
				document.querySelector("#compatible").style.display = e.target.value < 1 ? "flex" : "none";
				document.querySelector("#compatible input").required = e.target.value < 1;
			});

			country.trigger("change", document.querySelector("select[name=country-name]").value);
		});



@@ 66,6 71,9 @@ scss:
			padding: 0.5em;
			font-size: 1.2em;
		}
		#compatible input {
			flex: 0 0 2em;
		}
	}
	.htmx-indicator {
		margin-top: 1em;


@@ 117,6 125,10 @@ section data-hx-get="/esim-adapter/total" data-hx-trigger="input delay:1s,change
		input type="hidden" name="atfd" value=antifraud
		input type="hidden" name="braintree_nonce"

		label.half#compatible
			span I have verified that my Android device is compatible with <a target="_blank" href="https://jmp.chat/esim-adapter">the app</a>
			input type="checkbox" required=true

		button Place Order

javascript: