ALL_EXPERIMENTS_URL = 'Enter your AWS API Gateway URL to get all experiments'
render_goal = (goal, render_to) ->
baseline = goal
abba = new Abba.Abba(baseline.label, baseline.successes, baseline.trials)
for variation in goal[1..]
abba.addVariation(variation.label, variation.successes, variation.trials)
$.get ALL_EXPERIMENTS_URL, (data) ->
for experiment in data
for goal in experiment['goals']
Asset uploading is a PRO feature.
As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.