Skip to content

Commit

Permalink
Sync
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Feb 7, 2023
1 parent bd181e2 commit d596a83
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions build/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
</div>
</div>
<div class="uk-card-body" style="padding-top: 15px; padding-bottom: 15px;">
<p>Download this tool by purchasing it for <b>$20.00</b> USD.</p>
<i><div class="tooltip"><span id="spansales">...</span> sales<span class="tooltiptext">itch + gumroad</span></div></i>
<hr style="border-bottom: 1px dashed #dadada;">
</div>
<div class="uk-card-body" style="padding-top: 15px; padding-bottom: 15px;">
<button class="uk-button uk-button-secondary uk-button-large uk-width-1-1" style="background: #ff2449; color: #fff; text-transform: none;" id="buy_button"><b>Add to Cart</b></button>
<button class="uk-button uk-button-secondary uk-button-large uk-width-1-1" style="background: #ff2449; color: #fff; text-transform: none;" id="buy_button"><b>Add to Cart - $<span id="spanprice">...</span></b></button>
</div>
</div>
<script type="text/javascript" src="https://static.itch.io/api.js"></script>
Expand Down Expand Up @@ -89,5 +88,11 @@ <h2 class="uk-heading-divider ro-text-header">Latest Release</h2>
$("#spanupdated").html("" + months[parseInt(month) - 1] + ' ' + day + ', 20' + year + "");
$("#spansales").html("" + data.sales.toLocaleString('en', { useGrouping: true }) + "");
$("#spanrating").html("" + data.rating + "");
$("#spanprice").html("" + data.price / 100 + "");
});
let _onclick = document.getElementById('buy_button').onclick;
document.getElementById('buy_button').onclick = function() {
_onclick();
$.get("https://server.armorpaint.org/cart_lab.html", function(data) {});
}
</script>
9 changes: 7 additions & 2 deletions download.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,11 @@
</div>
</div>
<div class="uk-card-body" style="padding-top: 15px; padding-bottom: 15px;">
<p>Download this tool by purchasing it for <b>$20.00</b> USD.</p>
<i><div class="tooltip"><span id="spansales">...</span> sales<span class="tooltiptext">itch + gumroad</span></div></i>
<hr style="border-bottom: 1px dashed #dadada;">
</div>
<div class="uk-card-body" style="padding-top: 15px; padding-bottom: 15px;">
<button class="uk-button uk-button-secondary uk-button-large uk-width-1-1" style="background: #ff2449; color: #fff; text-transform: none;" id="buy_button"><b>Add to Cart</b></button>
<button class="uk-button uk-button-secondary uk-button-large uk-width-1-1" style="background: #ff2449; color: #fff; text-transform: none;" id="buy_button"><b>Add to Cart - $<span id="spanprice">...</span></b></button>
</div>
</div>
<script type="text/javascript" src="https://static.itch.io/api.js"></script>
Expand Down Expand Up @@ -174,7 +173,13 @@ <h2 class="uk-heading-divider ro-text-header">Latest Release</h2>
$("#spanupdated").html("" + months[parseInt(month) - 1] + ' ' + day + ', 20' + year + "");
$("#spansales").html("" + data.sales.toLocaleString('en', { useGrouping: true }) + "");
$("#spanrating").html("" + data.rating + "");
$("#spanprice").html("" + data.price / 100 + "");
});
let _onclick = document.getElementById('buy_button').onclick;
document.getElementById('buy_button').onclick = function() {
_onclick();
$.get("https://server.armorpaint.org/cart_lab.html", function(data) {});
}
</script>
<!-- Footer Content -->
<div class="ro-background-darksecondary">
Expand Down

0 comments on commit d596a83

Please sign in to comment.