mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
30 lines
840 B
Text
30 lines
840 B
Text
extends ../layout
|
|
|
|
block content
|
|
- locals.supressDefaultJs = true
|
|
script(data-main=jsPath+'main.js', src=jsPath+'libs/require.js', baseurl=jsPath)
|
|
script(src=jsPath+'libs/recurly.min.js')
|
|
|
|
.content.content-alt
|
|
.container
|
|
.row
|
|
.col-md-6.col-md-offset-3
|
|
.card
|
|
.page-header
|
|
h1.text-centered #{translate("new_subscription")}
|
|
#subscribeForm #{translate("loading_billing_form")}...
|
|
|
|
script(type="text/javascript").
|
|
ga('send', 'event', 'pageview', 'payment_form', "#{plan_code}")
|
|
|
|
|
|
script(type="text/javascript").
|
|
Recurly.config(!{recurlyConfig})
|
|
var recurlySubscriptionFormConfig = !{subscriptionFormOptions}
|
|
recurlySubscriptionFormConfig.successHandler = function(){
|
|
ga('send', 'event', 'subscription-funnel', 'subscribed')
|
|
}
|
|
|
|
Recurly.buildSubscriptionForm(recurlySubscriptionFormConfig);
|
|
|
|
|