habitica-self-host/public/js/static.js

22 lines
727 B
JavaScript
Raw Normal View History

"use strict";
window.habitrpgStatic = angular.module('habitrpgStatic', ['notificationServices', 'userServices', 'chieffancypants.loadingBar', 'authCtrl', 'ui.bootstrap'])
.constant("API_URL", "")
.constant("STORAGE_USER_ID", 'habitrpg-user')
.constant("STORAGE_SETTINGS_ID", 'habit-mobile-settings')
.constant("MOBILE_APP", false)
habitrpgStatic.controller("PlansCtrl", ['$rootScope', '$location', '$timeout',
function($rootScope, $location, $timeout) {
// GA goal-tracking
$timeout(function(){
window.ga && ga('send', 'event', 'page', 'view', 'Plans');
});
$rootScope.clickContact = function(){
window.ga && ga('send', 'event', 'button', 'click', 'Contact Us (Plans)');
}
}
]);