@@ -100,7 +100,7 @@ div.full-size.pdf(ng-controller="PdfController")
p
a.btn.btn-info(
href
- ng-click="hello('compile-timeout')"
+ ng-click="startFreeTrial('compile-timeout')"
) #{translate("start_free_trial")}
.pdf-errors(ng-show="pdf.projectTooLarge")
@@ -196,6 +196,11 @@ define [
else
$scope.switchToSideBySideLayout()
+ $scope.startFreeTrial = (source) ->
+ ga?('send', 'event', 'subscription-funnel', 'compile-timeout', source)
+ window.open("/user/subscription/new?planCode=student_free_trial_7_days")
+ $scope.startedFreeTrial = true
+
App.factory "synctex", ["ide", "$http", "$q", (ide, $http, $q) ->
synctex =
syncToPdf: (cursorPosition) ->