mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-11 11:04:10 +00:00
set button colour to red for free trial
This commit is contained in:
parent
2d03410c42
commit
730088b6ab
3 changed files with 1 additions and 20 deletions
|
@ -217,14 +217,6 @@ block content
|
|||
script(type="text/javascript").
|
||||
ga('send', 'event', 'pageview', 'payment_form', "#{plan_code}")
|
||||
|
||||
|
||||
script(type="text/javascript").
|
||||
window.ab = [
|
||||
{step:1, bucket:"red", testName:"button_color"},
|
||||
{step:1, bucket:"blue", testName:"button_color"}
|
||||
]
|
||||
|
||||
|
||||
mixin countries_options()
|
||||
option(value='', disabled, selected) #{translate("country")}
|
||||
option(value='-') --------------
|
||||
|
|
|
@ -37,7 +37,4 @@ block content
|
|||
window.ab = [
|
||||
{step:1, bucket:"student_control", testName:"editor_plan"},
|
||||
{step:1, bucket:"collab_test", testName:"editor_plan"},
|
||||
|
||||
{step:2, bucket:"blue", testName:"button_color"},
|
||||
{step:2, bucket:"red", testName:"button_color"}
|
||||
]
|
|
@ -3,15 +3,7 @@ define [
|
|||
], (App) ->
|
||||
App.controller "FreeTrialModalController", ($scope, abTestManager)->
|
||||
|
||||
buttonColorBuckets = [
|
||||
{ bucketName:"red", btnClass:"primary"}
|
||||
{ bucketName:"blue", btnClass:"info"}
|
||||
]
|
||||
|
||||
buttonColorBucket = abTestManager.getABTestBucket "button_color", buttonColorBuckets
|
||||
abTestManager.processTestWithStep("button_color", buttonColorBucket.bucketName, 0)
|
||||
$scope.buttonClass = "btn-#{buttonColorBucket.btnClass}"
|
||||
|
||||
$scope.buttonClass = "btn-primary"
|
||||
|
||||
$scope.startFreeTrial = (source) ->
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue