123456789101112131415161718192021222324252627282930313233343536373839 |
- 'use strict';
- * @ngdoc function
- * @name landingPageApp.controller:MainCtrl
- * @description
- * # MainCtrl
- * Controller of the landingPageApp
- */
- angular.module('landingPageApp')
- .controller('NavCtrl', ['$window', '$scope', '$timeout', "$rootScope", "$state", '$mixpanel', function ($window, $scope, $timeout, $rootScope, $state, $mixpanel) {
-
- $mixpanel.track('Site Loaded');
- $scope.track = function(action){
- $mixpanel.track(action);
-
- }
-
- var lang = $window.navigator.language || $window.navigator.userLanguage;
- if (lang === 'pt-BR') {
-
- } else {
-
- }
- $scope.logoAnimationStart = false;
- $scope.menuAnimationStart = false;
- $timeout(function(){
- $scope.logoAnimationStart = true;
- $timeout(function(){
- $scope.menuAnimationStart = true;
- }, 500);
- }, 500);
- }]);
|