2013-09-02 05:08:28 +00:00
|
|
|
"use strict";
|
|
|
|
|
|
2014-01-28 02:24:24 +00:00
|
|
|
window.habitrpgStatic = angular.module('habitrpgStatic', ['notificationServices', 'userServices', 'chieffancypants.loadingBar', 'authCtrl', 'ui.bootstrap'])
|
2013-09-02 05:08:28 +00:00
|
|
|
.constant("API_URL", "")
|
|
|
|
|
.constant("STORAGE_USER_ID", 'habitrpg-user')
|
2013-12-16 06:17:09 +00:00
|
|
|
.constant("STORAGE_SETTINGS_ID", 'habit-mobile-settings')
|
2014-01-12 23:00:47 +00:00
|
|
|
.constant("MOBILE_APP", false)
|
2014-02-10 17:39:01 +00:00
|
|
|
|
|
|
|
|
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)');
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-02-11 07:51:29 +00:00
|
|
|
])
|
|
|
|
|
.controller('AboutCtrl',[function(){
|
|
|
|
|
$(document).ready(function(){
|
|
|
|
|
$('a.gallery').colorbox({
|
|
|
|
|
maxWidth: '90%',
|
|
|
|
|
maxHeight: '80%',
|
2014-02-11 08:34:42 +00:00
|
|
|
transition: 'none',
|
|
|
|
|
scalePhotos:true
|
2014-02-11 07:51:29 +00:00
|
|
|
//maxHeight: '70%'
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}])
|