Skip to content

Commit

Permalink
update iframe height with style
Browse files Browse the repository at this point in the history
  • Loading branch information
Xaxxis authored Nov 6, 2019
1 parent 4d07c5d commit a6c5e04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/src/main/resources/templates/coreapi/credit-card.html
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ <h5><label id="address" th:text="${result.customer_details.billing_address.addre
// Implement success handling here
console.log(response);

fetch("/charge", {
fetch("/chargesss", {
method : "POST",
body: JSON.stringify({
"token_id" : response.token_id,
Expand Down Expand Up @@ -251,7 +251,7 @@ <h5><label id="address" th:text="${result.customer_details.billing_address.addre
return {
openPopup(url){
modal = picoModal({
content:'<iframe frameborder="0" width="100%" height="100%" src="'+url+'"></iframe>',
content:'<iframe frameborder="0" style="height:90vh; width:100%;" src="'+url+'"></iframe>',
width: "75%",
height: "75% !important",
closeButton: false,
Expand All @@ -268,4 +268,4 @@ <h5><label id="address" th:text="${result.customer_details.billing_address.addre
}());
</script>
</body>
</html>
</html>

0 comments on commit a6c5e04

Please sign in to comment.