mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
30 lines
812 B
Text
30 lines
812 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 New Subscription
|
|
#subscribeForm Loading subscription 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);
|
|
|
|
|