Skip to content

Instantly share code, notes, and snippets.

View patrickbense's full-sized avatar
☸️

Patrick Bense patrickbense

☸️
View GitHub Profile
{
"consumerName": "Roku",
"merchantManageText": null,
"merchantManageUrl": null,
"merchantPlanId": "test_iap_roku",
"merchantType": "Roku",
"premium": {
"expirationDate": null,
"freeTrialEndDate": "2017-01-31T19:00:00-05:00",
"level": "12",
// combining steps 1 - 3 into single lines for less code
var currentPlan = parseFloat($('.current-plan').text().substr(1)).toFixed(2);
var newPlan = parseFloat($('.new-plan').text().substr(1)).toFixed(2);
var priceDifference = currentPlan - newPlan;
var differenceText = "";
if (priceDifference >= 0) {
differenceText = "Your price difference " + "$+" + priceDifference.toFixed(2);
} else {

Clubform Builder Documentation for DGWs

Builder Usage

The clubform builder is a text editor that helps build the JSON to define a form. A forms look/style is defined by it's layout type. (Right now, there is only one)

Layout Style Description
Traditional How clubforms looked and operated before the builder was made.
Traditional JSON Example (No buttons)